예제 #1
0
        public int CompareTo(OrderDetail other)
        {
            if (other == null)
            {
                return(1);
            }

            var comp1 = OrderID.CompareTo(other.OrderID);

            return(comp1 == 0
                ? ProductID.CompareTo(other.ProductID)
                : comp1);
        }