What is the C# static fields naming convention?
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-06-18T16:21:50Z
Indexed on
2010/06/18
16:33 UTC
Read the original article
Hit count: 569
I have recently started using ReSharper which is a fantastic tool. Today I came across a naming rule for static fields, namely prefixing with an underscore ie.
private static string _myString;
- Is this really the standard way to name static variables? If so is it just personal preference and style, or does it have some sort of lower level impact? Eg Compilation JIT etc?
- Where does this style originate from? I have always associated it with C++, is that correct?
© Stack Overflow or respective owner