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

前端 未结 19 2266
春和景丽
春和景丽 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:47

    You can create your own coding guidelines. Just write a clear documentation for the rest of the team.

    Using _field helps the Intelilsense to filter all class variables just typing _.

    I usually follow the Brad Adams Guidelines, but it recommends to not use underscore.

提交回复
热议问题