Lazy<T> Constructor
Initializes a new instance of the Lazy<T> class.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | Lazy<T>() | Initializes a new instance of the Lazy<T> class. When lazy initialization occurs, the default constructor of the target type is used. |
![]() | Lazy<T>(Boolean) | Initializes a new instance of the Lazy<T> class. When lazy initialization occurs, the default constructor of the target type and the specified initialization mode are used. |
![]() | Lazy<T>(Func<T>^) | Initializes a new instance of the Lazy<T> class. When lazy initialization occurs, the specified initialization function is used. |
![]() | Lazy<T>(Func<T>^, Boolean) | Initializes a new instance of the Lazy<T> class. When lazy initialization occurs, the specified initialization function and initialization mode are used. |
![]() | Lazy<T>(Func<T>^, LazyThreadSafetyMode) | Initializes a new instance of the Lazy<T> class that uses the specified initialization function and thread-safety mode. |
![]() | Lazy<T>(LazyThreadSafetyMode) | Initializes a new instance of the Lazy<T> class that uses the default constructor of T and the specified thread-safety mode. |
