C++ C#

LazyValue<T> Class

API Reference

Namespace: Semata.Lazy

Allows a value to be set by a supplied initializer the first time it is accessed. The value maybe reset, so that any further access will cause it to be initialized again. LazyValue is read only

generic <typename T>
public struct LazyValue

Constructors

Name Description
LazyValue(Func<T>^)

Creates the LazyValue.

Properties

Name Description
IsInitialized

Has the value been initialized

Value

Returns the initialized value.

Methods

Name Description
Reset()

Resets the value to the default for the type

This website stores cookies on your computer that are used to manage the order in which you see the pages. To find out more about the cookies we use, see our Privacy Policy.