When i originally learned C# i learned basically with notepad and a compiler and I was taught to use camel case (thisVariablesName) for public, underscore (_thisVariablesName) for private and pascal (ThisVariablesName) for method names. Now im using a book to learn WPF and WinForms C# programming and the 2 books i have is using pascal for public variables and for methods and camel case for private.
My question is once i get employment in the real world with development is there a common way that most companies use? or is the books right and im doing it wrong originally?
Question
Colin McGregor
When i originally learned C# i learned basically with notepad and a compiler and I was taught to use camel case (thisVariablesName) for public, underscore (_thisVariablesName) for private and pascal (ThisVariablesName) for method names. Now im using a book to learn WPF and WinForms C# programming and the 2 books i have is using pascal for public variables and for methods and camel case for private.
My question is once i get employment in the real world with development is there a common way that most companies use? or is the books right and im doing it wrong originally?
Eg:
public int thisVariablesName;
private int _thisVariablesName;
public void ThisVariable()
{
}
Link to comment
Share on other sites
7 answers to this question
Recommended Posts