Show / Hide Table of Contents

Class ResetLazy<T>

Provides support for lazy initialization of a value which can be reset.

Inheritance
object
ResetLazy<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Core.dll
Syntax
public sealed class ResetLazy<T>
Type Parameters
Name Description
T

The type of object that is being lazily initialized.

Constructors

View Source

ResetLazy(Func<T>)

Initializes a new instance of the ResetLazy<T> class. When lazy initialization occurs, the specified initialization function is used.

Declaration
public ResetLazy(Func<T> initializer)
Parameters
Type Name Description
Func<T> initializer

The initialization function.

Properties

View Source

Value

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

Declaration
public T Value { get; }
Property Value
Type Description
T

Methods

View Source

Reset()

Resets the initialized value.

Declaration
public void Reset()
  • View Source
In this article
Back to top Generated by DocFX