mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
😒
This commit is contained in:
1 parent
d8e803c531
commit
05c4bfeb6e
1 file changed
+3
-10
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user