Struct Injected<T>
- Namespace
- LfrlAnvil.Dependencies
- Assembly
- LfrlAnvil.Dependencies.dll
A lightweight generic default container for an injected member.
public readonly struct Injected<T>
Type Parameters
TMember type.
- Inherited Members
Constructors
Injected(T)
Creates a new Injected<T> instance.
public Injected(T instance)
Parameters
instanceTUnderlying value.
Properties
Instance
Underlying value.
public T Instance { get; }
Property Value
- T
Methods
ToString()
Returns a string representation of this Injected<T> instance.
[Pure]
public override string ToString()
Returns
- string
String representation.