Lazy<T>.CreateFrom Constructor
Definition
Initializes a new instance of Lazy<T> with the specified value.
Delphi
constructor CreateFrom(const value: T; ownsObject: Boolean = False)
Parameters
- value
- T
The initialized value.
- ownsObject
- Boolean
If true the value - if any got created - will be destroyed when going out of scope. Only when T is a class type.