From 825fb55bd8029bd2e19e61b3d562fa518c8ea1ee Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Fri, 9 Mar 2018 14:14:37 -0500 Subject: [PATCH] Tidying --- ICD.Common.Utils/EnumUtils.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ICD.Common.Utils/EnumUtils.cs b/ICD.Common.Utils/EnumUtils.cs index 38241fe..e27261d 100644 --- a/ICD.Common.Utils/EnumUtils.cs +++ b/ICD.Common.Utils/EnumUtils.cs @@ -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); - } - - /// - /// Converts the given enum value to an Enum. - /// - /// - /// - public static Enum ToEnum(object value) - { - return (Enum)value; + return (Enum)(object)value; } #endregion