Interface ILazy<T>
Provides support for lazy initialization.
Namespace: Towel
Assembly: Towel.dll
Syntax
public interface ILazy<T>
Type Parameters
Name | Description |
---|---|
T | The type of value that is being lazily initialized. |
Properties
| Improve this Doc View SourceIsCachingExceptions
True if exceptions thrown by the factory delegate are being cached.
Declaration
bool IsCachingExceptions { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsStructCopySafe
True if the lazy is safe from struct copies.
Declaration
bool IsStructCopySafe { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsValueCreated
True if Value has been initialized.
Declaration
bool IsValueCreated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ThreadSafety
The pattern of thread safety this lazy is using.
Declaration
LazyThreadSafetyMode ThreadSafety { get; }
Property Value
Type | Description |
---|---|
LazyThreadSafetyMode |
Value
Gets the lazily initialized value.
Declaration
T Value { get; }
Property Value
Type | Description |
---|---|
T |