Method FindSubtypesOf
| Improve this Doc View SourceFindSubtypesOf<TSupertype>()
Finds subtypes that implement the contract specified by TSupertype
using the assemblies loaded by PluginLoader.
Declaration
public static IEnumerable<TSupertype> FindSubtypesOf<TSupertype>()
where TSupertype : class
Returns
Type | Description |
---|---|
IEnumerable<TSupertype> | An instance of type IEnumerable<T> that allows iterating over the instances
that implement the contract specified by or Returns an empty enumerable if theTSupertype does not have any subtype,
or if no assembly uses PluginAttribute.
This method never returns |
Type Parameters
Name | Description |
---|---|
TSupertype | The type of contract (base type) shared between the host application and the plugins. |
Remarks
This method uses the PluginAttribute type to create an instance of the subtype, so plugins must use it.