GenerateSerializerAttribute.IncludePrimaryConstructorParameters プロパティ

定義

プライマリ コンストラクター パラメーターを Serializable フィールドとして自動的に含めるかどうかを取得または設定します。 型の場合、既定値は にtruerecord設定falseされます。それ以外の場合は 。

public bool IncludePrimaryConstructorParameters { get; init; }
member this.IncludePrimaryConstructorParameters : bool with get, set
Public Property IncludePrimaryConstructorParameters As Boolean

プロパティ値

適用対象