Table of Contents

Class Wrapper<T>

Namespace
ToSic.Sys.Wrappers
Assembly
ToSic.Sys.Core.dll

Helper base class for all wrappers

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract class Wrapper<T> : IWrapper<T>

Type Parameters

T
Inheritance
object
Wrapper<T>
Implements
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