Lazy<T> Constructor

 

Initializes a new instance of the Lazy<T> class.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodLazy<T>()

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

System_CAPS_pubmethodLazy<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.

System_CAPS_pubmethodLazy<T>(Func<T>)

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

System_CAPS_pubmethodLazy<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.

System_CAPS_pubmethodLazy<T>(Func<T>, LazyThreadSafetyMode)

Initializes a new instance of the Lazy<T> class that uses the specified initialization function and thread-safety mode.

System_CAPS_pubmethodLazy<T>(LazyThreadSafetyMode)

Initializes a new instance of the Lazy<T> class that uses the default constructor of T and the specified thread-safety mode.

Return to top
Show: