C# Naming Conventions – Most Common Practices Explained

c++naming-conventions

What are the most common naming conventions in C# for classes, namespaces and methods? Is it common to have getter/setter style methods as in Java?

Best Answer

Guidelines for Names (from Design Guidelines for Developing Class Libraries, in which you will also find sections about properties and choosing between properties and methods. In that last article, you will find the following:

Do use a property, rather than a method, if the value of the property is stored in the process memory and the property would just provide access to the value.

Related Question