csharp-nullable-reference-types
Guidelines for introducing and using nullable reference types (NRT) and System.Diagnostics.CodeAnalysis nullable attributes in C# / .NET codebases. Covers the nullability model, flow analysis, the null-forgiving operator, API design rules, the full attribute catalog (AllowNull, DisallowNull, MaybeNull, NotNull, NotNullWhen, MaybeNullWhen, NotNullIfNotNull, MemberNotNull, MemberNotNullWhen, DoesNotReturn, DoesNotReturnIf), the C# 14 field keyword, incremental migration of legacy codebases, and a code-generation checklist.
Pinned to revision 1f6ed35d48cb, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/csharp-nullable-reference-types/SKILL.md
- skills/csharp-nullable-reference-types/nrt-migration-playbook-reference.md
- skills/csharp-nullable-reference-types/nullable-attributes-reference.md
Every link opens the file at its source, pinned to the revision this page describes.