MockerCreationExtensions..::..CreateInstance<(Of <(<'T, TParam1, TParam2, TParam3, TParam4>)>)> Method (Mocker, Dictionary<(Of <(<'Type, Nullable<(Of <(<'Object>)>)>>)>)>)

Creates an instance of T. Parameter data allows matching of constructors by type and uses those values in the creation of the instance.

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

Syntax


public static Nullable<T> CreateInstance<T, TParam1, TParam2, TParam3, TParam4>(
	this Mocker mocker,
	Dictionary<Type, Nullable<Object>> data
)
<ExtensionAttribute> _
Public Shared Function CreateInstance(Of T, TParam1, TParam2, TParam3, TParam4) ( _
	mocker As Mocker, _
	data As Dictionary(Of Type, Nullable(Of Object)) _
) As Nullable(Of T)
[ExtensionAttribute]
public:
generic<typename T, typename TParam1, typename TParam2, typename TParam3, typename TParam4>
static Nullable<T> CreateInstance(
	Mocker^ mocker, 
	Dictionary<Type^, Nullable<Object^>>^ data
)

Type Parameters

T
TParam1
The type of the t param1.
TParam2
The type of the t param2.
TParam3
The type of the t param3.
TParam4
The type of the t param4.

Parameters

mocker
Type: FastMoq..::..Mocker
The mocker.
data
Type: Dictionary<(Of <(<'Type, Nullable<(Of <(<'Object>)>)>>)>)>
The data.

Return Value

T.