This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git
The following commit(s) were added to refs/heads/main by this push:
new e4612a0758 π synced local 'docs/guide/' with remote 'docs/guide/'
e4612a0758 is described below
commit e4612a0758695253b8975454c9382c166d7bc1e7
Author: chaokunyang <[email protected]>
AuthorDate: Thu Feb 26 16:07:09 2026 +0000
π synced local 'docs/guide/' with remote 'docs/guide/'
---
docs/guide/csharp/basic-serialization.md | 12 ++++++------
docs/guide/csharp/index.md | 4 ++--
docs/guide/csharp/supported-types.md | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/docs/guide/csharp/basic-serialization.md
b/docs/guide/csharp/basic-serialization.md
index 2188c912d3..9c4573a0af 100644
--- a/docs/guide/csharp/basic-serialization.md
+++ b/docs/guide/csharp/basic-serialization.md
@@ -19,7 +19,7 @@ license: |
limitations under the License.
---
-This page covers typed and dynamic serialization APIs in Apache Foryβ’ C#.
+This page covers typed serialization APIs in Apache Foryβ’ C#.
## Object Graph Serialization
@@ -88,9 +88,9 @@ MyType first = fory.Deserialize<MyType>(ref sequence);
MyType second = fory.Deserialize<MyType>(ref sequence);
```
-## Dynamic Object API
+## Dynamic Payloads via Generic Object API
-Use object APIs when the compile-time type is unknown or heterogeneous.
+When the compile-time type is unknown or heterogeneous, use the generic API
with `object?`.
```csharp
Dictionary<object, object?> value = new()
@@ -100,8 +100,8 @@ Dictionary<object, object?> value = new()
[true] = null,
};
-byte[] payload = fory.SerializeObject(value);
-object? decoded = fory.DeserializeObject(payload);
+byte[] payload = fory.Serialize<object?>(value);
+object? decoded = fory.Deserialize<object?>(payload);
```
## Buffer Writer API
@@ -115,7 +115,7 @@ ArrayBufferWriter<byte> writer = new();
fory.Serialize(writer, value);
ArrayBufferWriter<byte> dynamicWriter = new();
-fory.SerializeObject(dynamicWriter, value);
+fory.Serialize<object?>(dynamicWriter, value);
```
## Notes
diff --git a/docs/guide/csharp/index.md b/docs/guide/csharp/index.md
index c12c5a32ea..b18e414e21 100644
--- a/docs/guide/csharp/index.md
+++ b/docs/guide/csharp/index.md
@@ -19,7 +19,7 @@ license: |
limitations under the License.
---
-Apache Foryβ’ C# is a high-performance, cross-language serialization runtime
for .NET. It provides object graph serialization, schema evolution, dynamic
object support, and a thread-safe wrapper for concurrent workloads.
+Apache Foryβ’ C# is a high-performance, cross-language serialization runtime
for .NET. It provides object graph serialization, schema evolution, generic
object payload support, and a thread-safe wrapper for concurrent workloads.
## Why Fory C#?
@@ -67,7 +67,7 @@ User decoded = fory.Deserialize<User>(payload);
## Core API Surface
- `Serialize<T>(in T value)` / `Deserialize<T>(...)`
-- `SerializeObject(object? value)` / `DeserializeObject(...)` for dynamic
payloads
+- `Serialize<object?>(...)` / `Deserialize<object?>(...)` for dynamic payloads
- `Register<T>(uint typeId)` and namespace/name registration APIs
- `Register<T, TSerializer>(...)` for custom serializers
diff --git a/docs/guide/csharp/supported-types.md
b/docs/guide/csharp/supported-types.md
index 8a89a3fab9..0b63977887 100644
--- a/docs/guide/csharp/supported-types.md
+++ b/docs/guide/csharp/supported-types.md
@@ -79,7 +79,7 @@ This page summarizes built-in and generated type support in
Apache Foryβ’ C#.
## Dynamic Types
-Dynamic object APIs (`SerializeObject` / `DeserializeObject`) support:
+Dynamic object payloads via `Serialize<object?>` / `Deserialize<object?>`
support:
- Primitive/object values
- Dynamic lists/sets/maps
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]