【发布时间】:2014-10-13 14:35:46
【问题描述】:
我有一个关于 C# 命名约定规则的问题。
我知道你写的是 ex。 CustomerId.
但如果属性是CustomerId 的List 呢?
我应该写CustomerIds 还是CustomerIdS?
【问题讨论】:
-
绝对不是后者。这看起来很傻。
-
根据我的经验,您不会使用复数名称。我同意塞尔曼的观点。 “CustomerIdList”是最合适的。
-
@MattBurland 你可以随时扩展它:
CustomerIdentifiers;)
标签: c# naming-conventions naming