Table of Contents

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

T

Member type.

Inherited Members

Constructors

Injected(T)

Creates a new Injected<T> instance.

public Injected(T instance)

Parameters

instance T

Underlying 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.