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

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

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

            return(GetFlagIfItExists((int)(object)enumFlag));
        }
Exemplo n.º 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);
        }