Class LazyT<T>
- Namespace
- SunamoShared.Lazy
- Assembly
- SunamoShared.dll
Generic lazy-loaded value using a settings retrieval function.
public class LazyT<T>
Type Parameters
TThe type of the lazy value.
- Inheritance
-
LazyT<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
LazyT(Func<string, bool, T>, string)
Initializes a new instance with the retrieval function and key.
public LazyT(Func<string, bool, T> getCommonSettings, string key)
Parameters
getCommonSettingsFunc<string, bool, T>The function to retrieve settings.
keystringThe settings key.
Properties
Value
Gets the lazily-loaded value, retrieving it on first access.
public T Value { get; }
Property Value
- T