public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (BookingDate?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OrderNo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (NoIdentity?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (FromExtTime?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ToExtTime?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (BookStatus?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (NoPlatform?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (NoCourier?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Warehouse?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Driver?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DriverTelephone?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Plate?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Trailerplate?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PalletIN?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TotalPallet?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DateArrived?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TimeArrived?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DateExit?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TImeExit?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RouteTracking_ID?.GetHashCode() ?? 0);
            return(hashCode);
        }
示例#2
0
文件: Structures.cs 项目: Vla00/alone
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Family != null ? Family.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Surname != null ? Surname.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Pol;
         hashCode = (hashCode * 397) ^ DateRo.GetHashCode();
         hashCode = (hashCode * 397) ^ DateSm.GetHashCode();
         hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TypeUl != null ? TypeUl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Street != null ? Street.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (House != null ? House.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Apartament != null ? Apartament.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Housing != null ? Housing.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Phone != null ? Phone.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PlaceWork != null ? PlaceWork.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Dop != null ? Dop.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateExit.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
文件: Structures.cs 项目: Vla00/alone
 protected bool Equals(StructuresAlone other)
 {
     return(string.Equals(Family, other.Family) && string.Equals(Name, other.Name) && string.Equals(Surname, other.Surname) && Pol == other.Pol && DateRo.Equals(other.DateRo) && DateSm.Equals(other.DateSm) && string.Equals(Country, other.Country) && string.Equals(TypeUl, other.TypeUl) && string.Equals(Street, other.Street) && string.Equals(House, other.House) && string.Equals(Apartament, other.Apartament) && string.Equals(Housing, other.Housing) && string.Equals(Phone, other.Phone) && string.Equals(PlaceWork, other.PlaceWork) && string.Equals(Dop, other.Dop) && DateExit.Equals(other.DateExit));
 }