TestClassExtensions..::..CallGenericMethod Method

Calls the generic method.

Namespace:  FastMoq.Extensions
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public static Object CallGenericMethod(
	Type typeParameter,
	Object obj,
	string methodName,
	Type[] parameterTypes,
	Object[] parameters
)
Public Shared Function CallGenericMethod ( _
	typeParameter As Type, _
	obj As Object, _
	methodName As String, _
	parameterTypes As Type(), _
	parameters As Object() _
) As Object
public:
static Object^ CallGenericMethod(
	Type^ typeParameter, 
	Object^ obj, 
	String^ methodName, 
	array<Type^>^ parameterTypes, 
	array<Object^>^ parameters
)

Parameters

typeParameter
Type: Type
The type parameter.
obj
Type: Object
The object.
methodName
Type: String
Name of the method.
parameterTypes
Type: array<Type>[]()[][]
The parameter types.
parameters
Type: array<Object>[]()[][]
The parameters.

Return Value

Calls the generic method.