/// <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 CheckpointDTO 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 &= Admissions.Equals(item.Admissions); return(result); } return(false); }