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 Updated 1.3k repo stars

File contents

aaronontheweb/dotnet-skills commit a39a1fbbb0

Frequently asked questions

npx get-skill add aaronontheweb/csharp-nullable-reference-types