perf: Massive optimization for enum utils

This commit is contained in:
Chris Cameron
2018-07-25 13:26:38 -04:00
parent a13daa18db
commit aa3559cb4e

View File

@@ -35,11 +35,12 @@ namespace ICD.Common.Utils
if (type == null)
throw new ArgumentNullException("type");
return type.IsAssignableTo(typeof(Enum)) || type
// Type
return type
#if !SIMPLSHARP
.GetTypeInfo()
.GetTypeInfo()
#endif
.IsEnum;
.IsEnum;
}
/// <summary>