Lazy<T,TMetadata> Lazy<T,TMetadata> Lazy<T,TMetadata> Lazy<T,TMetadata> Class

Definition

Provides a lazy indirect reference to an object and its associated metadata for use by the Managed Extensibility Framework.

generic <typename T, typename TMetadata>
public ref class Lazy : Lazy<T>
[System.Serializable]
public class Lazy<T,TMetadata> : Lazy<T>
type Lazy<'T, 'Metadata> = class
    inherit Lazy<'T>
Public Class Lazy(Of T, TMetadata)
Inherits Lazy(Of T)

Type Parameters

T

The type of the object referenced.

TMetadata

The type of the metadata.

Inheritance
Lazy<T,TMetadata>Lazy<T,TMetadata>Lazy<T,TMetadata>Lazy<T,TMetadata>
Attributes

Constructors

Lazy<T,TMetadata>(Func<T>, TMetadata) Lazy<T,TMetadata>(Func<T>, TMetadata) Lazy<T,TMetadata>(Func<T>, TMetadata) Lazy<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.

Lazy<T,TMetadata>(Func<T>, TMetadata, Boolean) Lazy<T,TMetadata>(Func<T>, TMetadata, Boolean) Lazy<T,TMetadata>(Func<T>, TMetadata, Boolean) Lazy<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.

Lazy<T,TMetadata>(Func<T>, TMetadata, LazyThreadSafetyMode) Lazy<T,TMetadata>(Func<T>, TMetadata, LazyThreadSafetyMode) Lazy<T,TMetadata>(Func<T>, TMetadata, LazyThreadSafetyMode) Lazy<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.

Lazy<T,TMetadata>(TMetadata) Lazy<T,TMetadata>(TMetadata) Lazy<T,TMetadata>(TMetadata) Lazy<T,TMetadata>(TMetadata)

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

Lazy<T,TMetadata>(TMetadata, Boolean) Lazy<T,TMetadata>(TMetadata, Boolean) Lazy<T,TMetadata>(TMetadata, Boolean) Lazy<T,TMetadata>(TMetadata, Boolean)

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

Lazy<T,TMetadata>(TMetadata, LazyThreadSafetyMode) Lazy<T,TMetadata>(TMetadata, LazyThreadSafetyMode) Lazy<T,TMetadata>(TMetadata, LazyThreadSafetyMode) Lazy<T,TMetadata>(TMetadata, LazyThreadSafetyMode)

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

Properties

IsValueCreated IsValueCreated IsValueCreated IsValueCreated

Gets a value that indicates whether a value has been created for this Lazy<T> instance.

(Inherited from Lazy<T>)
Metadata Metadata Metadata Metadata

Gets the metadata associated with the referenced object.

Value Value Value Value

Gets the lazily initialized value of the current Lazy<T> instance.

(Inherited from Lazy<T>)

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Creates and returns a string representation of the Value property for this instance.

(Inherited from Lazy<T>)

Applies to