views:

155

answers:

3

im new to this and would like to develop sound programming practices.

i am wondering if members of an Enum declaration should be all uppercase or just the first letter?

thank you.

+21  A: 

MSDN - Enumeration Type Naming Guidelines

Use Pascal case for Enum types and value names.

And a definition of Pascal case:

The first letter in the identifier and the first letter of each subsequent concatenated word are capitalized. You can use Pascal case for identifiers of three or more characters.

For example: BackgroundColor


For future reference, Microsoft provides extensive naming guidelines for almost everything. You can find them at:

MSDN - Naming Guidelines

Justin Niessner
Please describe PascalCase in your answer.
C. Ross
+3  A: 

Usually, all enums are PascalCased.

This is a good article to read about enums: Enum Design

HTH.

Sunny
A: 

PascalCase for sure.

George Handlin