Open sandboxFocus

Constructor DurableLazy

DurableLazy(Func<T>)

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

Declaration
public DurableLazy(Func<T> factory)
Parameters
Type Name Description
Func<T> factory

The function that computes the value. It must capture only durable values, which the analyzer verifies at the call site.