Retrieve the instance of all types in the assembly that are derived from the given type. The given type is excludes in the list. A 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,
	Type deriveFromType,
	Object[] parameters,
	List<Type> excludesTypes
)
where T : class
Visual Basic
Public Shared Function GetAssignableTypeInstancesFromAssembly(Of T As Class) ( _
	assembly As Assembly, _
	deriveFromType As Type, _
	parameters As Object(), _
	excludesTypes As List(Of Type) _
) As List(Of T)
Visual C++
public:
generic<typename T>
where T : ref class
static List<T>^ GetAssignableTypeInstancesFromAssembly(
	Assembly^ assembly, 
	Type^ deriveFromType, 
	array<Object^>^ parameters, 
	List<Type^>^ excludesTypes
)

Parameters

assembly
Type: System.Reflection..::..Assembly
Assembly from which to retrieve the types
deriveFromType
Type: System..::..Type
The base type. Needs to be derived from the given type
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