-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add JSON src-gen support for deserializing with parameterized ctors #56354
New issue
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
Conversation
|
Tagging subscribers to this area: @eiriktsarpalis, @layomia |
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More reasons why it should be a class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I presume this concern is no longer applicable. Should it be changed into a property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, will update in new PR to avoid CI reset.
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs
Outdated
Show resolved
Hide resolved
...em.Text.Json/src/System/Text/Json/Serialization/Converters/Value/NullableConverterFactory.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/gen/Resources/xlf/Strings.ja.xlf
Outdated
Show resolved
Hide resolved
35cc8a2 to
e02ace7
Compare
a7ecaf8 to
5b901b4
Compare
5b901b4 to
c78013a
Compare
|
New APIs in this PR are in alignment with what was agreed on in API review - #45448 (comment). Some aspects of API review still need more consideration, but not the stuff in this PR. |
eiriktsarpalis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have not yet reviewed the entire PR, but approving to unblock @layomia for today. Will circle back for more feedback on Monday.
Also fixes #56182. FYI @avdv, @jasond-s