mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-29 04:15:10 +00:00
Tidying
This commit is contained in:
@@ -533,17 +533,7 @@ namespace ICD.Common.Utils
|
||||
// ReSharper disable once CompareNonConstrainedGenericWithNull
|
||||
throw new ArgumentException(string.Format("{0} is not an enum", value == null ? "NULL" : value.GetType().Name), "value");
|
||||
|
||||
return ToEnum((object)value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts the given enum value to an Enum.
|
||||
/// </summary>
|
||||
/// <param name="value"></param>
|
||||
/// <returns></returns>
|
||||
public static Enum ToEnum(object value)
|
||||
{
|
||||
return (Enum)value;
|
||||
return (Enum)(object)value;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user