Removing unused method

This commit is contained in:
Chris Cameron
2017-11-13 14:56:48 -05:00
parent bb118111a0
commit d2be93d0a6

View File

@@ -52,20 +52,5 @@ namespace ICD.Common.Utils.Extensions
ulong num = Convert.ToUInt64(value);
return (Convert.ToUInt64(extends) & num) == num;
}
/// <summary>
/// Casts the enum to the given type.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="extends"></param>
/// <returns></returns>
[PublicAPI]
public static T Cast<T>(this Enum extends)
{
if (extends == null)
throw new ArgumentNullException("extends");
return (T)Enum.ToObject(typeof(T), extends);
}
}
}