Skip to content

Conversation

@eerhardt
Copy link
Member

Binding to an IDictionary/ICollection/ISet in ConfigurationBinder with no setter was failing because we were returning too early.

Only returning early now if we were able to set the property, or if the interface is read-only.

Fix #75626

fyi @SteveDunn - this looks like another regression from #68133

Binding to an IDictionary/ICollection/ISet in ConfigurationBinder with no setter was failing because we were returning too early.

Only returning early now if we were able to set the property, or if the interface is read-only.

Fix dotnet#75626
@ghost
Copy link

ghost commented Sep 15, 2022

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

Issue Details

Binding to an IDictionary/ICollection/ISet in ConfigurationBinder with no setter was failing because we were returning too early.

Only returning early now if we were able to set the property, or if the interface is read-only.

Fix #75626

fyi @SteveDunn - this looks like another regression from #68133

Author: eerhardt
Assignees: -
Labels:

area-Extensions-Configuration

Milestone: -

Copy link
Member

@tarekgh tarekgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for getting this fixed quickly.

@SteveDunn
Copy link
Contributor

Thanks for such a quick fix @eerhardt !

@eerhardt eerhardt merged commit 9ed97ee into dotnet:main Sep 15, 2022
@eerhardt eerhardt deleted the Fix75626 branch September 15, 2022 21:53
@eerhardt
Copy link
Member Author

/backport to release/7.0-rc2

@github-actions
Copy link
Contributor

Started backporting to release/7.0-rc2: https://github.com/dotnet/runtime/actions/runs/3063957068

@ghost ghost locked as resolved and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Options binding fails on get-only IDictionary<,> properties

5 participants