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

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

공개 메소드들

메소드 설명
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

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

메소드 상세

GetConstructorInvoker() 공개 정적인 메소드

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

GetConstructorInvoker() 공개 정적인 메소드

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

GetMemberName() 공개 정적인 메소드

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

GetMethodInvoker() 공개 정적인 메소드

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

GetMethodInvoker() 공개 정적인 메소드

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

GetOrAddFieldGetter() 공개 정적인 메소드

특정 수형의 필드 값를 조회하기 위한 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
리턴 MemberGetter

GetOrAddFieldSetter() 공개 정적인 메소드

특정 수형의 필드 값을 설정하기 위한 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
리턴 MemberSetter

GetOrAddPropertyGetter() 공개 정적인 메소드

특정 수형의 속성 값을 가져오기 위한 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
리턴 MemberGetter

GetOrAddPropertySetter() 공개 정적인 메소드

특정 수형의 속성 값을 설정하기 위한 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
리턴 MemberSetter

InvokeMethod() 공개 정적인 메소드

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

InvokeMethodAsParallel() 공개 정적인 메소드

특정 수형의 특정 메소드를 호출할 수 있는 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
리턴 ParallelLoopResult

InvokeMethodAsParallel() 공개 정적인 메소드

특정 수형의 특정 메소드를 호출할 수 있는 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
리턴 ParallelLoopResult

InvokeMethodAsync() 공개 정적인 메소드

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

RetrievePropertyMap() 공개 정적인 메소드

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

RetriveFieldMap() 공개 정적인 메소드

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