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

Invokes the static method.

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

Syntax


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

Type Parameters

TClass
The type of the t class.

Parameters

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.