Reflector<T> Class
Capsulizes each step to realize the injection.
C#
public sealed class Reflector<T>
Type Parameters
- T
The type of the value to be injected.
- Inheritance
-
Reflector<T>
Constructors
Reflector(Injector, Type, Sugarcoater<T>) |
Initializes a new instance of the Reflector<T> class. |
Properties
Inject |
Gets the injector. |
Unit |
Gets the type of the unit. |
Sugarcoater |
Gets the sugarcoater. |
Methods
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
ToString() | (Inherited from object) |
Constructors Detail
Reflector(Injector, Type, Sugarcoater<T>)
Initializes a new instance of the Reflector<T> class.
C#
public Reflector(Injector inject, Type unitType, Sugarcoater<T> sugarcoater)
Parameters
- inject
- Injector
The delegate that injects the sugarcoated value to the field or with the method.
- unitType
- Type
The type of the unit.
- sugarcoater
- Sugarcoater<T>
The delegate that sugarcoats the specified value.
Properties Detail
Inject
Gets the injector.
C#
public Injector Inject { get; }
Property Value
UnitType
Gets the type of the unit.
C#
public Type UnitType { get; }
Property Value
Sugarcoater
Gets the sugarcoater.
C#
public Sugarcoater<T> Sugarcoater { get; }