C# Coding Best Practices, Coding Standards
A Quick table to identify when to use what.
|
|
Starts With |
Writing Style |
Example |
|
Class |
Any |
Pascal Case |
MyClass |
|
Struct |
Any |
Pascal Case |
MyStruct |
|
Interface |
I |
Pascal Case |
IMyInterface |
|
Private Fields |
_(Underscore) |
Camel Case |
_userName |
|
Internal Fields |
_(Underscore) |
Camel Case |
_userName |
For more detailed information see here
Comments