Your Trail C >
C Sharp > C# Programming Conventions
Copyright Information
Basically you follow
Java Coding Convention except
the following cases. You could choose to follow Java convention all the time,
however, you code would look a little bit different than standard C# libraries.
1 Method names
Use upper case for each single word in a method name, for example: GetRockyName.
2 Property names
Use upper case for each single word in a method name, for example: RockyName.
private String rockyName = "";
public String RockyName
{
get{ return this.rockyName;}
set{ this.rockyName = value;}
}
Note that rockyName start with lower case r and the getter and setters start with
an upper case R. Using upper case property name also makes it easier here to
use this C# sugar.
3 Non-Property Variable Names
Use Java convention (or the so-called Camel convention, upper-case all words in
the variable name except the first one).