Ignore abstract classes at loading
This commit is contained in:
parent
97354a9525
commit
1e270e6423
@ -194,6 +194,7 @@ namespace Oqtane.Repository
|
|||||||
// Check if type should be ignored
|
// Check if type should be ignored
|
||||||
if (modulecontroltype.Name == "ModuleBase"
|
if (modulecontroltype.Name == "ModuleBase"
|
||||||
|| modulecontroltype.IsGenericType
|
|| modulecontroltype.IsGenericType
|
||||||
|
|| modulecontroltype.IsAbstract
|
||||||
|| Attribute.IsDefined(modulecontroltype, typeof(OqtaneIgnoreAttribute))
|
|| Attribute.IsDefined(modulecontroltype, typeof(OqtaneIgnoreAttribute))
|
||||||
) continue;
|
) continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user