Abstract class that helps you implement wrappers by automatically forwarding calls to Equals(), GetHashCode() and ToString().
More...
Source file:
Abstract class that helps you implement wrappers by automatically forwarding calls to Equals(), GetHashCode() and ToString().
|
override bool | Equals (object obj) |
| Returns true iff the parameter 'obj' is a wrapper around the same object that this object wraps. More...
|
|
override int | GetHashCode () |
| Returns the hashcode of the wrapped object. More...
|
|
override string | ToString () |
| Returns ToString() of the wrapped object. More...
|
|
|
| WrapperBase (T wrappedObject) |
|
|
static readonly
EqualityComparer< T > | TComp = EqualityComparer<T>.Default |
|
override bool Loyc.WrapperBase< T >.Equals |
( |
object |
obj | ) |
|
|
inline |
Returns true iff the parameter 'obj' is a wrapper around the same object that this object wraps.
- Parameters
-
obj | The object to compare with the current object. |
If obj actually refers to the wrapped object, this method returns false to preserve commutativity of the "Equals" relation.
override int Loyc.WrapperBase< T >.GetHashCode |
( |
| ) |
|
|
inline |
Returns the hashcode of the wrapped object.
override string Loyc.WrapperBase< T >.ToString |
( |
| ) |
|
|
inline |