Total .NET Analyzer Rule Documentation  

EnumSuffix Rule

Do not use the suffix 'Enum' for enumeration names.

Remarks

Using a standardized naming convention is an important element in writing code that is easy to read, understand, and maintain. Microsoft recommends that you do not use the suffix 'Enum' for enumeration names. Instead, you should choose a name that describes the enum's purpose.

Resolution

Remove the suffix Enum from enumeration names. For example, instead of:

' VB
Public Enum DaysEnum

// C#
enum DaysEnum

you should use:

' VB
Public Enum Days

// C#
enum Days

(Note that this is standardized naming convention, so it has no effect on the execution of code.)

See Also

Enumeration Type Naming Guidelines