Class Wrapper<T>
Helper base class for all wrappers
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract class Wrapper<T> : IWrapper<T>
Type Parameters
T
- Inheritance
-
objectWrapper<T>
- Implements
-
IWrapper<T>
- Derived
Constructors
Wrapper(T?)
Helper base class for all wrappers
protected Wrapper(T? unwrappedContents)
Parameters
unwrappedContents
T
Methods
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 virtual T? GetContents()
Returns
- T
Wrap(T?)
protected void Wrap(T? contents)
Parameters
contents
T