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