Mocker..::..CallMethod<(Of <(<'T>)>)> Method

Calls the method.

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

Syntax


public T CallMethod<T>(
	Delegate method,
	params Object[] args
)
Public Function CallMethod(Of T) ( _
	method As Delegate, _
	ParamArray args As Object() _
) As T
public:
generic<typename T>
T CallMethod(
	Delegate^ method, 
	... array<Object^>^ args
)

Type Parameters

T

Parameters

method
Type: Delegate
The method.
args
Type: array<Object>[]()[][]
The arguments.

Return Value

Calls the method.

Exceptions


ExceptionCondition
ArgumentNullException