Skip to content

Conversation

@eiriktsarpalis
Copy link
Member

Explicitly marks the JsonReaderState type a readonly struct, which should help avoid creating defensive copies of this rather large value type in certain scenaria. This is not a breaking change and shouldn't require API review to go ahead.

@ghost ghost assigned eiriktsarpalis Jan 23, 2024
@ghost
Copy link

ghost commented Jan 23, 2024

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, 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.

@ghost
Copy link

ghost commented Jan 23, 2024

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

Issue Details

Explicitly marks the JsonReaderState type a readonly struct, which should help avoid creating defensive copies of this rather large value type in certain scenaria. This is not a breaking change and shouldn't require API review to go ahead.

Author: eiriktsarpalis
Assignees: eiriktsarpalis
Labels:

area-System.Text.Json, new-api-needs-documentation

Milestone: -

@eiriktsarpalis eiriktsarpalis added this to the 9.0.0 milestone Jan 23, 2024
@eiriktsarpalis eiriktsarpalis merged commit d250dcc into dotnet:main Jan 23, 2024
@eiriktsarpalis eiriktsarpalis deleted the jsonreaderstate-makereadonly branch January 23, 2024 23:18
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants