Lazy<T> Record
Provides support for lazy initialization.
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.
Name | Description | |
---|---|---|
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. |
Name | Description | |
---|---|---|
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. |
Name | Description | |
---|---|---|
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 | |
GetIsValueCreated | Represents method | |
GetValue | Represents method |
Name | Description | |
---|---|---|
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. |