Dreamine.MVVM.Attributes 1.0.7
Dreamine.MVVM.Attributes 프로젝트의 API와 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.MVVM.Attributes.DreamineModelPropertyAttribute 클래스 참조sealed

ViewModel 필드를 Model 프로퍼티에 위임되는 프로퍼티로 생성하도록 지정하는 특성입니다. 더 자세히 ...

Dreamine.MVVM.Attributes.DreamineModelPropertyAttribute에 대한 상속 다이어그램 :
Dreamine.MVVM.Attributes.DreamineModelPropertyAttribute에 대한 협력 다이어그램:

Public 멤버 함수

 DreamineModelPropertyAttribute ()
 Model 프로퍼티 이름을 명시하지 않고 DreamineModelPropertyAttribute 클래스의 새 인스턴스를 초기화합니다.
 DreamineModelPropertyAttribute (string modelPropertyName)
 지정한 Model 프로퍼티 이름으로 DreamineModelPropertyAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

string? ModelPropertyName [get]
 연결할 Model 프로퍼티 이름을 가져옵니다.

상세한 설명

ViewModel 필드를 Model 프로퍼티에 위임되는 프로퍼티로 생성하도록 지정하는 특성입니다.

이 특성이 필드에 적용되면 소스 생성기는 해당 필드를 기반으로 Model의 멤버에 접근하는 프로퍼티를 생성할 수 있습니다.

ModelPropertyName을 지정하지 않으면 필드명을 기준으로 기본 명명 규칙이 적용됩니다.

DreamineModelPropertyAttribute.cs 파일의 30 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ DreamineModelPropertyAttribute() [1/2]

Dreamine.MVVM.Attributes.DreamineModelPropertyAttribute.DreamineModelPropertyAttribute ( )
inline

Model 프로퍼티 이름을 명시하지 않고 DreamineModelPropertyAttribute 클래스의 새 인스턴스를 초기화합니다.

DreamineModelPropertyAttribute.cs 파일의 59 번째 라인에서 정의되었습니다.

60 {
61 }

◆ DreamineModelPropertyAttribute() [2/2]

Dreamine.MVVM.Attributes.DreamineModelPropertyAttribute.DreamineModelPropertyAttribute ( string modelPropertyName)
inline

지정한 Model 프로퍼티 이름으로 DreamineModelPropertyAttribute 클래스의 새 인스턴스를 초기화합니다.

매개변수
modelPropertyName연결할 Model 프로퍼티 이름입니다.
예외
ArgumentNullExceptionmodelPropertyName 가 null인 경우 발생합니다.

DreamineModelPropertyAttribute.cs 파일의 88 번째 라인에서 정의되었습니다.

89 {
90 ModelPropertyName = modelPropertyName ?? throw new ArgumentNullException(nameof(modelPropertyName));
91 }

다음을 참조함 : ModelPropertyName.

속성 문서화

◆ ModelPropertyName

string? Dreamine.MVVM.Attributes.DreamineModelPropertyAttribute.ModelPropertyName
get

연결할 Model 프로퍼티 이름을 가져옵니다.

값을 지정하지 않으면 필드명을 기반으로 자동 결정됩니다.

DreamineModelPropertyAttribute.cs 파일의 48 번째 라인에서 정의되었습니다.

48{ get; }

다음에 의해서 참조됨 : DreamineModelPropertyAttribute().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: