mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
perf: Massive optimization to enum utils
This commit is contained in:
parent
220e778a76
commit
80e6fe33c7
1 changed files with 3 additions and 3 deletions
|
|
@ -35,11 +35,11 @@ namespace ICD.Common.Utils
|
||||||
if (type == null)
|
if (type == null)
|
||||||
throw new ArgumentNullException("type");
|
throw new ArgumentNullException("type");
|
||||||
|
|
||||||
return type.IsAssignableTo(typeof(Enum)) || type
|
return type
|
||||||
#if !SIMPLSHARP
|
#if !SIMPLSHARP
|
||||||
.GetTypeInfo()
|
.GetTypeInfo()
|
||||||
#endif
|
#endif
|
||||||
.IsEnum;
|
.IsEnum || type.IsAssignableTo(typeof(Enum));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue