Class ReflectionHelper
Inheritance
System.Object
ReflectionHelper
Assembly: Steeltoe.Common.Expression.dll
Syntax
public static class ReflectionHelper : object
Methods
|
Edit this page
View Source
CompareArguments(List<Type>, List<Type>, ITypeConverter)
Declaration
public static ArgumentsMatchInfo CompareArguments(List<Type> expectedArgTypes, List<Type> suppliedArgTypes, ITypeConverter typeConverter)
Parameters
Type |
Name |
Description |
List<Type> |
expectedArgTypes |
|
List<Type> |
suppliedArgTypes |
|
ITypeConverter |
typeConverter |
|
Returns
|
Edit this page
View Source
CompareArgumentsVarargs(List<Type>, List<Type>, ITypeConverter)
Declaration
public static ArgumentsMatchInfo CompareArgumentsVarargs(List<Type> expectedArgTypes, List<Type> suppliedArgTypes, ITypeConverter typeConverter)
Parameters
Type |
Name |
Description |
List<Type> |
expectedArgTypes |
|
List<Type> |
suppliedArgTypes |
|
ITypeConverter |
typeConverter |
|
Returns
|
Edit this page
View Source
ConvertAllArguments(ITypeConverter, Object[], MethodInfo)
Declaration
public static bool ConvertAllArguments(ITypeConverter converter, object[] arguments, MethodInfo method)
Parameters
Type |
Name |
Description |
ITypeConverter |
converter |
|
System.Object[] |
arguments |
|
MethodInfo |
method |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
ConvertArguments(ITypeConverter, Object[], MethodBase, Nullable<Int32>)
Declaration
public static bool ConvertArguments(ITypeConverter converter, object[] arguments, MethodBase executable, int? varargsPosition)
Parameters
Type |
Name |
Description |
ITypeConverter |
converter |
|
System.Object[] |
arguments |
|
MethodBase |
executable |
|
System.Nullable<System.Int32> |
varargsPosition |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
GetAccessibleConstructor(Type, Type[])
Declaration
public static ConstructorInfo GetAccessibleConstructor(Type clazz, params Type[] paramTypes)
Parameters
Type |
Name |
Description |
Type |
clazz |
|
Type[] |
paramTypes |
|
Returns
Type |
Description |
ConstructorInfo |
|
|
Edit this page
View Source
GetElementTypeDescriptor(Type)
Declaration
public static Type GetElementTypeDescriptor(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Edit this page
View Source
GetElementTypeDescriptor(Type, Object)
Declaration
public static Type GetElementTypeDescriptor(Type type, object obj)
Parameters
Type |
Name |
Description |
Type |
type |
|
System.Object |
obj |
|
Returns
|
Edit this page
View Source
GetMapKeyTypeDescriptor(Type)
Declaration
public static Type GetMapKeyTypeDescriptor(Type targetDescriptor)
Parameters
Type |
Name |
Description |
Type |
targetDescriptor |
|
Returns
|
Edit this page
View Source
GetMapKeyTypeDescriptor(Type, Object)
Declaration
public static Type GetMapKeyTypeDescriptor(Type targetDescriptor, object mapKey)
Parameters
Type |
Name |
Description |
Type |
targetDescriptor |
|
System.Object |
mapKey |
|
Returns
|
Edit this page
View Source
GetMapValueTypeDescriptor(Type)
Declaration
public static Type GetMapValueTypeDescriptor(Type targetDescriptor)
Parameters
Type |
Name |
Description |
Type |
targetDescriptor |
|
Returns
|
Edit this page
View Source
GetMapValueTypeDescriptor(Type, Object)
Declaration
public static Type GetMapValueTypeDescriptor(Type targetDescriptor, object mapValue)
Parameters
Type |
Name |
Description |
Type |
targetDescriptor |
|
System.Object |
mapValue |
|
Returns
|
Edit this page
View Source
GetTypeDifferenceWeight(List<Type>, List<Type>)
Declaration
public static int GetTypeDifferenceWeight(List<Type> paramTypes, List<Type> argTypes)
Parameters
Type |
Name |
Description |
List<Type> |
paramTypes |
|
List<Type> |
argTypes |
|
Returns
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
IsPublic(Type)
Declaration
public static bool IsPublic(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
SetupArgumentsForVarargsInvocation(Type[], Object[])
Declaration
public static object[] SetupArgumentsForVarargsInvocation(Type[] requiredParameterTypes, params object[] args)
Parameters
Type |
Name |
Description |
Type[] |
requiredParameterTypes |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Object[] |
|