MockerCreationExtensions..::..CreateInstance<(Of <(<'T, TParam1, TParam2>)>)> 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.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public static Nullable<T> CreateInstance<T, TParam1, TParam2>( this Mocker mocker, Dictionary<Type, Nullable<Object>> data )
<ExtensionAttribute> _ Public Shared Function CreateInstance(Of T, TParam1, TParam2) ( _ mocker As Mocker, _ data As Dictionary(Of Type, Nullable(Of Object)) _ ) As Nullable(Of T)
[ExtensionAttribute] public: generic<typename T, typename TParam1, typename TParam2> 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.
Parameters
- mocker
- Type: FastMoq..::..Mocker
The mocker.