Is there a way to replace a converter for a type in a source generated JsonSerializerContext? #95125
Unanswered
paulomorgado
asked this question in
Q&A
Replies: 1 comment 5 replies
-
You can put |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine I have this DTO:
And this source generated serializer context:
The source generator tries to generate code to serialize
ReadOnlySequence<byte>
which it can't.I tried:
And the source generator correctly generates:
But still generates code to serialize
ReadOnlySequence<byte>
,ReadOnlyMemory<byte>
andReadOnlySpan<byte>
.Beta Was this translation helpful? Give feedback.
All reactions