Interaction Workspace 8.0.0 .NET Developer's Guide and API Reference
RegisterType<(Of <(TFrom, TTo>)>) Method (singleton)
NamespacesGenesyslab.Desktop.Infrastructure.DependencyInjectionObjectContainerRegisterType<(Of <(TFrom, TTo>)>)(Boolean)
Register a type mapping with the container.
Declaration Syntax
C#Visual BasicVisual C++
public IObjectContainer RegisterType<TFrom, TTo>(
	bool singleton
)
where TTo : 
Public Function RegisterType(Of TFrom, TTo As ) ( _
	singleton As Boolean _
) As IObjectContainer
public:
generic<typename TFrom, typename TTo>
where TTo : 
virtual IObjectContainer^ RegisterType(
	bool singleton
) sealed
Generic Template Parameters
TFrom
Type that will be requested.
TTo
Type that will actually be returned.
Parameters
singleton (Boolean)
If set to true the instance is registered as a singleton.
Return Value
The ObjectContainer object that this method was called on.

Assembly: Genesyslab.Desktop.Infrastructure (Module: Genesyslab.Desktop.Infrastructure) Version: 8.0.2.15 (8.0.002.15)