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