Mocker..::..CreateInstanceNonPublic Method (Type, 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 Object CreateInstanceNonPublic(
	Type type,
	params Object[] args
)
Public Function CreateInstanceNonPublic ( _
	type As Type, _
	ParamArray args As Object() _
) As Object
public:
Object^ CreateInstanceNonPublic(
	Type^ type, 
	... array<Object^>^ args
)

Parameters

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

Return Value

System.Nullable<System.Object>.