Skip to content

Config binder generator doesn't generate code when named arguments are out of order #90908

Description

@stephentoub

This will successfully generate code:

internal void Configure(IConfiguration configuration) =>
    ConfigurationBinder.Bind(configuration: configuration, instance: this);

but this will not:

internal void Configure(IConfiguration configuration) =>
    ConfigurationBinder.Bind(instance: this, configuration: configuration);

Metadata

Metadata

Assignees

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutarea-Extensions-Configurationbugsource-generatorIndicates an issue with a source generator feature

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions