Skip to content

Adopt nullable reference types #1029

Closed
@bart-degreed

Description

@bart-degreed

The plan is to enable nullable reference types and review the nullability of all code (ie choose between nullable vs non-nullable references).
A prerequisite for this is .NET 5 because of its improved unconstrained generics support.

In the process, we'll likely want to make breaking changes to clarify the contract. For example IResourceContextProvider.GetResourceContext() today returns null when not found. Due to this loose contract, all callers are required to null-check or possibly face a NullReferenceException. So instead we'd like to offer ResourceContext GetResourceContext() (throws when not found) and ResourceContext? TryGetResourceContext (returns null when not found).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions