【发布时间】:2012-01-11 05:11:58
【问题描述】:
你选择哪一个以及为什么:
public class User
{
public long UserID { get; set; }
}
public class User
{
public long UserId { get; set; }
}
也可以作为参数:
public void DoSomething(long userId) { }
public void DoSomething(long userID) { }
【问题讨论】:
-
@CodyGray:哦,这么多重复..但是为什么我在 SO 中使用
[c#] ID Id搜索没有得到结果:(至少第一页没有结果。
标签: c# .net coding-style naming-conventions pascalcasing