mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +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,7 +35,8 @@ 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue