C# 클래스 NSoft.NFramework.Reflections.TypeConvertableDynamicAccessor

상속: DynamicAccessor
파일 보기 프로젝트 열기: debop/NFramework 1 사용 예제들

공개 메소드들

메소드 설명
SetFieldValue ( object target, string fieldName, object fieldValue ) : void

지정된 인스턴스의 필드에 지정된 값을 필드 수형에 맞게 변환하여 설정합니다. 기존 DynamicAccessor는 수형이 정확히 일치하지 않으면 예외를 발생시킵니다.

SetPropertyValue ( object target, string propertyName, object propertyValue ) : void

지정된 인스턴스의 속성에 지정된 값을 속성의 수형에 맞게 변환하여 설정합니다. 기존 DynamicAccessor는 수형이 정확히 일치하지 않으면 예외를 발생시킵니다.

TypeConvertableDynamicAccessor ( Type type ) : System

생성자

TypeConvertableDynamicAccessor ( Type type, bool suppressError ) : System

생성자

TypeConvertableDynamicAccessor ( Type type, bool suppressError, bool ignoreCase ) : System

생성자

메소드 상세

SetFieldValue() 공개 메소드

지정된 인스턴스의 필드에 지정된 값을 필드 수형에 맞게 변환하여 설정합니다. 기존 DynamicAccessor는 수형이 정확히 일치하지 않으면 예외를 발생시킵니다.
public SetFieldValue ( object target, string fieldName, object fieldValue ) : void
target object 대상 객체
fieldName string 필드 변수 명
fieldValue object 설정할 필드 값
리턴 void

SetPropertyValue() 공개 메소드

지정된 인스턴스의 속성에 지정된 값을 속성의 수형에 맞게 변환하여 설정합니다. 기존 DynamicAccessor는 수형이 정확히 일치하지 않으면 예외를 발생시킵니다.
public SetPropertyValue ( object target, string propertyName, object propertyValue ) : void
target object 대상 객체
propertyName string 속성 명
propertyValue object 속성 값
리턴 void

TypeConvertableDynamicAccessor() 공개 메소드

생성자
public TypeConvertableDynamicAccessor ( Type type ) : System
type System.Type 대상 수형
리턴 System

TypeConvertableDynamicAccessor() 공개 메소드

생성자
public TypeConvertableDynamicAccessor ( Type type, bool suppressError ) : System
type System.Type 대상 수형
suppressError bool 객체 접근 수행시의 예외 발생을 시킬 것인가 여부. true이면 예외 발생을 하지 않는다.
리턴 System

TypeConvertableDynamicAccessor() 공개 메소드

생성자
public TypeConvertableDynamicAccessor ( Type type, bool suppressError, bool ignoreCase ) : System
type System.Type 대상 수형
suppressError bool 예외 발생을 억제할 것인가?
ignoreCase bool 속성명, 필드명의 대소문자를 구분할 것인가?
리턴 System