A game about forced loneliness, made by TACStudios
1using System; 2 3namespace Unity.PlasticSCM.Editor 4{ 5 internal static class EnumExtensions 6 { 7 internal static bool HasFlag(this Enum variable, Enum value) 8 { 9 if (variable.GetType() != value.GetType()) 10 throw new ArgumentException( 11 "The checked flag is not from the same type as the checked variable."); 12 13 Convert.ToUInt64(value); 14 ulong num = Convert.ToUInt64(value); 15 ulong num2 = Convert.ToUInt64(variable); 16 17 return (num2 & num) == num; 18 } 19 } 20}