mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Tidying
This commit is contained in:
parent
02ecff187d
commit
825fb55bd8
1 changed files with 1 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue