C# Class NSoft.NFramework.Reflections.FasterflectTool

显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
GetConstructorInvoker ( this targetType ) : Fasterflect.ConstructorInvoker

특정 형식의 기본 생성자에 델리게이트를 생성해줍니다.

GetConstructorInvoker ( this targetType, BindingFlags bindingFlags ) : Fasterflect.ConstructorInvoker

특정 형식의 기본 생성자에 델리게이트를 생성해줍니다.

GetMemberName ( this name, MemberNamingRule namingRule = MemberNamingRule.CamelCaseUndercore ) : string

Class 멤버명을 명명규칙에 따라 변경하게 됩니다.

GetMethodInvoker ( this instanceType, string methodName ) : MethodInvoker

특정 수형의 특정 메소드를 호출할 수 있는 델리게이트를 제공합니다.

GetMethodInvoker ( this instanceType, string methodName, BindingFlags flags ) : MethodInvoker

특정 수형의 특정 메소드를 호출할 수 있는 델리게이트를 제공합니다.

GetOrAddFieldGetter ( MemberGetter>.this fieldGetters, Type targetType, string fieldName, Action exceptionAction = null ) : MemberGetter

특정 수형의 필드 값를 조회하기 위한 MemberGetter를 가져옵니다. 없으면 새로 추가합니다.

GetOrAddFieldSetter ( MemberSetter>.this fieldSetters, Type targetType, string fieldName, Action exceptionAction = null ) : MemberSetter

특정 수형의 필드 값을 설정하기 위한 MemberSetter를 가져옵니다. 없으면 새로 추가합니다.

GetOrAddPropertyGetter ( MemberGetter>.this propertyGetters, Type targetType, string propertyName, Action exceptionAction = null ) : MemberGetter

특정 수형의 속성 값을 가져오기 위한 MemberGetter를 가져옵니다. 없으면 새로 추가합니다.

GetOrAddPropertySetter ( MemberSetter>.this propertySetters, Type targetType, string propertyName, Action exceptionAction = null ) : MemberSetter

특정 수형의 속성 값을 설정하기 위한 MemberSetter를 가져옵니다. 없으면 새로추가합니다.

InvokeMethod ( this instanceType, Action action, string methodName ) : void

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.

InvokeMethodAsParallel ( this instanceType, int fromInclusive, int toExclusive, MethodInvoker>.Action action, string methodName ) : ParallelLoopResult

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.

InvokeMethodAsParallel ( this instanceType, int fromInclusive, int toExclusive, ParallelOptions parallelOptions, MethodInvoker>.Action action, string methodName ) : ParallelLoopResult

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.

InvokeMethodAsync ( this instanceType, Action action, string methodName ) : Task

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.

RetrievePropertyMap ( this targetType ) : PropertyInfo>.IDictionary

특정 수형의 속성 정보를 조회합니다.

RetriveFieldMap ( this targetType ) : FieldInfo>.IDictionary

특정 수형의 필드 정보를 조회합니다.

Method Details

GetConstructorInvoker() public static method

특정 형식의 기본 생성자에 델리게이트를 생성해줍니다.
public static GetConstructorInvoker ( this targetType ) : Fasterflect.ConstructorInvoker
targetType this 생성하고자 하는 수형
return Fasterflect.ConstructorInvoker

GetConstructorInvoker() public static method

특정 형식의 기본 생성자에 델리게이트를 생성해줍니다.
public static GetConstructorInvoker ( this targetType, BindingFlags bindingFlags ) : Fasterflect.ConstructorInvoker
targetType this 생성하고자 하는 수형
bindingFlags BindingFlags BindingFlags
return Fasterflect.ConstructorInvoker

GetMemberName() public static method

Class 멤버명을 명명규칙에 따라 변경하게 됩니다.
public static GetMemberName ( this name, MemberNamingRule namingRule = MemberNamingRule.CamelCaseUndercore ) : string
name this
namingRule MemberNamingRule
return string

GetMethodInvoker() public static method

특정 수형의 특정 메소드를 호출할 수 있는 델리게이트를 제공합니다.
public static GetMethodInvoker ( this instanceType, string methodName ) : MethodInvoker
instanceType this
methodName string
return MethodInvoker

GetMethodInvoker() public static method

특정 수형의 특정 메소드를 호출할 수 있는 델리게이트를 제공합니다.
public static GetMethodInvoker ( this instanceType, string methodName, BindingFlags flags ) : MethodInvoker
instanceType this
methodName string
flags BindingFlags
return MethodInvoker

GetOrAddFieldGetter() public static method

특정 수형의 필드 값를 조회하기 위한 MemberGetter를 가져옵니다. 없으면 새로 추가합니다.
public static GetOrAddFieldGetter ( MemberGetter>.this fieldGetters, Type targetType, string fieldName, Action exceptionAction = null ) : MemberGetter
fieldGetters MemberGetter>.this 필드 값을 조회하는 MemberGetter들의 Dictionary
targetType System.Type 대상 형식
fieldName string 필드명
exceptionAction Action 예외 시 수행할 Action
return MemberGetter

GetOrAddFieldSetter() public static method

특정 수형의 필드 값을 설정하기 위한 MemberSetter를 가져옵니다. 없으면 새로 추가합니다.
public static GetOrAddFieldSetter ( MemberSetter>.this fieldSetters, Type targetType, string fieldName, Action exceptionAction = null ) : MemberSetter
fieldSetters MemberSetter>.this 필드 값을 조회하는 MemberGetter들의 Dictionary
targetType System.Type 대상 형식
fieldName string 필드명
exceptionAction Action 예외 시 수행할 Action
return MemberSetter

GetOrAddPropertyGetter() public static method

특정 수형의 속성 값을 가져오기 위한 MemberGetter를 가져옵니다. 없으면 새로 추가합니다.
public static GetOrAddPropertyGetter ( MemberGetter>.this propertyGetters, Type targetType, string propertyName, Action exceptionAction = null ) : MemberGetter
propertyGetters MemberGetter>.this
targetType System.Type 대상 객체
propertyName string 조회할 속성명
exceptionAction Action 예외 발생 시 처리할 Action
return MemberGetter

GetOrAddPropertySetter() public static method

특정 수형의 속성 값을 설정하기 위한 MemberSetter를 가져옵니다. 없으면 새로추가합니다.
public static GetOrAddPropertySetter ( MemberSetter>.this propertySetters, Type targetType, string propertyName, Action exceptionAction = null ) : MemberSetter
propertySetters MemberSetter>.this 속성 설정 Setter들의 Dictionary
targetType System.Type 대상 형식
propertyName string 속성 명
exceptionAction Action 예외 시 실행할 Action
return MemberSetter

InvokeMethod() public static method

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.
public static InvokeMethod ( this instanceType, Action action, string methodName ) : void
instanceType this
action Action
methodName string
return void

InvokeMethodAsParallel() public static method

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.
public static InvokeMethodAsParallel ( this instanceType, int fromInclusive, int toExclusive, MethodInvoker>.Action action, string methodName ) : ParallelLoopResult
instanceType this
fromInclusive int
toExclusive int
action MethodInvoker>.Action
methodName string
return ParallelLoopResult

InvokeMethodAsParallel() public static method

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.
public static InvokeMethodAsParallel ( this instanceType, int fromInclusive, int toExclusive, ParallelOptions parallelOptions, MethodInvoker>.Action action, string methodName ) : ParallelLoopResult
instanceType this
fromInclusive int
toExclusive int
parallelOptions ParallelOptions
action MethodInvoker>.Action
methodName string
return ParallelLoopResult

InvokeMethodAsync() public static method

특정 수형의 특정 메소드를 호출할 수 있는 MethodInvoker를 입력 받아 action을 수행합니다.
public static InvokeMethodAsync ( this instanceType, Action action, string methodName ) : Task
instanceType this
action Action
methodName string
return Task

RetrievePropertyMap() public static method

특정 수형의 속성 정보를 조회합니다.
public static RetrievePropertyMap ( this targetType ) : PropertyInfo>.IDictionary
targetType this
return PropertyInfo>.IDictionary

RetriveFieldMap() public static method

특정 수형의 필드 정보를 조회합니다.
public static RetriveFieldMap ( this targetType ) : FieldInfo>.IDictionary
targetType this
return FieldInfo>.IDictionary