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