8000 Add information on Reference Type Nullability during runtime · Issue #9854 · dotnet/dotnet-api-docs · GitHub
[go: up one dir, main page]

Skip to content
Add information on Reference Type Nullability during runtime #9854
Open
@hexxone

Description

@hexxone

In reference to dotnet/runtime#101438

I have been looking for a way to determine the Nullability of "string?" Properties on DTOs during runtime.

But this happens mostly during compile-time and gets converted to "string" with a special compiler "NullableAttribute" instead.

Finding the proper solution was hard, because the Nullable Reference Type docs have no hint or link to the NullabilityInfoContext which can be used for exactly this purpose.

It would be great to add a note of some kind to either the Nullable Reference Type docs above and/or the Nullable Analysis docs.

Because the Nullable Value Type docs also contain a reference to the related Nullable.GetUnderlyingType() docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.Reflectionhelp wantedGood for community contributors to help [up-for-grabs]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0