Lazy<T> Record

Provides support for lazy initialization.

Namespace: Spring
type
 Lazy<T> = record
 end;

Type Parameters

T
The type of object that is being lazily initialized.

The Lazy<T> type exposes the following members.

Show:
 NameDescription
Create(TFunc,Boolean)

Overloaded. Initializes a new instance of the Lazy<T> record. When lazy initialization occurs, the specified initialization function is used.

CreateFrom(T,Boolean)

Initializes a new instance of Lazy<T> with the specified value.

Top
Show:
 NameDescription
IsAssigned

Returns true if the value is assigned and contains an ILazy<T> reference; otherwise returns false.

IsValueCreated

Gets a value that indicates whether a value has been created for this Lazy<T> instance.

Value

Gets the lazily initialized value of the current Lazy<T> instance.

Top
Show:
 NameDescription
Create

Overloaded. Initializes a new instance of the Lazy<T> record. When lazy initialization occurs, the default constructor of the target type is used.

GetIsAssigned

Represents method GetIsAssigned.

GetIsValueCreated

Represents method GetIsValueCreated.

GetValue

Represents method GetValue.

Top
Show:
 NameDescription
Implicit(Lazy<T> to ILazy<T>)

Represents a conversion operator.

Implicit(Lazy<T> to T)

Represents a conversion operator.

Implicit(T to Lazy<T>)

Represents a conversion operator.

Implicit(TFunc to Lazy<T>)

Represents a conversion operator.

Implicit(TLazy<T> to Lazy<T>)

Represents a conversion operator.

Top
Show:
 NameDescription
fLazy

Represents field fLazy.

Top