OqtaneIgnore implementation fix
This commit is contained in:
@ -80,9 +80,14 @@ namespace System.Reflection
|
||||
.Where(a => Utilities.GetFullTypeName(a.GetName().Name) != "Oqtane.Client");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if type should be ignored by oqtane dynamic loader
|
||||
/// </summary>
|
||||
/// <param name="type">Checked type</param>
|
||||
/// <returns></returns>
|
||||
public static bool IsOqtaneIgnore(this Type type)
|
||||
{
|
||||
return Attribute.IsDefined(type, typeof(OqtaneIgnoreAttribute));
|
||||
return Attribute.IsDefined(type, typeof(OqtaneIgnoreAttribute)) || type.IsAbstract || type.IsGenericType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user