Interface IWrapper<T>
Represents the contract for a wrapper.
Namespace: Discord.Addons.MpGame.Collections
Assembly: Discord.Addons.MpGame.dll
Syntax
public interface IWrapper<out T>
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourceUnwrap(Boolean)
Unwraps the wrapped item.
May do domain-specific checks or operations.
Declaration
T Unwrap(bool revealing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | revealing | Indicates if the actual item is required to be returned. |
Returns
Type | Description |
---|---|
T | The unwrapped item, or a domain-specific placeholder item. |
Remarks
implement
If revealing
is true,
any domain-specific checks are required to be skipped
and the actual wrapped item must be returned.