Mocker..::..InvokeMethod<(Of <(<'TClass>)>)> Method (TClass, String, Boolean, array<Object>[]()[][])

Invokes the method.

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

Syntax


public Object InvokeMethod<TClass>(
	TClass obj,
	string methodName,
	bool nonPublic,
	params Object[] args
)
Public Function InvokeMethod(Of TClass) ( _
	obj As TClass, _
	methodName As String, _
	nonPublic As Boolean, _
	ParamArray args As Object() _
) As Object
public:
generic<typename TClass>
Object^ InvokeMethod(
	TClass obj, 
	String^ methodName, 
	bool^ nonPublic, 
	... array<Object^>^ args
)

Type Parameters

TClass
The type of the t class.

Parameters

obj
Type: TClass
The object.
methodName
Type: String
Name of the method.
nonPublic
Type: Boolean
if set to true [non-public].
args
Type: array<Object>[]()[][]
The arguments used for the method.

Return Value

Nullable.

Exceptions


ExceptionCondition
ArgumentOutOfRangeException