Uh oh!
There was an error while loading. Please reload this page.
Fix Configuration.Binder for collection properties with no setters - #75689
Conversation
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. Fixdotnet#75626
ghost
commented
Sep 15, 2022
Tagging subscribers to this area: @dotnet/area-extensions-configuration Issue DetailsBinding 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
|
tarekgh
left a comment
There was a problem hiding this comment.
LGTM, thanks for getting this fixed quickly.
SteveDunn
commented
Sep 15, 2022
Thanks for such a quick fix @eerhardt ! |
eerhardt
commented
Sep 15, 2022
/backport to release/7.0-rc2 |
Started backporting to release/7.0-rc2: https://github.com/dotnet/runtime/actions/runs/3063957068 |
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