domains / families / software-engineering / csharp-nullable-reference-types

csharp-nullable-reference-types

separate

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.

When to use

Skill page

Source

RepositoryPath
Aaronontheweb/dotnet-skillsskills/csharp-nullable-reference-types/SKILL.md