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

Missing any explanation on how to respect the ReferenceResolver in use when ReferenceHandler.Preserve has been used #44491

Open
DarkNoir opened this issue Jan 23, 2025 · 0 comments

Comments

@DarkNoir
Copy link

DarkNoir commented Jan 23, 2025

Type of issue

Typo

Description

Missing any explanation on how to respect the ReferenceResolver in use when ReferenceHandler.Preserve has been used, and your converter is called on a child in the object graph being serialized or deserialized. The converter examples you provide only work when no references are being maintained. Please provide some guidance. Can you even get a reference to the ReferenceResolver in use? Calling ReferenceHandler.CreateResolver throws an exception (It's already been created earlier in the graph being serialized). Is this a documentation problem or a feature issue?

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/converters-how-to

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/serialization/system-text-json/converters-how-to.md

Document Version Independent Id

678c4f23-764a-7ccd-0d6d-159a30957477

Article author

@gewarren

Metadata

  • ID: 5de37d79-751f-e372-e866-efde28f4908c
  • Service: dotnet-fundamentals

Related Issues

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

No branches or pull requests

1 participant