C# Class NSoft.NFramework.Reflections.DynamicAccessor

Inheritance: IDynamicAccessor
Show file Open project: debop/NFramework

Protected Properties

Property Type Description
FieldGetterMap MemberGetter>.ConcurrentDictionary
FieldSetterMap MemberSetter>.ConcurrentDictionary
PropertyGetterMap MemberGetter>.ConcurrentDictionary
PropertySetterMap MemberSetter>.ConcurrentDictionary

Public Methods

Method Description
DynamicAccessor ( Type targetType ) : System
DynamicAccessor ( Type targetType, bool suppressError = false, bool ignoreCase = false ) : System
GetFieldNames ( ) : IList

Get field names

GetFieldType ( string fieldName ) : Type

지정된 속성의 형식을 반환한다.

GetFieldValue ( object target, string fieldName ) : object

지정한 인스턴스의 필드 값을 가져온다.

GetPropertyNames ( ) : IList

Get property names

GetPropertyType ( string propertyName ) : Type

지정된 속성의 형식을 반환한다.

GetPropertyValue ( object target, string propertyName ) : object

지정한 인스턴스의 속성 값을 가져온다.

SetFieldValue ( object target, string fieldName, object fieldValue ) : void

지정한 인스턴스의 필드 값을 설정한다.

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

지정한 인스턴스의 속성 값을 설정한다.

TryGetFieldValue ( object target, string fieldName, object &fieldValue ) : bool

인스턴스의 지정한 필드명의 값을 가져옵니다. 해당 필드가 없다면, false를 반환합니다.

TryGetPropertyValue ( object target, string propertyName, object &propertyValue ) : bool

인스턴스의 지정한 속성 명의 값을 가져옵니다. 해당 속성이 없다면, false를 반환합니다.

this ( object target, string propertyName ) : object

Indexer

Protected Methods

Method Description
GetFieldName ( string fieldName ) : string
GetPropertyName ( string propertyName ) : string

Method Details

DynamicAccessor() public method

public DynamicAccessor ( Type targetType ) : System
targetType System.Type
return System

DynamicAccessor() public method

public DynamicAccessor ( Type targetType, bool suppressError = false, bool ignoreCase = false ) : System
targetType System.Type
suppressError bool
ignoreCase bool
return System

GetFieldName() protected method

protected GetFieldName ( string fieldName ) : string
fieldName string
return string

GetFieldNames() public method

Get field names
public GetFieldNames ( ) : IList
return IList

GetFieldType() public method

지정된 속성의 형식을 반환한다.
필드가 존재하지 않을 때
public GetFieldType ( string fieldName ) : Type
fieldName string Field name
return System.Type

GetFieldValue() public method

지정한 인스턴스의 필드 값을 가져온다.
public GetFieldValue ( object target, string fieldName ) : object
target object 인스턴스
fieldName string 필드명
return object

GetPropertyName() protected method

protected GetPropertyName ( string propertyName ) : string
propertyName string
return string

GetPropertyNames() public method

Get property names
public GetPropertyNames ( ) : IList
return IList

GetPropertyType() public method

지정된 속성의 형식을 반환한다.
속성이 존재하지 않을 때
public GetPropertyType ( string propertyName ) : Type
propertyName string Property name
return System.Type

GetPropertyValue() public method

지정한 인스턴스의 속성 값을 가져온다.
public GetPropertyValue ( object target, string propertyName ) : object
target object 인스턴스
propertyName string 속성 명
return object

SetFieldValue() public method

지정한 인스턴스의 필드 값을 설정한다.
public SetFieldValue ( object target, string fieldName, object fieldValue ) : void
target object
fieldName string
fieldValue object
return void

SetPropertyValue() public method

지정한 인스턴스의 속성 값을 설정한다.
public SetPropertyValue ( object target, string propertyName, object propertyValue ) : void
target object
propertyName string
propertyValue object
return void

TryGetFieldValue() public method

인스턴스의 지정한 필드명의 값을 가져옵니다. 해당 필드가 없다면, false를 반환합니다.
public TryGetFieldValue ( object target, string fieldName, object &fieldValue ) : bool
target object 인스턴스
fieldName string 필드명
fieldValue object 필드 값
return bool

TryGetPropertyValue() public method

인스턴스의 지정한 속성 명의 값을 가져옵니다. 해당 속성이 없다면, false를 반환합니다.
public TryGetPropertyValue ( object target, string propertyName, object &propertyValue ) : bool
target object 인스턴스
propertyName string 속성 명
propertyValue object 속성 값
return bool

this() public method

Indexer
public this ( object target, string propertyName ) : object
target object
propertyName string
return object

Property Details

FieldGetterMap protected property

protected ConcurrentDictionary FieldGetterMap
return MemberGetter>.ConcurrentDictionary

FieldSetterMap protected property

protected ConcurrentDictionary FieldSetterMap
return MemberSetter>.ConcurrentDictionary

PropertyGetterMap protected property

protected ConcurrentDictionary PropertyGetterMap
return MemberGetter>.ConcurrentDictionary

PropertySetterMap protected property

protected ConcurrentDictionary PropertySetterMap
return MemberSetter>.ConcurrentDictionary