C# 클래스 System.Yaml.Serialization.ObjectMemberAccessor

object に代入されたクラスや構造体のメンバーに、リフレクションを 解して簡単にアクセスできるようにしたクラス アクセス方法をキャッシュするので、繰り返し使用する場合に高速化が 期待できる
파일 보기 프로젝트 열기: jbruening/YamlSerializer-Fork 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CollectionAdd object>.Action
CollectionClear Action
IsDictionary bool
IsReadOnly bool>.Func
KeyType Type
ValueType Type

공개 메소드들

메소드 설명
ContainsKey ( string name ) : bool
FindFor ( Type type ) : ObjectMemberAccessor

指定した型へのアクセス方法を表すインスタンスを返す キャッシュに存在すればそれを返す キャッシュに存在しなければ新しく作って返す 作った物はキャッシュされる

GetEnumerator ( ) : MemberInfo>.Enumerator.Dictionary

メンバ名と Accessor のペアを巡回する

this ( string name ) : MemberInfo
this ( object obj, string name ) : object

メンバへの読み書きを行うことができる

비공개 메소드들

메소드 설명
ObjectMemberAccessor ( Type type ) : System.Collections.Generic
RegisterMember ( Type type, Reflection m, Type mType, object>.Func get, object>.Action set ) : void

메소드 상세

ContainsKey() 공개 메소드

public ContainsKey ( string name ) : bool
name string
리턴 bool

FindFor() 공개 정적인 메소드

指定した型へのアクセス方法を表すインスタンスを返す キャッシュに存在すればそれを返す キャッシュに存在しなければ新しく作って返す 作った物はキャッシュされる
public static FindFor ( Type type ) : ObjectMemberAccessor
type Type クラスまたは構造体を表す型情報
리턴 ObjectMemberAccessor

GetEnumerator() 공개 메소드

メンバ名と Accessor のペアを巡回する
public GetEnumerator ( ) : MemberInfo>.Enumerator.Dictionary
리턴 MemberInfo>.Enumerator.Dictionary

this() 공개 메소드

public this ( string name ) : MemberInfo
name string
리턴 System.Reflection.MemberInfo

this() 공개 메소드

メンバへの読み書きを行うことができる
public this ( object obj, string name ) : object
obj object オブジェクト
name string メンバの名前
리턴 object

프로퍼티 상세

CollectionAdd 공개적으로 프로퍼티

public Action CollectionAdd
리턴 object>.Action

CollectionClear 공개적으로 프로퍼티

public Action CollectionClear
리턴 Action

IsDictionary 공개적으로 프로퍼티

public bool IsDictionary
리턴 bool

IsReadOnly 공개적으로 프로퍼티

public Func IsReadOnly
리턴 bool>.Func

KeyType 공개적으로 프로퍼티

public Type KeyType
리턴 Type

ValueType 공개적으로 프로퍼티

public Type ValueType
리턴 Type