GenerateSerializerAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |