Create an instance of certain object, then cast it to the given generic argument. WARN: This method does not support T having multiple ctor() overloads with same number of parameters.

Namespace: Cartella.Support
Assembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
public static T Create<T>(
	Object[] parameters,
	Type type
)
where T : class
Visual Basic
Public Shared Function Create(Of T As Class) ( _
	parameters As Object(), _
	type As Type _
) As T
Visual C++
public:
generic<typename T>
where T : ref class
static T Create(
	array<Object^>^ parameters, 
	Type^ type
)

Parameters

parameters
Type: array<System..::..Object>[]()[][]
Parameters used for constructor
type
Type: System..::..Type
Original instance Type

Type Parameters

T
Desired object type

Return Value

Instance

See Also