Class WrapperLazy<T>
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class WrapperLazy<T> : Wrapper<T>, IWrapper<T> where T : class
Type Parameters
T
- Inheritance
-
objectWrapper<T>WrapperLazy<T>
- Implements
-
IWrapper<T>
- Inherited Members
Constructors
WrapperLazy(Func<T>)
Overload for lazy wrapper.
protected WrapperLazy(Func<T> getContents)
Parameters
getContents
Func<T>
WrapperLazy(T)
public WrapperLazy(T contents)
Parameters
contents
T
Methods
Freeze()
Complete the wrapper, ensure the data was retrieved, and drop the getter.
public T Freeze()
Returns
- T
GetContents()
The underlying, original object. Helpful for external objects which need the real, underlying item.
Avoid using this property for use inside the real object, but create another property for this, so it's easier to spot dependencies.
public override T? GetContents()
Returns
- T
Reset()
protected void Reset()