Retrieve the instance of all types in the assembly that are derived from the given type. The given type is excludes in the list. List of excluded types are provided.

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>(
	Assembly assembly,
	Object[] parameters,
	List<Type> excludesTypes
)
where T : class, new()
Visual Basic
Public Shared Function GetAssignableTypeInstancesFromAssembly(Of T As {Class, New}) ( _
	assembly As Assembly, _
	parameters As Object(), _
	excludesTypes As List(Of Type) _
) As List(Of T)
Visual C++
public:
generic<typename T>
where T : ref class, gcnew()
static List<T>^ GetAssignableTypeInstancesFromAssembly(
	Assembly^ assembly, 
	array<Object^>^ parameters, 
	List<Type^>^ excludesTypes
)

Parameters

assembly
Type: System.Reflection..::..Assembly
Assembly from which to retrieve the types
parameters
Type: array<System..::..Object>[]()[][]
Parameters for constructor
excludesTypes
Type: System.Collections.Generic..::..List<(Of <(<'Type>)>)>
Types to exclude

Type Parameters

T
The given type to retrieve

Return Value

List of created instances

See Also