public override int CompareTo(Stop other)
 {
     return(TRK_CDE.CompareTo(other.TRK_CDE) +
            ManifestId.CompareTo(other.ManifestId) +
            DisplaySeq.CompareTo(other.DisplaySeq) +
            CustomerId.CompareTo(other.CustomerId));
     //throw new System.NotImplementedException();
 }
Exemple #2
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            var compareObj = (UserCustomerInfo)obj;

            if (UserId.CompareTo(compareObj.UserId) != 0)
            {
                return(false);
            }
            if (CustomerId.CompareTo(compareObj.CustomerId) != 0)
            {
                return(false);
            }

            return(true);
        }