Non-generic version of "GetAssignableInstances<T>". Ideal for invocation in late bound context.

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

Syntax

C#
public static Object[] GetAssignableInstances(
	Type baseType,
	bool includePluginsFolder,
	params Object[] parameters
)
Visual Basic
Public Shared Function GetAssignableInstances ( _
	baseType As Type, _
	includePluginsFolder As Boolean, _
	ParamArray parameters As Object() _
) As Object()
Visual C++
public:
static array<Object^>^ GetAssignableInstances(
	Type^ baseType, 
	bool includePluginsFolder, 
	... array<Object^>^ parameters
)

Parameters

baseType
Type: System..::..Type
Base type to look for
includePluginsFolder
Type: System..::..Boolean
True to include the assemblies in the "Plugins" folder in the target location
parameters
Type: array<System..::..Object>[]()[][]
List of parameters for the constructor

Return Value

Created instances of the types based on given type

Remarks

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.

See Also