Lazy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a lazy indirect reference to an object and its associated metadata for use by the Managed Extensibility Framework.
generic
public ref class Lazy : Lazy
public class Lazy : Lazy
[System.Serializable]
public class Lazy : Lazy
type Lazy<'T, 'Metadata> = class
inherit 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
- Attributes
Constructors
| Name | Description |
|---|---|
|
Lazy |
Initializes a new instance of the Lazy |
|
Lazy |
Initializes a new instance of the Lazy |
|
Lazy |
Initializes a new instance of the Lazy |
|
Lazy |
Initializes a new instance of the Lazy |
|
Lazy |
Initializes a new instance of the Lazy |
|
Lazy |
Initializes a new instance of the Lazy |
Properties
| Name | Description |
|---|---|
| IsValueCreated |
Gets a value that indicates whether a value has been created for this Lazy |
| Metadata |
Gets the metadata associated with the referenced object. |
| Value |
Gets the lazily initialized value of the current Lazy |
Methods
| Name | Description |
|---|---|
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode() |
Serves as the default hash function. (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 Value property for this instance. (Inherited from Lazy |