Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public virtual bool Equals(Quadplet <T1, T2, T3, T4> other)
 {
     return(this.CompareTo(other) == 0);
 }