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).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.220.153