[Flags] Enums and Bitwise Operations in C#
Combine enum values with the [Flags] attribute in C#: how to define the values, set, clear, toggle and test flags, and the traps around zero and HasFlag.
Combine enum values with the [Flags] attribute in C#: how to define the values, set, clear, toggle and test flags, and the traps around zero and HasFlag.
Read the [Description] attribute of an enum value in C# with a short extension method, handle undefined values, and cache the result.