Naming convention - underscore in C++ and C# variables

前端 未结 19 2368
春和景丽
春和景丽 2020-11-28 01:11

It\'s common to see a _var variable name in a class field. What does the underscore mean? Is there a reference for all these special naming conventions?

19条回答
  •  孤街浪徒
    2020-11-28 01:29

    From my experience (certainly limited), an underscore will indicate that it is a private member variable. As Gollum said, this will depend on the team, though.

提交回复
热议问题