共用方式為


GenerateSerializerAttribute.IncludePrimaryConstructorParameters 屬性

定義

取得或設定主要建構函式參數是否應該自動包含為可串行化欄位。 預設為 truerecord 類型, false 否則為 。

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

屬性值

適用於