Mocker..::..CreateInstanceNonPublic<(Of <(<'T>)>)> Method (array<Object>[]()[][])

Creates the instance of the given type. Public and non-public constructors are searched. Parameters allow matching of constructors and using those values in the creation of the instance.

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

Syntax


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

Type Parameters

T
The Mock Type, usually an interface.

Parameters

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

Return Value

Nullable

Examples


C#
IModel model = CreateInstanceNonPublic<IModel>();