Table of Contents

Class LazyHelper

Namespace
Ecng.Reflection
Assembly
Ecng.Reflection.dll

Lazy helper.

public static class LazyHelper
Inheritance
LazyHelper
Inherited Members

Methods

Reset<T>(Lazy<T>)

Resets the lazy.

public static void Reset<T>(this Lazy<T> lazy)

Parameters

lazy Lazy<T>

The lazy.

Type Parameters

T

The type of the lazy.

SetValue<T>(Lazy<T>, T)

Sets the value.

public static void SetValue<T>(this Lazy<T> lazy, T value)

Parameters

lazy Lazy<T>

The lazy.

value T

Value.

Type Parameters

T

The type of the lazy.

Track<T>(Lazy<T>)

Tracks the lazy.

public static Lazy<T> Track<T>(this Lazy<T> lazy)

Parameters

lazy Lazy<T>

The lazy.

Returns

Lazy<T>

The lazy.

Type Parameters

T

The type of the lazy.