Create a list of object instances with their types derived from the given generic argument type.

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

Syntax

C#
public static List<T> GetAssignableTypeInstancesFromAssembly<T>(
	string assemblyFilePath,
	Type creationType,
	Object[] parameters
)
where T : class, new()
Visual Basic
Public Shared Function GetAssignableTypeInstancesFromAssembly(Of T As {Class, New}) ( _
	assemblyFilePath As String, _
	creationType As Type, _
	parameters As Object() _
) As List(Of T)
Visual C++
public:
generic<typename T>
where T : ref class, gcnew()
static List<T>^ GetAssignableTypeInstancesFromAssembly(
	String^ assemblyFilePath, 
	Type^ creationType, 
	array<Object^>^ parameters
)

Parameters

assemblyFilePath
Type: System..::..String
Assembly file path
creationType
Type: System..::..Type
The actual object type to create instance on
parameters
Type: array<System..::..Object>[]()[][]
Constructor parameters to given types

Type Parameters

T
Base type

Return Value

Returns list of instances or a null object if the assembly file doesn't exist, or is not a DLL file

See Also