Lazy<T, TMetadata> Constructor

 

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

Namespace:   System
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

NameDescription
System_CAPS_pubmethodLazy<T, TMetadata>(TMetadata)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata.

System_CAPS_pubmethodLazy<T, TMetadata>(TMetadata, Boolean)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread safety value.

System_CAPS_pubmethodLazy<T, TMetadata>(TMetadata, LazyThreadSafetyMode)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread synchronization mode.

System_CAPS_pubmethodLazy<T, TMetadata>(Func<T>^, TMetadata)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata that uses the specified function to get the referenced object.

System_CAPS_pubmethodLazy<T, TMetadata>(Func<T>^, TMetadata, Boolean)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread safety value that uses the specified function to get the referenced object.

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

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread synchronization mode that uses the specified function to get the referenced object.

Return to top
Show: