Class DelayedValue<T>
A container for a value that may be computed at a later time.
public sealed class DelayedValue<T> : DelayedValue
Type Parameters
TThe 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
delayedValueFactoryFunc<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
Result
Gets the contained result if populated.
public T Result { get; }
Property Value
- T