Table of Contents

Class DelayedValue<T>

Namespace
PolyType.Utilities
Assembly
PolyType.dll

A container for a value that may be computed at a later time.

public sealed class DelayedValue<T> : DelayedValue

Type Parameters

T

The type of the computed value.

Inheritance
DelayedValue<T>
Inherited Members

Constructors

DelayedValue(Func<DelayedValue<T>, T>)

Initializes a new instance of the DelayedValue<T> class.

public DelayedValue(Func<DelayedValue<T>, T> delayedValueFactory)

Parameters

delayedValueFactory Func<DelayedValue<T>, T>

A delegate creating a facade that wraps the delayed value reference.

Properties

IsCompleted

Gets a value indicating whether the result has been computed.

public override bool IsCompleted { get; }

Property Value

bool

Result

Gets the contained result if populated.

public T Result { get; }

Property Value

T