Class ResetLazy<T>
Provides support for lazy initialization of a value which can be reset.
Inherited Members
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 SourceResetLazy(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 SourceValue
Gets the lazily initialized value of the current Lazy<T> instance.
Declaration
public T Value { get; }
Property Value
Type | Description |
---|---|
T |
Methods
View SourceReset()
Resets the initialized value.
Declaration
public void Reset()