A Flags is an attribute that allows us to represent an enum as a collection of values rather than a single value. So, let’s see how we can implement the Flags attribute on enumeration: [Flags] public enum UserType { Customer = 1, Driver = 2, Admin = 4, } We add the Flags attribute and number the values with powers of 2. Without both, this won ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.