IncludePrimaryConstructorParameters
getinit
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. 