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