We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing information
I do not find the value corresponding to the two parameters of JsonPropertyInfo.Set delegate. I finally found that:
JsonPropertyInfo.Set
JsonPropertyInfo
I think that an explanation could be useful. As an example, we could use:
jsonPropertyInfo.Set = (instance, propertyValue) => { instance.GetType().GetProperty(jsonPropertyInfo.Name)!.DeclaringType!.GetProperty(jsonPropertyInfo.Name)!.GetSetMethod(true)!.Invoke(instance, [propertyValue]); };
I wrote it myself to call private setters on public properties.
Thank you
https://learn.microsoft.com/en-us/dotnet/api/system.text.json.serialization.metadata.jsonpropertyinfo.set?view=net-9.0
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Text.Json.Serialization.Metadata/JsonPropertyInfo.xml
ffedbd9c-8ac4-1dee-863a-467e64ad5ff7
@dotnet-bot
The text was updated successfully, but these errors were encountered:
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Sorry, something went wrong.
Tagging subscribers to this area: @dotnet/area-system-text-json
No branches or pull requests
Type of issue
Missing information
Description
I do not find the value corresponding to the two parameters of
JsonPropertyInfo.Set
delegate.I finally found that:
JsonPropertyInfo
property that will be set.I think that an explanation could be useful.
As an example, we could use:
I wrote it myself to call private setters on public properties.
Thank you
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.text.json.serialization.metadata.jsonpropertyinfo.set?view=net-9.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Text.Json.Serialization.Metadata/JsonPropertyInfo.xml
Document Version Independent Id
ffedbd9c-8ac4-1dee-863a-467e64ad5ff7
Article author
@dotnet-bot
The text was updated successfully, but these errors were encountered: