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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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