This commit is contained in:
Robert Beekman committed 2019-08-21 13:13:36 +02:00
1 parent d8e803c531
commit 05c4bfeb6e
1 file changed
+3 -10
+3 -10
View File
@@ -1,8 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Artemis.Core.Extensions namespace Artemis.Core.Extensions
{ {
@@ -12,11 +8,8 @@ namespace Artemis.Core.Extensions
{ {
if (type == null) if (type == null)
return false; return false;
var baseType = type.BaseType;
if (baseType == null) return type.BaseType?.GetGenericTypeDefinition() == genericType;
return false;
return baseType.GetGenericTypeDefinition() == genericType;
} }
} }
} }