Skip to content

System.Text.Json polymorphism updates for .NET 7#31417

Merged
IEvangelist merged 24 commits into
dotnet:mainfrom
IEvangelist:stj-polymorphism-updates
Sep 28, 2022
Merged

System.Text.Json polymorphism updates for .NET 7#31417
IEvangelist merged 24 commits into
dotnet:mainfrom
IEvangelist:stj-polymorphism-updates

Conversation

@IEvangelist

@IEvangelist IEvangelist commented Sep 26, 2022

Copy link
Copy Markdown
Member

Summary

System.Text.Json polymorphism updates for .NET 7

Fixes #30879

Preview

@IEvangelist
IEvangelist marked this pull request as ready for review September 28, 2022 14:53
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
Comment thread docs/standard/serialization/system-text-json/polymorphism.md Outdated
IEvangelist and others added 2 commits September 28, 2022 13:48
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@IEvangelist
IEvangelist merged commit 9646587 into dotnet:main Sep 28, 2022
@gewarren gewarren added the 🏁 Release: .NET 7 Work items for the .NET 7 release label Oct 6, 2022
@IEvangelist IEvangelist added the okr-freshness OKR: Freshness of content label Oct 13, 2022
if (!reader.Read())
{
// Not enough of the JSON is in the buffer to complete a read.
GetMoreBytesFromStream(stream, ref buffer, ref reader);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @IEvangelist - Removing ref from buffer broke this sample (run-time exception). I have fixed it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏁 Release: .NET 7 Work items for the .NET 7 release dotnet-fundamentals/svc okr-freshness OKR: Freshness of content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update (and correct) the existing System.Text.Json article on polymorphism

4 participants