Skip to content
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

System.Text.Json: Structs should serialize all public fields #44009

Closed
jessicah opened this issue Oct 29, 2020 · 4 comments
Closed

System.Text.Json: Structs should serialize all public fields #44009

jessicah opened this issue Oct 29, 2020 · 4 comments

Comments

@jessicah
Copy link

Description

Structs should serialize all public fields by default.

Configuration

.net core 5.0

Other information

I haven't tried C# 9 record types, but I would assume the behaviour should be the same there too.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Text.Json untriaged New issue has not been triaged by the area owner labels Oct 29, 2020
@Symbai
Copy link

Symbai commented Oct 29, 2020

And can you tell us WHY it should do that?

@Joe4evr
Copy link
Contributor

Joe4evr commented Oct 29, 2020

Why have you opened a duplicate issue?

@GrabYourPitchforks
Copy link
Member

Possible dupe of #876.

@layomia
Copy link
Contributor

layomia commented Oct 29, 2020

Closing as dupe of #44009 and #876.

@layomia layomia closed this as completed Oct 29, 2020
@layomia layomia removed the untriaged New issue has not been triaged by the area owner label Oct 29, 2020
@layomia layomia added this to the 6.0.0 milestone Oct 29, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants