Update src/Umbraco.Core/Extensions/UmbracoBuilderExtensions.cs
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0d7c6e4128
commit
58d980cc80
@@ -92,8 +92,10 @@ namespace Umbraco.Cms.Core.Extensions
|
||||
}
|
||||
}
|
||||
|
||||
if (givenType.IsGenericType && givenType.GetGenericTypeDefinition() == genericType)
|
||||
if (givenType.IsGenericType && givenType.GetGenericTypeDefinition() == genericType)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var baseType = givenType.BaseType;
|
||||
return baseType != null && IsAssignableToGenericType(baseType, genericType);
|
||||
|
||||
Reference in New Issue
Block a user