Skip to content

Changes to Nullable Reference Type Annotation: AssociatedMetadataTypeTypeDescriptionProvider #25957

Description

@jeffhandley

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

  • Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load/execute or different run-time behavior.
  • Source incompatible: Source code may encounter a breaking change in behavior when targeting the new runtime/component/SDK, such as compile errors or different run-time behavior.

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

Metadata

Metadata

Assignees

Labels

🏁 Release: .NET 6Issues and PRs for the .NET 6 releasebreaking-changeIndicates a .NET Core breaking changesource incompatibleSource code may encounter a breaking change in behavior when targeting the new version.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions