Click or drag to resize

LazyT Class

Provides support for lazy initialization. If you're on .NET 4.0 or higher you might want to use System.Lazy instead.
Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.UtilsLazyT

Namespace:  Archon.SwissArmyLib.Utils
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Lazy<T>
Request Example View Source

Type Parameters

T
The type of the lazily initialized value.

The LazyT type exposes the following members.

Constructors
  NameDescription
Public methodLazyT
Initializes a new instance of the LazyT class. The default constructor will be used to create the lazily initialized value.
Public methodLazyT(FuncT)
Initializes a new instance of the LazyT class. The specified initialization function will be used.
Top
Properties
  NameDescription
Public propertyIsValueCreated
Gets whether the value has been initialized.
Public propertyValue
Gets the lazily initialized value of this LazyT instance.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Creates a string representation of Value property for this instance.
(Overrides ObjectToString.)
Top
Operators
See Also