Lue englanniksi Muokkaa

Jaa


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.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Struct)]
public sealed class GenerateSerializerAttribute : Attribute
Inheritance
GenerateSerializerAttribute
Attributes

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.

Applies to

Tuote Versiot
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

See also