why C# and C++ use _<variableName> coding convention? -


i have seen c# , c++ code variable naming convention seems ask programmers write variable names using underscore before text of variable. e.gr.

int? _countmoney; 

what's rationale supporting convention?

in c# prefix _ private fields never local variables. rationale behind when need private variable type _ , intellisense filters list , easier find. way able distinguish between private local variables , no longer need type this.variablename class fields _variablename.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -