Skip to content

GenerateSerializerAttribute.IncludePrimaryConstructorParameters

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.