Exemple #1
0
        public bool HasEnumFlag <T>(T enumFlag) where T : struct, IComparable, IConvertible, IFormattable
        {
            DebugUtils.AssertIsEnumType <T>();

            return(HasFlag((int)(object)enumFlag));
        }
Exemple #2
0
        public void InvertEnumFlag <T>(T enumFlag) where T : struct, IComparable, IConvertible, IFormattable
        {
            DebugUtils.AssertIsEnumType <T>();

            InvertFlag((int)(object)enumFlag);
        }
Exemple #3
0
        public bool GetEnumFlagIfItExists <T>(T enumFlag) where T : struct, IComparable, IConvertible, IFormattable
        {
            DebugUtils.AssertIsEnumType <T>();

            return(GetFlagIfItExists((int)(object)enumFlag));
        }
Exemple #4
0
        public void SetEnumFlag <T>(T enumFlag, bool value, bool expandIfNecessary = false) where T : struct, IComparable, IConvertible, IFormattable
        {
            DebugUtils.AssertIsEnumType <T>();

            SetFlag((int)(object)enumFlag, value, expandIfNecessary);
        }