C# 클래스 Remotion.Development.UnitTesting.PrivateInvoke

Provides utility functions for accessing non-public types and members.
파일 보기 프로젝트 열기: re-motion/Relinq-SqlBackend 1 사용 예제들

공개 메소드들

메소드 설명
CreateInstanceNonPublicCtor ( Assembly assembly, string typeName ) : object
CreateInstanceNonPublicCtor ( Type type ) : object
CreateInstanceNonPublicCtor ( string assemblyString, string typeName ) : object
CreateInstancePublicCtor ( Assembly assembly, string typeName ) : object
CreateInstancePublicCtor ( Type type ) : object
CreateInstancePublicCtor ( string assemblyString, string typeName ) : object
GetNonPublicField ( object target, Type declaringType, string fieldName ) : object
GetNonPublicField ( object target, string fieldName ) : object
GetNonPublicProperty ( object target, Type declaringType, string propertyName ) : object
GetNonPublicProperty ( object target, string propertyName ) : object
GetNonPublicStaticField ( Type type, string fieldName ) : object
GetNonPublicStaticProperty ( Type type, string propertyName ) : object
GetPublicField ( object target, string fieldName ) : object
GetPublicProperty ( object target, string propertyName ) : object
GetPublicStaticField ( Type type, string fieldName ) : object
GetPublicStaticProperty ( Type type, string propertyName ) : object
InvokeNonPublicMethod ( object target, Type definingType, string methodName ) : object
InvokeNonPublicMethod ( object target, string methodName ) : object
InvokeNonPublicStaticMethod ( Type type, string methodName ) : object
InvokePublicMethod ( object target, string methodName ) : object
InvokePublicStaticMethod ( Type type, string methodName ) : object
SetNonPublicField ( object target, string fieldName, object value ) : void
SetNonPublicProperty ( object target, Type declaringType, string propertyName, object value ) : void
SetNonPublicProperty ( object target, string propertyName, object value ) : void
SetNonPublicStaticField ( Type type, string fieldName, object value ) : void
SetNonPublicStaticProperty ( Type type, string propertyName, object value ) : void
SetPublicField ( object target, string fieldName, object value ) : void
SetPublicProperty ( object target, string propertyName, object value ) : void
SetPublicStaticField ( Type type, string fieldName, object value ) : void
SetPublicStaticProperty ( Type type, string propertyName, object value ) : void

비공개 메소드들

메소드 설명
CreateInstanceInternal ( Type type, bool isPublic, object arguments ) : object
GetConstructor ( Type type, BindingFlags bindingFlags, object arguments ) : ConstructorInfo
GetFieldInternal ( object instance, Type type, BindingFlags bindingFlags, string fieldName ) : object
GetFieldRecursive ( Type type, BindingFlags bindingFlags, string fieldName ) : FieldInfo
GetMethod ( Type type, string methodName, BindingFlags bindingFlags, object arguments ) : MethodInfo
GetMethodBaseInternal ( Type type, string methodName, MethodBase methods, object arguments ) : MethodBase
GetPropertyInternal ( object instance, Type type, BindingFlags bindingFlags, string propertyName ) : object
GetPropertyRecursive ( Type type, BindingFlags bindingFlags, string propertyName ) : PropertyInfo
InvokeMethodInternal ( object instance, Type type, BindingFlags bindingFlags, string methodName, object arguments ) : object
SetFieldInternal ( object instance, Type type, BindingFlags bindingFlags, string fieldName, object value ) : void
SetPropertyInternal ( object instance, Type type, BindingFlags bindingFlags, string propertyName, object value ) : void

메소드 상세

CreateInstanceNonPublicCtor() 공개 정적인 메소드

public static CreateInstanceNonPublicCtor ( Assembly assembly, string typeName ) : object
assembly System.Reflection.Assembly
typeName string
리턴 object

CreateInstanceNonPublicCtor() 공개 정적인 메소드

public static CreateInstanceNonPublicCtor ( Type type ) : object
type System.Type
리턴 object

CreateInstanceNonPublicCtor() 공개 정적인 메소드

public static CreateInstanceNonPublicCtor ( string assemblyString, string typeName ) : object
assemblyString string
typeName string
리턴 object

CreateInstancePublicCtor() 공개 정적인 메소드

public static CreateInstancePublicCtor ( Assembly assembly, string typeName ) : object
assembly System.Reflection.Assembly
typeName string
리턴 object

CreateInstancePublicCtor() 공개 정적인 메소드

public static CreateInstancePublicCtor ( Type type ) : object
type System.Type
리턴 object

