Naming conventions for private members of .NET types

Posted by Joan Venge on Stack Overflow See other posts from Stack Overflow or by Joan Venge
Published on 2010-03-26T20:00:48Z Indexed on 2010/03/26 20:03 UTC
Read the original article Hit count: 515

Filed under:
|
|
|
|

Normally when I have a private field inside a class or a struct, I use camelCasing, so it would be obvious that it's indeed private when you see the name of it, but in some of my colleagues' C# code, I see that they use m_ mostly or sometimes _, like there is some sort of convention.

Aren't .NET naming conventions prevent you from using underscores for member names?

And when you mention the MS naming conventions or what not, they tell you it's the best way, but don't explain the reasoning behind it.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET