-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
area-System.Text.JsonenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedwishlistIssue we would like to prioritize, but we can't commit we will get to it yetIssue we would like to prioritize, but we can't commit we will get to it yet
Milestone
Description
IMHO, IReadOnlyDictionary
should work identical to IDictionary
when using with JsonExtensionData
attribute.
[JsonExtensionData]
public IReadOnlyDictionary<string, JsonElement> Payload { get; set; }
Currently it fails with error:
System.InvalidOperationException: The data extension property 'Payload' does not match the required signature of IDictionary<string, JsonElement> or IDictionary<string, object>.
This is analogous to collection properties which can be defined as List<T>
, IList<T>
or IReadOnlyList<T>
etc.
bill-poole, dstarkowski, shravan2x, cdonnellytx and SwimburgerCopilot
Metadata
Metadata
Assignees
Labels
area-System.Text.JsonenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedwishlistIssue we would like to prioritize, but we can't commit we will get to it yetIssue we would like to prioritize, but we can't commit we will get to it yet