Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)DateType;
         hashCode = (hashCode * 397) ^ (DateFrom?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (DateTo?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (DatePhrase?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ IsValid.GetHashCode();
         hashCode = (hashCode * 397) ^ SortDate;
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)AssocDays;
         hashCode = (hashCode * 397) ^ (AssocLocationSuffix != null ? AssocLocationSuffix.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AssocTrainUid != null ? AssocTrainUid.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)AssocType;
         hashCode = (hashCode * 397) ^ (BaseLocationSuffix != null ? BaseLocationSuffix.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Category;
         hashCode = (hashCode * 397) ^ DateFrom.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)DateIndicator;
         hashCode = (hashCode * 397) ^ DateTo.GetHashCode();
         hashCode = (hashCode * 397) ^ (DiagramType != null ? DiagramType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Location != null ? Location.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MainTrainUid != null ? MainTrainUid.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)RecordIdentity;
         hashCode = (hashCode * 397) ^ (int)StpIndicator;
         return(hashCode);
     }
 }
Beispiel #3
0
        public override int GetHashCode()
        {
            unchecked
            {
                const int HashingBase       = (int)2166136261;
                const int HashingMultiplier = 16777619;

                int hash = HashingBase;
                hash = (hash * HashingMultiplier) ^ Id.GetHashCode();
                hash = (hash * HashingMultiplier) ^ ((DateFrom != null) ? DateFrom.GetHashCode() : 0);
                hash = (hash * HashingMultiplier) ^ ((DateTo != null) ? DateTo.GetHashCode() : 0);
                hash = (hash * HashingMultiplier) ^ CustomerName.GetHashCode();
                hash = (hash * HashingMultiplier) ^ VehicleType.GetHashCode();
                hash = (hash * HashingMultiplier) ^ Address.GetHashCode();
                hash = (hash * HashingMultiplier) ^ ProjectNo.GetHashCode();
                hash = (hash * HashingMultiplier) ^ Distance.GetHashCode();
                hash = (hash * HashingMultiplier) ^ Status.GetHashCode();
                hash = (hash * HashingMultiplier) ^ Leader.GetHashCode();
                return(hash);
            }
        }
        public override int GetHashCode()
        {
            unchecked
            {
                const int HashingBase       = (int)2166136261;
                const int HashingMultiplier = 16777619;

                int hash = HashingBase;
                hash = (hash * HashingMultiplier) ^ OrderNo.GetHashCode();
                hash = (hash * HashingMultiplier) ^ ((DateFrom != null) ? DateFrom.GetHashCode() : 0);
                hash = (hash * HashingMultiplier) ^ ((DateTo != null) ? DateTo.GetHashCode() : 0);
                hash = (hash * HashingMultiplier) ^ CustomerName.GetHashCode();
                hash = (hash * HashingMultiplier) ^ VehicleType.GetHashCode();
                hash = (hash * HashingMultiplier) ^ Address.GetHashCode();
                hash = (hash * HashingMultiplier) ^ ProjectNo.GetHashCode();
                hash = (hash * HashingMultiplier) ^ Imei.GetHashCode();
                hash = (hash * HashingMultiplier) ^ TrackerName.GetHashCode();
                hash = (hash * HashingMultiplier) ^ AddressLatitude.GetHashCode();
                hash = (hash * HashingMultiplier) ^ AddressLongitude.GetHashCode();
                return(hash);
            }
        }
Beispiel #5
0
 // needed when overriding Equals
 public override int GetHashCode()
 {
     return((EmployeeID << 2) ^ ProjectID ^ DateFrom.GetHashCode() ^ DateTo.GetHashCode());
 }