I have came across this question: What does the [Flags] Enum Attribute mean in C#?
And one thing I have been wondering, using the accepted answer's example, what will happen if I declare:
[Flags]
public enum MyColors
{
Yellow = 1,
Green = 2,
Red = 3,
Blue = 4
}
Will the following steps in that example resulting an error? If no, how can I get to MyColors.Red?