Lazy<T>.CreateFrom(T,Boolean) Constructor

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

Namespace: Spring
public
 constructor CreateFrom(const value: T; ownsObject: Boolean = False);

Parameters

value
Type: T

The initialized value.

ownsObject
Type: Boolean

If true the value - if any got created - will be destroyed when going out of scope. Only when T is a class type.