Click or drag to resize
IClassFactoryRegisterInstance Method (Type, Object)
Registers an implementation of an interface. The instance passed across will be returned on each call to Resolve.

Namespace: InterfaceFactory
Assembly: InterfaceFactory (in InterfaceFactory.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
void RegisterInstance(
	Type interfaceType,
	Object instance
)

Parameters

interfaceType
Type: SystemType
The interface type.
instance
Type: SystemObject
An object whose type implements interfaceType.
See Also