Do you know that Enum types should not be suffixed with the word "Enum"?

Updated by Brady Stroud [SSW] 1 year ago. See history

123
<introEmbed body={<> This is against the .NET Object Naming Conventions and inconsistent with the framework. </>} />
Public Enum ProjectLanguageEnum CSharp VisualBasic End Enum

❌ Figure: Bad example - Enum type is suffixed with the word "Enum"

Public Enum ProjectLanguage CSharp VisualBasic End Enum

✅ Figure: Good example - Enum type is not suffixed with the word "Enum"

We have a program called SSW Code Auditor to check for this rule.

Acknowledgements

Adam Cogan
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star