System.Lazy<T>.Value Property

Gets the lazily initialized value of the current Lazy`1 instance.

Syntax

[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
public T Value { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the Lazy`1.IsValueCreated property is false, accessing the Lazy`1.Value property forces initialization.

In addition to the exceptions that are listed, the Lazy`1.Value property can throw any unhandled exception that is thrown by the factory method that was passed to the valueFactory parameter of the Lazy`1.#ctor(Func<`0>), Lazy`1.#ctor(Func<`0>,System.Threading.LazyThreadSafetyMode), or Lazy`1.#ctor(Func<`0>,System.Boolean) constructor.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0