On the MSDN Enum Class page, there are a couple examples of using Enums with the Flags Attribute. One is written:
<Flags> Public Enum Pets As Integer
and another is written:
<FlagsAttribute()> Enum Colors
The text treats these examples as equivalent. Is there a difference between these forms? Are the parentheses required?
They are completely equivalent. The conventions are as follows
Full rules can be found in the documentation. Guidelines for attribute usage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With