IntelliTect / IntelliTect/CodingGuidelines

C# 9 Guideline Proposals

オープン
#138 コメント 1 件 リアクション 0 件 担当者 1 名 @Keboo が担当を希望しています GitHub で見る
documentation good first issue
主要言語
C#
スター
12
フォーク
16
平均マージ
2分
マージ済み PR(30日)
7

説明

- CONSIDER using records over classes
Unless:
- Inheritance chains with classes are required
- The identity of the object is not based of the value of all its fields
- The type is in a public API that may be consumed by older versions of C#
- AVOID positional records when validation of positional members is required
- CONSIDER using init properties instead of readonly properties for optional values
- DO define a constructor to allow setting init properties for backwards compatibility with pre-C# 9
- DO name record positional parameter with PascalCase

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。