Skip to content

Need an efficient helper to check if an instance of T is a default(T) #20240

@VSadov

Description

@VSadov

The need arises once in a while to check if a value at hand is not initialized.

See for example comments on dotnet/corefx#16122 (comment)

Also, If/when parameterless constructors for structs are introduced, the need for IsDefault check could become more apparent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-needs-workAPI needs work before it is approved, it is NOT ready for implementationarea-System.Runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions