C# Class NSoft.NFramework.Reflections.TypeConvertableDynamicAccessor

Inheritance: DynamicAccessor
Show file Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
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

생성자

Method Details

SetFieldValue() public method

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

SetPropertyValue() public method

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

TypeConvertableDynamicAccessor() public method

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

TypeConvertableDynamicAccessor() public method

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

TypeConvertableDynamicAccessor() public method

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