Skip to content

GenerateSerializerAttribute Properties

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

GenerateFieldIds

getinit
View source
public GenerateFieldIds GenerateFieldIds
Get or sets when Orleans should auto-assign field ids. The default behavior is to not auto-assign field ids.

IncludePrimaryConstructorParameters

getinit
View source
public bool IncludePrimaryConstructorParameters
Get or sets if primary constructor parameters should automatically be included as Serializable fields. Defaults to true for record types, false otherwise.