Dreamine.MVVM.Attributes 1.0.7
Dreamine.MVVM.Attributes 프로젝트의 API와 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
DreamineModelPropertyAttribute.cs
이 파일의 문서화 페이지로 가기
1using System;
2
4{
29 [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
30 public sealed class DreamineModelPropertyAttribute : Attribute
31 {
48 public string? ModelPropertyName { get; }
49
62
88 public DreamineModelPropertyAttribute(string modelPropertyName)
89 {
90 ModelPropertyName = modelPropertyName ?? throw new ArgumentNullException(nameof(modelPropertyName));
91 }
92 }
93}
string? ModelPropertyName
연결할 Model 프로퍼티 이름을 가져옵니다.
DreamineModelPropertyAttribute()
Model 프로퍼티 이름을 명시하지 않고 DreamineModelPropertyAttribute 클래스의 새 인스턴스를 초기화합니다.
DreamineModelPropertyAttribute(string modelPropertyName)
지정한 Model 프로퍼티 이름으로 DreamineModelPropertyAttribute 클래스의 새 인스턴스를 초기화합니다.