CreateInstancePublicCtor() 공개 정적인 메소드

public static CreateInstancePublicCtor ( string assemblyString, string typeName ) : object
assemblyString string
typeName string
리턴 object

GetNonPublicField() 공개 정적인 메소드

public static GetNonPublicField ( object target, Type declaringType, string fieldName ) : object
target object
declaringType System.Type
fieldName string
리턴 object

GetNonPublicField() 공개 정적인 메소드

public static GetNonPublicField ( object target, string fieldName ) : object
target object
fieldName string
리턴 object

GetNonPublicProperty() 공개 정적인 메소드

public static GetNonPublicProperty ( object target, Type declaringType, string propertyName ) : object
target object
declaringType System.Type
propertyName string
리턴 object

GetNonPublicProperty() 공개 정적인 메소드

public static GetNonPublicProperty ( object target, string propertyName ) : object
target object
propertyName string
리턴 object

GetNonPublicStaticField() 공개 정적인 메소드

public static GetNonPublicStaticField ( Type type, string fieldName ) : object
type System.Type
fieldName string
리턴 object

GetNonPublicStaticProperty() 공개 정적인 메소드

public static GetNonPublicStaticProperty ( Type type, string propertyName ) : object
type System.Type
propertyName string
리턴 object

GetPublicField() 공개 정적인 메소드

public static GetPublicField ( object target, string fieldName ) : object
target object
fieldName string
리턴 object

GetPublicProperty() 공개 정적인 메소드

public static GetPublicProperty ( object target, string propertyName ) : object
target object
propertyName string
리턴 object

GetPublicStaticField() 공개 정적인 메소드

public static GetPublicStaticField ( Type type, string fieldName ) : object
type System.Type
fieldName string
리턴 object

GetPublicStaticProperty() 공개 정적인 메소드

public static GetPublicStaticProperty ( Type type, string propertyName ) : object
type System.Type
propertyName string
리턴 object

InvokeNonPublicMethod() 공개 정적인 메소드

public static InvokeNonPublicMethod ( object target, Type definingType, string methodName ) : object
target object
definingType System.Type
methodName string
리턴 object

InvokeNonPublicMethod() 공개 정적인 메소드

public static InvokeNonPublicMethod ( object target, string methodName ) : object
target object
methodName string
리턴 object

InvokeNonPublicStaticMethod() 공개 정적인 메소드

public static InvokeNonPublicStaticMethod ( Type type, string methodName ) : object
type System.Type
methodName string
리턴 object

InvokePublicMethod() 공개 정적인 메소드

public static InvokePublicMethod ( object target, string methodName ) : object
target object
methodName string
리턴 object

InvokePublicStaticMethod() 공개 정적인 메소드

public static InvokePublicStaticMethod ( Type type, string methodName ) : object
type System.Type
methodName string
리턴 object

SetNonPublicField() 공개 정적인 메소드

public static SetNonPublicField ( object target, string fieldName, object value ) : void
target object
fieldName string
value object
리턴 void

SetNonPublicProperty() 공개 정적인 메소드

public static SetNonPublicProperty ( object target, Type declaringType, string propertyName, object value ) : void
target object
declaringType System.Type
propertyName string
value object
리턴 void

SetNonPublicProperty() 공개 정적인 메소드

public static SetNonPublicProperty ( object target, string propertyName, object value ) : void
target object
propertyName string
value object
리턴 void

SetNonPublicStaticField() 공개 정적인 메소드

public static SetNonPublicStaticField ( Type type, string fieldName, object value ) : void
type System.Type
fieldName string
value object
리턴 void

SetNonPublicStaticProperty() 공개 정적인 메소드

public static SetNonPublicStaticProperty ( Type type, string propertyName, object value ) : void
type System.Type
propertyName string
value object
리턴 void

SetPublicField() 공개 정적인 메소드

public static SetPublicField ( object target, string fieldName, object value ) : void
target object
fieldName string
value object
리턴 void

SetPublicProperty() 공개 정적인 메소드

public static SetPublicProperty ( object target, string propertyName, object value ) : void
target object
propertyName string
value object
리턴 void

SetPublicStaticField() 공개 정적인 메소드

public static SetPublicStaticField ( Type type, string fieldName, object value ) : void
type System.Type
fieldName string
value object
리턴 void

SetPublicStaticProperty() 공개 정적인 메소드

public static SetPublicStaticProperty ( Type type, string propertyName, object value ) : void
type System.Type
propertyName string
value object
리턴 void