Show / Hide Table of Contents

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 Source

IsCachingExceptions

True if exceptions thrown by the factory delegate are being cached.

Declaration
bool IsCachingExceptions { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsStructCopySafe

True if the lazy is safe from struct copies.

Declaration
bool IsStructCopySafe { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsValueCreated

True if Value has been initialized.

Declaration
bool IsValueCreated { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ThreadSafety

The pattern of thread safety this lazy is using.

Declaration
LazyThreadSafetyMode ThreadSafety { get; }
Property Value
Type Description
LazyThreadSafetyMode
| Improve this Doc View Source

Value

Gets the lazily initialized value.

Declaration
T Value { get; }
Property Value
Type Description
T
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX