Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
Naming Guidelines
 Enumeration Type Naming Guidelines
.NET Framework General Reference
Enumeration Type Naming Guidelines

The enumeration (Enum) value type inherits from the Enum Class. The following rules outline the naming guidelines for enumerations:

  • Use Pascal case for Enum types and value names.
  • Use abbreviations sparingly.
  • Do not use an Enum suffix on Enum type names.
  • Use a singular name for most Enum types, but use a plural name for Enum types that are bit fields.
  • Always add the FlagsAttribute to a bit field Enum type.

See Also

Design Guidelines for Class Library Developers | Value Type Usage Guidelines | Enum Class

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker