Example #1
0
        /// <summary>
        /// Determines whether the specified object is equal to the current object.
        /// </summary>
        /// <param name="obj">The object to compare with the current object.</param>
        /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns>
        public override bool Equals(object obj)
        {
            var result = false;

            if (obj is Checkpoint item)
            {
                result  = ID == item.ID;
                result &= IP.Equals(item.IP);
                result &= Campus.Equals(item.Campus);
                result &= Row.Equals(item.Row);
                result &= Description.Equals(item.Description);
                result &= Status.Equals(item.Status);
                result &= Type.Equals(item.Type);
                result &= TypeID.Equals(item.TypeID);
                return(result);
            }
            return(false);
        }
Example #2
0
 protected bool Equals(WmsLoadCarrierDTO other)
 {
     return(Id.Equals(other.Id) && TypeID.Equals(other.TypeID));
 }