public override bool Equals(Object other) { Triplet <T1, T2, T3> tmp = other as Triplet <T1, T2, T3>; if (tmp != null) { return(this.CompareTo(tmp) == 0); } return(((Object)this).Equals(other)); }
public virtual int CompareTo(Triplet <T1, T2, T3> other) { int res = this.first.CompareTo(other.first); if (res == 0) { res = this.second.CompareTo(other.second); } if (res == 0) { return(this.third.CompareTo(other.third)); } return(res); }
public virtual bool Equals(Triplet <T1, T2, T3> other) { return(this.CompareTo(other) == 0); }