More detailed C# naming guideline


#1

I know there is this one - https://msdn.microsoft.com/en-us/library/ms229002(v=vs.110).aspx. But it leaves many things unspecified, like naming of local variables and private fields.

Are there any plans for more detailed guidelines? Or maybe there are some non-official detailed conventions?


#2

Having detailed conventions for public members of libraries is important, because they affect many developers, are hard to change and people often use multiple libraries at the same time, so consistency is important.

On the other hand, the conventions for non-public members affect much smaller number of developer (only those working on your code), are easier to change (much less worry about breaking changes) and people usually work on a single codebase at a time. This means having extensive official guidelines is not really necessary.

If you want to follow some style guide, you can find a project which publishes its guide. For example, here is the one for corefx.


.NET Foundation Website | Blog | Projects | Code of Conduct