Class DynamicInjector<T>
Provides a mechanism for automated dynamic injection.
Namespace: AlchemyBow.Core.IoC
Assembly: AlchemyBow.Core.dll
Syntax
public sealed class DynamicInjector<T> : DynamicInjectorBase where T : class
Type Parameters
Name | Description |
---|---|
T | The type of the injection target class. |
Constructors
DynamicInjector()
Creates an instance of the class.
Declaration
public DynamicInjector()
Methods
Inject(T)
Injects values into the target object.
Declaration
public T Inject(T target)
Parameters
Type | Name | Description |
---|---|---|
T | target | The target object. |
Returns
Type | Description |
---|---|
T | The object passed as a parameter ( |
Remarks
Only works if the injector has been bound and resolved in the container.