Skip to content

Introduce nullable reference types #464

@JamieMagee

Description

@JamieMagee

Nullable reference types were introduced in C# 8 (.NET Core 3.0) and are enabled by default in new projects created targeting .NET 6. They help to prevent NullReferenceExceptions with 3 main features:

  • Improved static flow analysis that determines if a variable may be null before dereferencing it
  • Attributes that annotate APIs so that the flow analysis determines null-state
  • Variable annotations that developers use to explicitly declare the intended null-state for a variable

We should use the nullable reference migration guide to plan our migration.

NOTE: Adding nullable reference types is not considered a semver breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:requirementsFull requirements are not yet known, so implementation should not be startedtype:refactorRefactoring or improving of existing code

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions