IntelliTect / IntelliTect/CodingGuidelines
C# 9 Guideline Proposals
Abierto
documentation
good first issue
- Lenguaje dominante
- C#
- Estrellas
- 12
- Forks
- 16
- Merge medio
- 2 min
- PR fusionados (30 d)
- 7
Descripción
- 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
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.