다음을 통해 공유


GenerateSerializerAttribute.IncludePrimaryConstructorParameters 속성

정의

기본 생성자 매개 변수를 직렬화 가능 필드로 자동으로 포함해야 하는지 여부를 가져오거나 설정합니다. 기본값은 true 형식에 대해 record 이고, false 그렇지 않으면 입니다.

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

속성 값

적용 대상