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
Post a Comment