-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-System.Text.Json
Milestone
Description
It's very useful information to know if property is readable/writable (i.e. generating docs). But this information is currently not exactly obvious.
- If
JsonPropertyInfo.Get != nullthen we know property is readable - If
JsonPropertyInfo.Set != nullthen we know property is writable
but above is not complete:
- If
JsonPropertyInfo.Get != nulland there is parametrized ctor with related property property is also writable (technically it's init but that's transparent to user)
while first two are easy to check the last one is not exactly trivial due to this information not being exposed.
Somewhat related to #71944 - it could potentially be solved as part of that issue but this issue is much more scoped than that.
Metadata
Metadata
Assignees
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-System.Text.Json