Update src/Umbraco.Core/Extensions/UmbracoBuilderExtensions.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
This commit is contained in:
Martin Humlund Clausen
2021-10-17 14:13:43 +02:00
committed by GitHub
parent 649d7fd829
commit 0d7c6e4128

View File

@@ -87,7 +87,9 @@ namespace Umbraco.Cms.Core.Extensions
foreach (var it in interfaceTypes)
{
if (it.IsGenericType && it.GetGenericTypeDefinition() == genericType)
{
return true;
}
}
if (givenType.IsGenericType && givenType.GetGenericTypeDefinition() == genericType)