Class ReflectionHelper
- Namespace
- Steeltoe.Common.Expression.Internal.Spring.Support
- Assembly
- Steeltoe.Common.Expression.dll
public static class ReflectionHelper
- Inheritance
-
ReflectionHelper
- Inherited Members
-
Methods
CompareArguments(List<Type>, List<Type>, ITypeConverter)
public static ArgumentsMatchInfo CompareArguments(List<Type> expectedArgTypes, List<Type> suppliedArgTypes, ITypeConverter typeConverter)
Parameters
expectedArgTypes
List<Type>
suppliedArgTypes
List<Type>
typeConverter
ITypeConverter
Returns
- ArgumentsMatchInfo
CompareArgumentsVarargs(List<Type>, List<Type>, ITypeConverter)
public static ArgumentsMatchInfo CompareArgumentsVarargs(List<Type> expectedArgTypes, List<Type> suppliedArgTypes, ITypeConverter typeConverter)
Parameters
expectedArgTypes
List<Type>
suppliedArgTypes
List<Type>
typeConverter
ITypeConverter
Returns
- ArgumentsMatchInfo
ConvertAllArguments(ITypeConverter, object[], MethodInfo)
public static bool ConvertAllArguments(ITypeConverter converter, object[] arguments, MethodInfo method)
Parameters
converter
ITypeConverter
arguments
object[]
method
MethodInfo
Returns
- bool
ConvertArguments(ITypeConverter, object[], MethodBase, int?)
public static bool ConvertArguments(ITypeConverter converter, object[] arguments, MethodBase executable, int? varargsPosition)
Parameters
converter
ITypeConverter
arguments
object[]
executable
MethodBase
varargsPosition
int?
Returns
- bool
GetAccessibleConstructor(Type, params Type[])
public static ConstructorInfo GetAccessibleConstructor(Type clazz, params Type[] paramTypes)
Parameters
clazz
Type
paramTypes
Type[]
Returns
- ConstructorInfo
GetElementTypeDescriptor(Type)
public static Type GetElementTypeDescriptor(Type type)
Parameters
type
Type
Returns
- Type
GetElementTypeDescriptor(Type, object)
public static Type GetElementTypeDescriptor(Type type, object obj)
Parameters
type
Type
obj
object
Returns
- Type
GetMapKeyTypeDescriptor(Type)
public static Type GetMapKeyTypeDescriptor(Type targetDescriptor)
Parameters
targetDescriptor
Type
Returns
- Type
GetMapKeyTypeDescriptor(Type, object)
public static Type GetMapKeyTypeDescriptor(Type targetDescriptor, object mapKey)
Parameters
targetDescriptor
Type
mapKey
object
Returns
- Type
GetMapValueTypeDescriptor(Type)
public static Type GetMapValueTypeDescriptor(Type targetDescriptor)
Parameters
targetDescriptor
Type
Returns
- Type
GetMapValueTypeDescriptor(Type, object)
public static Type GetMapValueTypeDescriptor(Type targetDescriptor, object mapValue)
Parameters
targetDescriptor
Type
mapValue
object
Returns
- Type
GetTypeDifferenceWeight(List<Type>, List<Type>)
public static int GetTypeDifferenceWeight(List<Type> paramTypes, List<Type> argTypes)
Parameters
paramTypes
List<Type>
argTypes
List<Type>
Returns
- int
IsPublic(Type)
public static bool IsPublic(Type type)
Parameters
type
Type
Returns
- bool
SetupArgumentsForVarargsInvocation(Type[], params object[])
public static object[] SetupArgumentsForVarargsInvocation(Type[] requiredParameterTypes, params object[] args)
Parameters
requiredParameterTypes
Type[]
args
object[]
Returns
- object[]