コード例 #1
0
        public static void Example()
        {
            // create a bit field with the 'A' and 'C' flags set (0101)
            Flags field = Flags.A | Flags.C;

            // checks if the 'A' bit is enabled
            if (BitField.IsFlagSet(field, Flags.A))
            {
                // clears only the bit representing 'C'
                BitField.ClearFlag(field, Flags.C);
            }
        }