Edit

Share via


GenerateSerializerAttribute Class

Definition

When applied to a type, specifies that the type is intended to be serialized and that serialization code should be generated for the type.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Struct)]
public sealed class GenerateSerializerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Struct)>]
type GenerateSerializerAttribute = class
    inherit Attribute
Public NotInheritable Class GenerateSerializerAttribute
Inherits Attribute
Inheritance
GenerateSerializerAttribute
Attributes

Constructors

GenerateSerializerAttribute()

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.

Applies to

See also