Interface ITypeSource
Interface for a type source that manages objects of a specific type.
public interface ITypeSource
- Extension Methods
Methods
Add<TX>(IPlugin, Type, bool)
Get an object from the source.
TX Add<TX>(IPlugin plugin, Type type, bool failIfExists = true) where TX : IManageable
Parameters
Returns
- TX
Type Parameters
TX
Count()
Get the count of objects in the source.
int Count()
Returns
Has(string, out IManageable?, bool)
Do we have a manageable of a type name.
bool Has(string typeName, out IManageable? manageable, bool checkAssignable = true)
Parameters
typeName
stringmanageable
IManageablecheckAssignable
bool
Returns
Has(Type, out IManageable?, bool)
Do we have an object of the type TX in the source.
bool Has(Type type, out IManageable? manageable, bool checkAssignable = true)
Parameters
type
Typemanageable
IManageablecheckAssignable
bool