Class Injected
- Namespace
- LfrlAnvil.Dependencies
- Assembly
- LfrlAnvil.Dependencies.dll
Creates instances of Injected<T> type.
public static class Injected
- Inheritance
-
Injected
- Inherited Members
Methods
Create<T>(T)
Creates a new Injected<T> instance.
[Pure]
public static Injected<T> Create<T>(T instance)
Parameters
instance
TUnderlying value.
Returns
- Injected<T>
New Injected<T> instance.
Type Parameters
T
Member type.
GetUnderlyingType(Type?)
Attempts to extract the underlying type from the provided Injected<T>type
.
[Pure]
public static Type? GetUnderlyingType(Type? type)
Parameters
type
TypeType to extract the underlying type from.
Returns
- Type
Underlying Injected<T> type or null when the provided
type
is not related to the Injected<T> type.