From Java to C#: A Developers Guide

C.3 Naming C# enums

Use Pascal casing for both enum identifiers and enum value names . For example:

enum Day {Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday};

It is not recommended to add Enum after the enum identifier. In the case above, Day would be more appropriate than DayEnum .

Enum names should be singular “ Day is preferable to Days (it is obvious that an enum type will represent multiple items).

Категории