mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Removing unused method
This commit is contained in:
parent
bb118111a0
commit
d2be93d0a6
1 changed files with 0 additions and 15 deletions
|
|
@ -52,20 +52,5 @@ namespace ICD.Common.Utils.Extensions
|
||||||
ulong num = Convert.ToUInt64(value);
|
ulong num = Convert.ToUInt64(value);
|
||||||
return (Convert.ToUInt64(extends) & num) == num;
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue