コード例 #1
0
ファイル: Equipments.cs プロジェクト: Astorn12/Warehouse
        public override int GetHashCode()
        {
            int hash = 1;

            if (Guid.Length != 0)
            {
                hash ^= Guid.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (SerialNumber.Length != 0)
            {
                hash ^= SerialNumber.GetHashCode();
            }
            if (Type != global::WarehouseGrpc.EquipmentType.Rtv)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Path.Length != 0)
            {
                hash ^= Path.GetHashCode();
            }
            if (SerialNumber.Length != 0)
            {
                hash ^= SerialNumber.GetHashCode();
            }
            hash ^= subjectAltNames_.GetHashCode();
            if (DaysUntilExpiration != 0UL)
            {
                hash ^= DaysUntilExpiration.GetHashCode();
            }
            if (validFrom_ != null)
            {
                hash ^= ValidFrom.GetHashCode();
            }
            if (expirationTime_ != null)
            {
                hash ^= ExpirationTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
ファイル: NodeInfo.cs プロジェクト: VerdantAutomation/GBee
 /// <summary>
 ///   TODO: Update Comments
 ///
 /// </summary>
 /// <returns>
 ///     A int value...
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return((NetworkAddress.GetHashCode() * 397) ^ SerialNumber.GetHashCode());
     }
 }
コード例 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Guid.Length != 0)
            {
                hash ^= Guid.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (SerialNumber.Length != 0)
            {
                hash ^= SerialNumber.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #5
0
ファイル: SerialNumbers.cs プロジェクト: leeleonis/QD
        public override int GetHashCode()
        {
            int hashSerialNumber = SerialNumber.GetHashCode();
            int hashOrderItemID  = OrderItemID.GetHashCode();

            return(hashSerialNumber ^ hashOrderItemID);
        }
コード例 #6
0
        public override int GetHashCode()
        {
            int hashProductID    = ProductID.GetHashCode();
            int hashSerialNumber = SerialNumber.GetHashCode();

            return(hashProductID ^ hashSerialNumber);
        }
コード例 #7
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (DistrictName != null)
                {
                    hash = hash * 59 + DistrictName.GetHashCode();
                }

                if (SerialNumber != null)
                {
                    hash = hash * 59 + SerialNumber.GetHashCode();
                }

                if (DuplicateEquipment != null)
                {
                    hash = hash * 59 + DuplicateEquipment.GetHashCode();
                }

                return(hash);
            }
        }
コード例 #8
0
 public override int GetHashCode()
 {
     return(ElementNumber.GetHashCode()
            ^ SerialNumber.GetHashCode()
            ^ DmxRangeMin.GetHashCode()
            ^ DmxRangeMax.GetHashCode()
            ^ (Name?.GetHashCode() ?? 0));
 }
コード例 #9
0
ファイル: FtdDeviceInfo.cs プロジェクト: ESOmenium/Modbus
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^
            Flags.GetHashCode() ^
            SerialNumber.GetHashCode() ^
            Type.GetHashCode() ^
            LocationId.GetHashCode() ^
            Description.GetHashCode());
 }
コード例 #10
0
 /// <summary>
 /// Returns the hash code for the CRL entry as an integer.
 /// </summary>
 /// <returns>The hash code for the CRL entry as an integer.</returns>
 public override Int32 GetHashCode()
 {
     unchecked {
         Int32 hashCode = (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ RevocationDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ReasonCode;
         return(hashCode);
     }
 }
コード例 #11
0
        public override int GetHashCode()
        {
            var result = (Model == null ? 0 : Model.GetHashCode());

            result += 17 * (SerialNumber == null ? 0 : SerialNumber.GetHashCode());
            result += 17 * 17 * Status.GetHashCode();
            result += PriceBought == null ? 0 : 17 * 17 * 17 * (int)Math.Min(int.MaxValue, PriceBought.Value);
            return(result);
        }
コード例 #12
0
 /// <summary>
 /// Returns the hash code for the CRL entry as an integer.
 /// </summary>
 /// <returns>The hash code for the CRL entry as an integer.</returns>
 public override Int32 GetHashCode()
 {
     unchecked {
         Int32 hashCode = SerialNumber?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ RevocationDate.GetHashCode();
         hashCode = (hashCode * 397) ^ ReasonCode;
         return(hashCode);
     }
 }
コード例 #13
0
        public override int GetHashCode()
        {
            // Generated by IntelliJ
            int result = Manufacturer.GetHashCode();

            result = 31 * result + ModelNumber.GetHashCode();
            result = 31 * result + SerialNumber.GetHashCode();
            result = 31 * result + FirmwareRevision.GetHashCode();
            result = 31 * result + HardwareRevision.GetHashCode();

            return(result);
        }
コード例 #14
0
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^
            IsSuccess.GetHashCode() ^
            State.GetHashCode() ^
            Manufacturer.GetHashCode() ^
            ModelName.GetHashCode() ^
            SerialNumber.GetHashCode() ^
            SignalQuality.GetHashCode() ^
            Imsi.GetHashCode() ^
            Imei.GetHashCode() ^
            OperatorName.GetHashCode());
 }
コード例 #15
0
ファイル: Lot.cs プロジェクト: curiousTauseef/warehouse-2
 public override int GetHashCode()
 {
     unchecked {
         int result = (int)ID;
         result = (result * 397) ^ PriceIn.GetHashCode();
         result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         result = (result * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
         result = (result * 397) ^ (ExpirationDate.HasValue ? ExpirationDate.Value.GetHashCode() : 0);
         result = (result * 397) ^ (ProductionDate.HasValue ? ProductionDate.Value.GetHashCode() : 0);
         result = (result * 397) ^ (Location != null ? Location.GetHashCode() : 0);
         return(result);
     }
 }
コード例 #16
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Model != null)
         {
             hashCode = hashCode * 59 + Model.GetHashCode();
         }
         if (Year != null)
         {
             hashCode = hashCode * 59 + Year.GetHashCode();
         }
         if (Price != null)
         {
             hashCode = hashCode * 59 + Price.GetHashCode();
         }
         if (SerialNumber != null)
         {
             hashCode = hashCode * 59 + SerialNumber.GetHashCode();
         }
         if (SoldDateUtc != null)
         {
             hashCode = hashCode * 59 + SoldDateUtc.GetHashCode();
         }
         if (Comment != null)
         {
             hashCode = hashCode * 59 + Comment.GetHashCode();
         }
         if (Transmission != null)
         {
             hashCode = hashCode * 59 + Transmission.GetHashCode();
         }
         if (Motor != null)
         {
             hashCode = hashCode * 59 + Motor.GetHashCode();
         }
         if (GarageId != null)
         {
             hashCode = hashCode * 59 + GarageId.GetHashCode();
         }
         if (SellerId != null)
         {
             hashCode = hashCode * 59 + SellerId.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #17
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (SerialNumber != null)
         {
             hashCode = hashCode * 59 + SerialNumber.GetHashCode();
         }
         if (FirmwareVersion != null)
         {
             hashCode = hashCode * 59 + FirmwareVersion.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #18
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ModelId.GetHashCode();
         hashCode = (hashCode * 397) ^ TypeId;
         hashCode = (hashCode * 397) ^ ManufactuerId.GetHashCode();
         hashCode = (hashCode * 397) ^ RefrigerantId.GetHashCode();
         hashCode = (hashCode * 397) ^ LightingId.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDismounted.GetHashCode();
         hashCode = (hashCode * 397) ^ CoverId.GetHashCode();
         hashCode = (hashCode * 397) ^ StateId;
         hashCode = (hashCode * 397) ^ ShopId.GetHashCode();
         return(hashCode);
     }
 }
コード例 #19
0
        /// <summary>
        /// Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode()
        {
            // As obtained from the Jon Skeet answer to:
            // http://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode
            // And adapted towards the Modified Bernstein (shown here: http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx)
            //
            // Overflow is fine, just wrap
            unchecked
            {
                // Pick a random prime number
                int hash = 17;

                // Mash the hash together with yet another random prime number
                hash = (hash * 23) ^ SerialNumber.GetHashCode();

                return(hash);
            }
        }
コード例 #20
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ThumbPrint != null ? ThumbPrint.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Issuer != null ? Issuer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Subject != null ? Subject.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ValidFrom.GetHashCode();
         hashCode = (hashCode * 397) ^ ValidTo.GetHashCode();
         hashCode = (hashCode * 397) ^ (KeyAlgoritm != null ? KeyAlgoritm.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ KeyLength;
         hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubjectAlternativeName != null ? SubjectAlternativeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CommonName != null ? CommonName.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #21
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Created.GetHashCode();
         hashCode = (hashCode * 397) ^ (Office != null ? Office.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RegistrationNumber != null ? RegistrationNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographMake != null ? TachographMake.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographModel != null ? TachographModel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ InspectionDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Technician != null ? Technician.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CustomerContact != null ? CustomerContact.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DepotName != null ? DepotName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CompanyName != null ? CompanyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UserId;
         hashCode = (hashCode * 397) ^ Uploaded.GetHashCode();
         return(hashCode);
     }
 }
