1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
This commit is contained in:
Robert Beekman 2019-08-21 13:13:36 +02:00
parent d8e803c531
commit 05c4bfeb6e

View File

@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Artemis.Core.Extensions
{
@ -12,11 +8,8 @@ namespace Artemis.Core.Extensions
{
if (type == null)
return false;
var baseType = type.BaseType;
if (baseType == null)
return false;
return baseType.GetGenericTypeDefinition() == genericType;
return type.BaseType?.GetGenericTypeDefinition() == genericType;
}
}
}
}