Create a list instances of any 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)

Collapse imageSyntax

C#
public static T[] GetAssignableInstances<T>(
	bool includePluginsFolder,
	params Object[] parameters
)
where T : class
Visual Basic
Public Shared Function GetAssignableInstances(Of T As Class) ( _
	includePluginsFolder As Boolean, _
	ParamArray parameters As Object() _
) As T()
Visual C++
public:
generic<typename T>
where T : ref class
static array<T>^ GetAssignableInstances(
	bool includePluginsFolder, 
	... array<Object^>^ parameters
)

Parameters

includePluginsFolder
Type: System..::..Boolean
Include the assemblies in the "Plugins" folder in the target location or not
parameters
Type: array<System..::..Object>[]()[][]
List of parameters for the constructor

Collapse imageType Parameters

T
Base type to look for

Return Value

Created instances of the types based on given type

Collapse imageRemarks

The method only creates instances for the types that are concrete classes and have a constructor that will accept the given number of parameters and their types.

Collapse imageSee Also