コード例 #22
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = AccountName != null?AccountName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (IdentitySecret != null ? IdentitySecret.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (RevocationCode != null ? RevocationCode.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Secret1 != null ? Secret1.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ ServerTime.GetHashCode();
                hashCode = (hashCode * 397) ^ (SharedSecret != null ? SharedSecret.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)Status;
                hashCode = (hashCode * 397) ^ (SteamGuardScheme != null ? SteamGuardScheme.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ SteamId.GetHashCode();
                hashCode = (hashCode * 397) ^ (TokenGID != null ? TokenGID.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Uri != null ? Uri.GetHashCode() : 0);

                return(hashCode);
            }
        }
コード例 #23
0
ファイル: Metadata.cs プロジェクト: cafltar/Caf.Etl
        public override int GetHashCode()
        {
            var hashCode = 1454258597;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FileFormat);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(StationName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DataLoggerType);

            hashCode = hashCode * -1521134295 + SerialNumber.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(OperatingSystemVersion);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DataloggerProgramName);

            hashCode = hashCode * -1521134295 + DataloggerProgramSignature.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(TableName);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <Variable> > .Default.GetHashCode(Variables);

            return(hashCode);
        }
コード例 #24
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         if (Certificates != null)
         {
             hashCode = hashCode * 59 + Certificates.GetHashCode();
         }
         if (IssuerDN != null)
         {
             hashCode = hashCode * 59 + IssuerDN.GetHashCode();
         }
         if (SerialNumber != null)
         {
             hashCode = hashCode * 59 + SerialNumber.GetHashCode();
         }
         if (SubjectDN != null)
         {
             hashCode = hashCode * 59 + SubjectDN.GetHashCode();
         }
         if (ValidFrom != null)
         {
             hashCode = hashCode * 59 + ValidFrom.GetHashCode();
         }
         if (ValidTo != null)
         {
             hashCode = hashCode * 59 + ValidTo.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #25
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (SearchString != null)
         {
             hashCode = hashCode * 59 + SearchString.GetHashCode();
         }
         if (SortingColumn != null)
         {
             hashCode = hashCode * 59 + SortingColumn.GetHashCode();
         }
         if (TagId != null)
         {
             hashCode = hashCode * 59 + TagId.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (AssetNumber != null)
         {
             hashCode = hashCode * 59 + AssetNumber.GetHashCode();
         }
         if (Latitude != null)
         {
             hashCode = hashCode * 59 + Latitude.GetHashCode();
         }
         if (Longitude != null)
         {
             hashCode = hashCode * 59 + Longitude.GetHashCode();
         }
         if (AssetClass != null)
         {
             hashCode = hashCode * 59 + AssetClass.GetHashCode();
         }
         if (LastModified != null)
         {
             hashCode = hashCode * 59 + LastModified.GetHashCode();
         }
         if (Created != null)
         {
             hashCode = hashCode * 59 + Created.GetHashCode();
         }
         if (Creator != null)
         {
             hashCode = hashCode * 59 + Creator.GetHashCode();
         }
         if (SubNumber != null)
         {
             hashCode = hashCode * 59 + SubNumber.GetHashCode();
         }
         if (CompanyCode != null)
         {
             hashCode = hashCode * 59 + CompanyCode.GetHashCode();
         }
         if (InventoryNumber != null)
         {
             hashCode = hashCode * 59 + InventoryNumber.GetHashCode();
         }
         if (SerialNumber != null)
         {
             hashCode = hashCode * 59 + SerialNumber.GetHashCode();
         }
         if (Location != null)
         {
             hashCode = hashCode * 59 + Location.GetHashCode();
         }
         if (Room != null)
         {
             hashCode = hashCode * 59 + Room.GetHashCode();
         }
         if (CostCenter != null)
         {
             hashCode = hashCode * 59 + CostCenter.GetHashCode();
         }
         if (CapitalisationDate != null)
         {
             hashCode = hashCode * 59 + CapitalisationDate.GetHashCode();
         }
         if (LastInventoryDate != null)
         {
             hashCode = hashCode * 59 + LastInventoryDate.GetHashCode();
         }
         if (AcquisitionValue != null)
         {
             hashCode = hashCode * 59 + AcquisitionValue.GetHashCode();
         }
         if (AssetSuperNumber != null)
         {
             hashCode = hashCode * 59 + AssetSuperNumber.GetHashCode();
         }
         if (Vendor != null)
         {
             hashCode = hashCode * 59 + Vendor.GetHashCode();
         }
         if (TypeName != null)
         {
             hashCode = hashCode * 59 + TypeName.GetHashCode();
         }
         if (Plant != null)
         {
             hashCode = hashCode * 59 + Plant.GetHashCode();
         }
         if (Quantity != null)
         {
             hashCode = hashCode * 59 + Quantity.GetHashCode();
         }
         if (Unit != null)
         {
             hashCode = hashCode * 59 + Unit.GetHashCode();
         }
         if (Untaggable != null)
         {
             hashCode = hashCode * 59 + Untaggable.GetHashCode();
         }
         if (Untagged != null)
         {
             hashCode = hashCode * 59 + Untagged.GetHashCode();
         }
         if (Page != null)
         {
             hashCode = hashCode * 59 + Page.GetHashCode();
         }
         if (PageSize != null)
         {
             hashCode = hashCode * 59 + PageSize.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #26
0
ファイル: ClassCommon.cs プロジェクト: leeleonis/QD
        public override int GetHashCode()
        {
            int hashSerialNumber = SerialNumber.GetHashCode();

            return(hashSerialNumber);
        }
コード例 #27
0
 public override int GetHashCode()
 {
     return(SerialNumber != null ? SerialNumber.GetHashCode() : 0);
 }
コード例 #28
0
 public override int GetHashCode()
 {
     return(SerialNumber.GetHashCode());
 }
 /// <summary>
 /// Return the hash code for the Instrument.
 /// </summary>
 /// <returns>The hash code for the Instrument.</returns>
 public override int GetHashCode() => SerialNumber.GetHashCode();
コード例 #30
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (InventoryNumber != null)
         {
             hashCode = hashCode * 59 + InventoryNumber.GetHashCode();
         }
         if (SerialNumber != null)
         {
             hashCode = hashCode * 59 + SerialNumber.GetHashCode();
         }
         if (Location != null)
         {
             hashCode = hashCode * 59 + Location.GetHashCode();
         }
         if (Room != null)
         {
             hashCode = hashCode * 59 + Room.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (CostCenter != null)
         {
             hashCode = hashCode * 59 + CostCenter.GetHashCode();
         }
         if (CapitalisationDate != null)
         {
             hashCode = hashCode * 59 + CapitalisationDate.GetHashCode();
         }
         if (LastInventoryDate != null)
         {
             hashCode = hashCode * 59 + LastInventoryDate.GetHashCode();
         }
         if (AcquisitionValue != null)
         {
             hashCode = hashCode * 59 + AcquisitionValue.GetHashCode();
         }
         if (AssetSuperNumber != null)
         {
             hashCode = hashCode * 59 + AssetSuperNumber.GetHashCode();
         }
         if (Vendor != null)
         {
             hashCode = hashCode * 59 + Vendor.GetHashCode();
         }
         if (TypeName != null)
         {
             hashCode = hashCode * 59 + TypeName.GetHashCode();
         }
         if (Plant != null)
         {
             hashCode = hashCode * 59 + Plant.GetHashCode();
         }
         if (AssetClass != null)
         {
             hashCode = hashCode * 59 + AssetClass.GetHashCode();
         }
         if (Quantity != null)
         {
             hashCode = hashCode * 59 + Quantity.GetHashCode();
         }
         if (Unit != null)
         {
             hashCode = hashCode * 59 + Unit.GetHashCode();
         }
         if (DeactivatedOn != null)
         {
             hashCode = hashCode * 59 + DeactivatedOn.GetHashCode();
         }
         if (IsDeactivated != null)
         {
             hashCode = hashCode * 59 + IsDeactivated.GetHashCode();
         }
         if (CompanyCodeCurrency != null)
         {
             hashCode = hashCode * 59 + CompanyCodeCurrency.GetHashCode();
         }
         if (AssetNumber != null)
         {
             hashCode = hashCode * 59 + AssetNumber.GetHashCode();
         }
         if (SubNumber != null)
         {
             hashCode = hashCode * 59 + SubNumber.GetHashCode();
         }
         if (CompanyCode != null)
         {
             hashCode = hashCode * 59 + CompanyCode.GetHashCode();
         }
         return(hashCode);
     }
 }