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.

aaronontheweb a39a1fb 3 files · 40.4 KB Updated

File contents

aaronontheweb/dotnet-skills/tree/main/skills/csharp-nullable-reference-types commit a39a1fbbb0

Frequently asked questions

npx skillmds@latest add aaronontheweb/csharp-nullable-reference-types