GenerateSerializerAttribute.IncludePrimaryConstructorParameters Property
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.
Get or sets if primary constructor parameters should automatically be included as Serializable fields.
Defaults to true
for record
types, false
otherwise.
public bool IncludePrimaryConstructorParameters { get; init; }
member this.IncludePrimaryConstructorParameters : bool with get, set
Public Property IncludePrimaryConstructorParameters As Boolean