Ejemplo n.º 1
0
 public int CompareTo(ToStringWrapper <T> other)
 {
     if (item is IComparable <T> )
     {
         return((item as IComparable <T>).CompareTo(other.item));
     }
     else
     {
         return(StringUtility.NaturalCompare(ToString(), other.ToString()));
     }
 }
Ejemplo n.º 2
0
 public bool Equals(ToStringWrapper <T> other)
 {
     return(other != null && item.Equals(other.item));
 }