PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.Dictionaries.IWrapper Interface Reference

Defines an object which is wrapping another object and can be unwrapped with the provided methods. More...

Inheritance diagram for PeanutButter.Utils.Dictionaries.IWrapper:
PeanutButter.Utils.Dictionaries.DictionaryWrappingObject

Public Member Functions

object Unwrap ()
 Unwrap the wrapped object as a plain old object.
Unwrap< T > ()
 Unwrap the wrapped object with a hard cast to T (buyer beware!)
bool TryUnwrap< T > (out T result)
 Attempts to unwrap a wrapped value.

Detailed Description

Defines an object which is wrapping another object and can be unwrapped with the provided methods.

Member Function Documentation

◆ TryUnwrap< T >()

bool PeanutButter.Utils.Dictionaries.IWrapper.TryUnwrap< T > ( out T result)

Attempts to unwrap a wrapped value.

Template Parameters
T
Returns

Implemented in PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.

◆ Unwrap()

object PeanutButter.Utils.Dictionaries.IWrapper.Unwrap ( )

Unwrap the wrapped object as a plain old object.

Returns

Implemented in PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.

◆ Unwrap< T >()

Unwrap the wrapped object with a hard cast to T (buyer beware!)

Template Parameters
T
Returns

Implemented in PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.


The documentation for this interface was generated from the following file:
  • source/Utils/PeanutButter.Utils/Dictionaries/DictionaryWrappingObject.cs