Flags Enumeration

You can use enumeration constants to represent bit flags.
You can attach an attribute System.FlagsAttribute to an enumeration
You can use enumeration constants to represent bit flags
Use the System.FlagAttribute attribute


[System.Flags] 
[System.FlagsAttribute]
{
   level1 = 0x0,
   level2 = 0x1,
   level3 = 0x2
}
<System.Flags> 
<System.FlagsAttribute()>


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext