Lazy<T, TMetadata> Class
Provides an extension of the Lazy<T> class with support for metadata.
Namespace: System
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
The Lazy<T, TMetadata> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Lazy<T, TMetadata>(TMetadata) | Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata. |
![]() | Lazy<T, TMetadata>(TMetadata, Boolean) | Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread safety mode. |
![]() | Lazy<T, TMetadata>(TMetadata, LazyThreadSafetyMode) | Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread safety mode. |
![]() | Lazy<T, TMetadata>(Func<T>, TMetadata) | Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and factory for the referenced value. |
![]() | Lazy<T, TMetadata>(Func<T>, TMetadata, Boolean) | Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata, factory for the referenced value, and thread safety mode. |
![]() | Lazy<T, TMetadata>(Func<T>, TMetadata, LazyThreadSafetyMode) | Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata, factory for the referenced value, and thread safety mode. |
| Name | Description | |
|---|---|---|
![]() | IsValueCreated | Gets a value that indicates whether a value has been created for this Lazy<T> instance. (Inherited from Lazy<T>.) |
![]() | Metadata | Gets or sets the metadata associated with the referenced value. |
![]() | Value | Gets the lazily initialized value of the current Lazy<T> instance. (Inherited from Lazy<T>.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Creates and returns a string representation of the Lazy<T>::Value property for this instance. (Inherited from Lazy<T>.) |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show:
