Is there any C# naming convention for a variable used in a property?

后端 未结 12 1683
无人及你
无人及你 2021-01-31 07:26

Let\'s say, we have a variable, which we want named Fubar

Let\'s say that Fubar is a String!

That means, we would define F

12条回答
  •  悲&欢浪女
    2021-01-31 08:13

    If you name your private variables starting with lower case, you can right click on them and have VS generate your getter/setter code for you;

    Refactor->Enacpsulate Field...

    It will name the property with Caps.

提交回复
热议问题