public static bool Is(this UISpellInfo_Flags type, UISpellInfo_Flags value) { try { return (int)type == (int)value; } catch { return false; } }
public static bool Is(this UISpellInfo_Flags type, UISpellInfo_Flags value) { try { return((int)type == (int)value); } catch { return(false); } }
public static UISpellInfo_Flags Remove(this UISpellInfo_Flags type, UISpellInfo_Flags value) { try { return (UISpellInfo_Flags)(((int)type & ~(int)value)); } catch (Exception ex) { throw new ArgumentException(string.Format("Could not remove value from enumerated type '{0}'.", typeof(UISpellInfo_Flags).Name), ex); } }
public static UISpellInfo_Flags Remove(this UISpellInfo_Flags type, UISpellInfo_Flags value) { try { return((UISpellInfo_Flags)(((int)type & ~(int)value))); } catch (Exception ex) { throw new ArgumentException(string.Format("Could not remove value from enumerated type '{0}'.", typeof(UISpellInfo_Flags).Name), ex); } }