Changes to Nullable Reference Type Annotation: AssociatedMetadataTypeTypeDescriptionProvider #25957
Closed
1 of 2 tasks
Labels
breaking-change
Indicates a .NET Core breaking change
🏁 Release: .NET 6
Issues and PRs for the .NET 6 release
source incompatible
Source code may encounter a breaking change in behavior when targeting the new version.
Description
There were a few APIs in
System.ComponentModel.DataAnnotations.AssociatedMetadataTypeTypeDescriptionProvider
that were previously unannotated for Nullable Reference Types. The annotations have now been applied.These changes were made in dotnet/runtime#57932.
Version
.NET 6 RC2
Previous behavior
The APIs were treated as "oblivious" with regard to reference type nullability.
New behavior
The APIs are now annotated with their accurate nullability conditions.
Type of breaking change
Reason for change
These APIs had dependencies on other APIs that were previously unannotated. The dependencies have since been annotated, allowing these APIs to also be annotated, completing our nullable reference type annotations for the shared framework libraries.
Recommended action
Update code calling these APIs to reflect the revised nullability contracts.
Feature area
Core .NET libraries
Affected APIs
The text was updated successfully, but these errors were encountered: