mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
😒
This commit is contained in:
parent
d8e803c531
commit
05c4bfeb6e
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user