Closed
Description
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).