Uh oh!
There was an error while loading. Please reload this page.
Fix Binding with IDictionary<,> implementer types - #77582
Conversation
ghost
commented
Oct 28, 2022
Tagging subscribers to this area: @dotnet/area-extensions-configuration Issue DetailsFixes #77246 In .NET 7.0 we have done some refactoring work in the configuration binding code #68133. The refactored code work fine when binding to
|
tarekgh
commented
Oct 28, 2022
CC @SteveDunn |
SteveDunn
left a comment
There was a problem hiding this comment.
LGTM - sorry I didn't address the issue myself but I'm a bit busy in my day job right now.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tarekgh
commented
Nov 9, 2022
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3430573766 |
Fixes#77246
In .NET 7.0 we have done some refactoring work in the configuration binding code #68133. The refactored code work fine when binding to
IDictionary<,>interface orDictionary<,>based class but it broke the case when using a type which implementingIDictionary<,>interface. The new code was always creatingDictionary<,>type and then getting the setter of theItemproperty from that type. But the object used in the binding is not of typeDictionary<,>at all and the property setter fails because it is used with wrong type.