Create a list instances of any types derived from the given generic argument type.
Namespace: Cartella.SupportAssembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
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
Type Parameters
- T
- Base type to look for
Return Value
Created instances of the types based on given typeRemarks
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.