Class LazyStruct<T>
Provides support for lazy initialization. This is not thread-safe struct.
public class LazyStruct<T>
Type Parameters
T
The type of object that is being lazily initialized.
- Inheritance
-
LazyStruct<T>
Constructors
- LazyStruct(Func<T>)
Initializes a new instance of the LazyStruct<T> class.
Properties
- IsValueCreated
Gets whether a value has been created for this object.
- Value
Gets the lazily initialized value.
Methods
- ToString()
Converts this object to a human readable string.