Skip to content

ParameterInfo.DefaultValue may return Type.Missing #9438

Open
@OwnageIsMagic

Description

@OwnageIsMagic

ParameterInfo.DefaultValue may return Type.Missing if parameter is optional, but no default value in metadata (probably COM interop case). Same for ParameterInfo.RawDefaultValue

See implementation

https://github.com/dotnet/runtime/blob/v7.0.13/src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeParameterInfo.cs#L287-L298

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