Skip to content

GenerateSerializerAttribute

class

Namespace: Orleans

When applied to a type, specifies that the type is intended to be serialized and that serialization code should be generated for the type.
public sealed class GenerateSerializerAttribute : Attribute

Constructors

Properties

  • GenerateFieldIds Get or sets when Orleans should auto-assign field ids. The default behavior is to not auto-assign field ids.
  • IncludePrimaryConstructorParameters Get or sets if primary constructor parameters should automatically be included as Serializable fields. Defaults to true for record types, false otherwise.