【发布时间】:2010-08-19 20:01:47
【问题描述】:
力图按部就班,这样对吗?:
public class JollyHockey
{
public string AnotherCoolProperty { get { return anotherCoolProperty; } }
string anotherCoolProperty;
public JollyHockey(string anotherCoolProperty)
{
this.anotherCoolProperty = anotherCoolProperty;
}
}
或者有些人对私有类变量使用下划线?
【问题讨论】:
-
下载 ReSharper 试用版并使用几周。这会将各种行业标准命名约定和次要重构推向您,包括您在此处谈论的内容。
标签: c# naming-conventions coding-style