Class
範例
命名原則
- PascalCasing
- 使用名詞組成
- 一些默契
Base Type | Derived/Implementing Type Guideline |
---|---|
System.Attribute | add the suffix "Attribute" |
IDictionary Dictionary |
add the suffix "Dictionary. |
IEnumerableICollectionIListIEnumerable |
add the suffix "Collection." |
System.IO.Stream | add the suffix "Stream. |
CodeAccessPermission IPermission | add the suffix "Permission. |
參考資料
https://msdn.microsoft.com/en-us/library/ms229040(v=vs.110).aspx