src/Orleans.Serialization.Abstractions/README.md
Orleans Serialization Abstractions package provides the core interfaces and attributes needed for Orleans serialization. This package contains the definitions used for serialization but not the serialization implementation itself.
To use this package, install it via NuGet:
dotnet add package Microsoft.Orleans.Serialization.Abstractions
This package is automatically included when you reference the Orleans Serialization package or Orleans SDK.
using Orleans.Serialization;
// Define a serializable class
[GenerateSerializer]
public class MyData
{
[Id(0)]
public string Name { get; set; }
[Id(1)]
public int Age { get; set; }
[Id(2)]
public List<string> Tags { get; set; }
}
For more comprehensive documentation, please refer to: