Invoke an generic method by name, in reflection context. This method is the only way to invoke generic method in late bound conditions.

Namespace: Cartella.Support
Assembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
public static Object InvokeGenericMethod(
	string methodName,
	Object obj,
	Type[] genericTypeArguments,
	Type[] paramTypes,
	Object[] methodParameters
)
Visual Basic
Public Shared Function InvokeGenericMethod ( _
	methodName As String, _
	obj As Object, _
	genericTypeArguments As Type(), _
	paramTypes As Type(), _
	methodParameters As Object() _
) As Object
Visual C++
public:
static Object^ InvokeGenericMethod(
	String^ methodName, 
	Object^ obj, 
	array<Type^>^ genericTypeArguments, 
	array<Type^>^ paramTypes, 
	array<Object^>^ methodParameters
)

Parameters

methodName
Type: System..::..String
Generic method name to be executed
obj
Type: System..::..Object
Object on which the generic method is invoked
genericTypeArguments
Type: array<System..::..Type>[]()[][]
List of generic type arguments
paramTypes
Type: array<System..::..Type>[]()[][]
Array of parameter types
methodParameters
Type: array<System..::..Object>[]()[][]
Array of parameter values as objects

Return Value

Result of the generic method excusion. Null if the generic method is a void method

See Also