Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Protected Member Functions | Protected fields | Protected static fields | List of all members
Loyc.WrapperBase< T > Class Template Reference

Abstract class that helps you implement wrappers by automatically forwarding calls to Equals(), GetHashCode() and ToString(). More...


Source file:
Inheritance diagram for Loyc.WrapperBase< T >:
Loyc.Collections.CollectionAsReadOnly< T > Loyc.Collections.ListAsListSource< T > Loyc.Collections.ListSourceAsList< T > Loyc.Collections.ReadOnlyAsCollection< T > Loyc.Syntax.SourceFileWithLineRemaps

Remarks

Abstract class that helps you implement wrappers by automatically forwarding calls to Equals(), GetHashCode() and ToString().

Public Member Functions

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...
 

Protected Member Functions

 WrapperBase (T wrappedObject)
 

Protected fields

_obj
 

Protected static fields

static readonly
EqualityComparer< T > 
TComp = EqualityComparer<T>.Default
 

Member Function Documentation

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
objThe 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

Returns ToString() of the wrapped object.