Esempio 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()));
     }
 }
Esempio n. 2
0
 public bool Equals(ToStringWrapper <T> other)
 {
     return(other != null && item.Equals(other.item));
 }