feat(c#): c# serialization implementation#3383
Merged
chaokunyang merged 35 commits intoapache:mainfrom Feb 23, 2026
Merged
Conversation
73fc2cd to
50ffa34
Compare
pandalee99
approved these changes
Feb 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
Introduce aC# implementation of Fory xlang serialization
What does this PR do?
csharp/solution and runtime (Fory) with buffer IO, type/metadata resolution, reference tracking, schema hash/version handling, and serializers for primitives, strings, time, enums, unions, optionals, collections, and dictionary variants.Fory.Generator) for[ForyObject]/[Field]to generate serializers, module-level registration, and compile-time diagnostics for unsupported patterns.csharp/tests/Fory.Tests/ForyRuntimeTests.cs) and theFory.XlangPeerexecutable used for cross-language validation.CSharpXlangTest..gitignoreand license mapping for.cs.Related issues
#1017 #3387
Closes #3392
Closes #3391
Closes #3390
Closes #3389
Closes #3388
Closes #3393
Does this PR introduce any user-facing change?
Yes. This introduces new C# runtime APIs and a source-generator workflow; the wire protocol itself is unchanged.
Benchmark