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 |
|
◆ Equals()
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.
Referenced by Loyc.WrapperBase< TSet >.Equals().
◆ GetHashCode()
Returns the hashcode of the wrapped object.
◆ ToString()