GenerateSerializerContextAttribute<T>
class
Namespace: Orleans
Generates closed serializer and copier registrations for a root type and its serialization dependencies.
public sealed class GenerateSerializerContextAttribute<T> : AttributeRemarks
Apply this attribute to a partial class derived from
Orleans.Serialization.SerializerContext. Each root must be a closed type supported by the context generator. Register the generated context using AddSerializerContext to enable explicit type lookup. Generic attributes require C# 11 or later. 