Ejemplo n.º 1
0
        public int CompareTo(FourMapping <T, K, P, Q> o)
        {
            if (o == null)
            {
                return(1);
            }
            IComparable vo = o.k as IComparable;

            return(vo == null ? 1 : vo.CompareTo(this.k as IComparable));
        }
Ejemplo n.º 2
0
        public int CompareTo(object o)
        {
            if (o == null)
            {
                return(1);
            }
            FourMapping <T, K, P, Q> to = o as FourMapping <T, K, P, Q>;
            IComparable vo = to == null ? null : to.k as IComparable;

            return(vo == null ? 1 : vo.CompareTo(this.k));
        }