Class

範例

命名原則

  1. PascalCasing
  2. 使用名詞組成
  3. 一些默契
Base Type Derived/Implementing Type Guideline
System.Attribute add the suffix "Attribute"
IDictionary Dictionary add the suffix "Dictionary.
IEnumerable ICollection IList IEnumerable ICollection IList 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

results matching ""

    No results matching ""