Skip to content

Enable null reference types on next major versionΒ #1202

@baywet

Description

@baywet

null reference type support leverages the compiler to help us and consumers avoid null reference exceptions.
Effectively this would be a breaking change and what would be required would be to:

  • enable the feature in the csproj.
  • annotate all properties and method parameters/return types with ? when a null value makes sense.
  • check that we're not using null coalesce for strings, and instead string.IsNullOrEmpty in the code base
  • solve other issues reported by the compiler

EDIT: the work for v2 is happening on release/2.0.0, for anybody looking to contribute here, please target that branch.

Metadata

Metadata

Assignees

Labels

V2-EnhancementWIPpriority:p1High priority but not blocking. Causes major but not critical loss of functionality SLA <=7daystype:enhancementEnhancement request targeting an existing experience

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions