예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProductName.Length != 0)
            {
                hash ^= ProductName.GetHashCode();
            }
            if (ProductType.Length != 0)
            {
                hash ^= ProductType.GetHashCode();
            }
            if (ProductDesc.Length != 0)
            {
                hash ^= ProductDesc.GetHashCode();
            }
            if (Price != 0)
            {
                hash ^= Price.GetHashCode();
            }
            if (UserName.Length != 0)
            {
                hash ^= UserName.GetHashCode();
            }
            if (UserWelcome.Length != 0)
            {
                hash ^= UserWelcome.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (ProductId.Length != 0)
            {
                hash ^= ProductId.GetHashCode();
            }
            if (ProductName.Length != 0)
            {
                hash ^= ProductName.GetHashCode();
            }
            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            if (UnitPrice != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(UnitPrice);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int hashId   = ProductId.GetHashCode();
            int hashDesc = ProductName == null ? 0 : ProductName.GetHashCode();

            return(hashId ^ hashDesc);
        }
예제 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (ProductName.Length != 0)
            {
                hash ^= ProductName.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Amount != 0)
            {
                hash ^= Amount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #5
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (UniqueId.Length != 0)
        {
            hash ^= UniqueId.GetHashCode();
        }
        if (SettingJSON.Length != 0)
        {
            hash ^= SettingJSON.GetHashCode();
        }
        if (ProductName.Length != 0)
        {
            hash ^= ProductName.GetHashCode();
        }
        if (Status.Length != 0)
        {
            hash ^= Status.GetHashCode();
        }
        if (UseDeadTime.Length != 0)
        {
            hash ^= UseDeadTime.GetHashCode();
        }
        if (Address.Length != 0)
        {
            hash ^= Address.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
예제 #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AgentID;
         hashCode = (hashCode * 397) ^ (MachineID != null ? MachineID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DeviceGuid != null ? DeviceGuid.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CustomerID;
         hashCode = (hashCode * 397) ^ (CustomerName != null ? CustomerName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ FolderID.GetHashCode();
         hashCode = (hashCode * 397) ^ (AgentName != null ? AgentName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SystemName != null ? SystemName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MachineName != null ? MachineName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DomainName != null ? DomainName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CurrentLoggedUsers != null ? CurrentLoggedUsers.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ComputerDescription != null ? ComputerDescription.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Monitored.GetHashCode();
         hashCode = (hashCode * 397) ^ LastPatchManagementReceived.GetHashCode();
         hashCode = (hashCode * 397) ^ (AgentVersion != null ? AgentVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Favorite.GetHashCode();
         hashCode = (hashCode * 397) ^ ThresholdID.GetHashCode();
         hashCode = (hashCode * 397) ^ MonitoredAgentID.GetHashCode();
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ Modified.GetHashCode();
         hashCode = (hashCode * 397) ^ Online.GetHashCode();
         hashCode = (hashCode * 397) ^ (ReportedFromIP != null ? ReportedFromIP.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AppViewUrl != null ? AppViewUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Motherboard != null ? Motherboard.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Processor != null ? Processor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Memory.GetHashCode();
         hashCode = (hashCode * 397) ^ (Display != null ? Display.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Sound != null ? Sound.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ProcessorCoresCount.GetHashCode();
         hashCode = (hashCode * 397) ^ (SystemDrive != null ? SystemDrive.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProcessorClock != null ? ProcessorClock.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Vendor != null ? Vendor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VendorSerialNumber != null ? VendorSerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VendorBrandModel != null ? VendorBrandModel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProductName != null ? ProductName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OS != null ? OS.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OSType != null ? OSType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OSVersion != null ? OSVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OSBuild != null ? OSBuild.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WindowsSerialNumber != null ? WindowsSerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Office != null ? Office.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OfficeSP != null ? OfficeSP.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OfficeOEM.GetHashCode();
         hashCode = (hashCode * 397) ^ (OfficeSerialNumber != null ? OfficeSerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OfficeFullVersion != null ? OfficeFullVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastLoginUser != null ? LastLoginUser.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HardwareDisks?.Sum(x => x.GetHashCode()) ?? 0);
         hashCode = (hashCode * 397) ^ (MacAddresses?.Sum(x => x.GetHashCode()) ?? 0);
         hashCode = (hashCode * 397) ^ (IpAddresses?.Sum(x => x.GetHashCode()) ?? 0);
         return(hashCode);
     }
 }
예제 #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ProductId?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ProductName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ UnitPriceInCents;
         return(hashCode);
     }
 }
예제 #8
0
 public override int GetHashCode()
 {
     return(0x1D11842C
            ^ (ProductName != null ? ProductName.GetHashCode() : 0)
            ^ (ComponentName != null ? ComponentName.GetHashCode() : 0)
            ^ (ComponentEdition != null ? ComponentEdition.GetHashCode() : 0)
            ^ (ComponentVersion != null ? ComponentVersion.GetHashCode() : 0)
            ^ (ComponentVersionSuffix != null ? ComponentVersionSuffix.GetHashCode() : 0)
            ^ (ComponentRelease != null ? ComponentRelease.GetHashCode() : 0));
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = OrderNumber;
         hashCode = (hashCode * 397) ^ (ProductName != null ? ProductName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Price.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalItem;
         return(hashCode);
     }
 }
예제 #10
0
        public override int GetHashCode()
        {
            //Get hash code for the Name field if it is not null.
            var hashProductName = ProductName == null ? 0 : ProductName.GetHashCode();

            //Get hash code for the Code field.
            var hashProductCode = CategoryIdentifier.GetHashCode();

            //Calculate the hash code for the product.
            return(hashProductName ^ hashProductCode);
        }
예제 #11
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = ProductId;
         result = (result * 397) ^ (ProductName != null ? ProductName.GetHashCode() : 0);
         result = (result * 397) ^ (SupplierName != null ? SupplierName.GetHashCode() : 0);
         result = (result * 397) ^ Cost.GetHashCode();
         return(result);
     }
 }
예제 #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ ConfiguredSemVersion.GetHashCode();
         hashCode = (hashCode * 397) ^ MigrationContext.GetHashCode();
         hashCode = (hashCode * 397) ^ ProductName.GetHashCode();
         hashCode = (hashCode * 397) ^ TargetSemVersion.GetHashCode();
         return(hashCode);
     }
 }
 /// <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 (DiscountAmount != null)
         {
             hashCode = hashCode * 59 + DiscountAmount.GetHashCode();
         }
         if (GoogleProductCategoryId != null)
         {
             hashCode = hashCode * 59 + GoogleProductCategoryId.GetHashCode();
         }
         if (LineAmountTotal != null)
         {
             hashCode = hashCode * 59 + LineAmountTotal.GetHashCode();
         }
         if (ProductCategory != null)
         {
             hashCode = hashCode * 59 + ProductCategory.GetHashCode();
         }
         if (ProductCode != null)
         {
             hashCode = hashCode * 59 + ProductCode.GetHashCode();
         }
         if (ProductName != null)
         {
             hashCode = hashCode * 59 + ProductName.GetHashCode();
         }
         if (ProductPrice != null)
         {
             hashCode = hashCode * 59 + ProductPrice.GetHashCode();
         }
         if (ProductType != null)
         {
             hashCode = hashCode * 59 + ProductType.GetHashCode();
         }
         if (Quantity != null)
         {
             hashCode = hashCode * 59 + Quantity.GetHashCode();
         }
         if (TaxAmount != null)
         {
             hashCode = hashCode * 59 + TaxAmount.GetHashCode();
         }
         if (Unit != null)
         {
             hashCode = hashCode * 59 + Unit.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #14
0
        public override int GetHashCode()
        {
            var messageTopicValue = (int)MessageTopic + 1;

            if (Math.Abs(messageTopicValue) < 2)
            {
                messageTopicValue += 3;
            }
            var messageTypeValue = (int)MessageType + 1;
            var productNameValue = ProductName.GetHashCode() + 1;

            var result = (int)Math.Pow(messageTopicValue, messageTypeValue) * productNameValue;

            return(result);
        }
예제 #15
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.productType)
            {
                hashcode = (hashcode * 397) + ProductType.GetHashCode();
            }
            if (__isset.productName)
            {
                hashcode = (hashcode * 397) + ProductName.GetHashCode();
            }
            if (__isset.unit)
            {
                hashcode = (hashcode * 397) + Unit.GetHashCode();
            }
            if (__isset.limitedPaidBalance)
            {
                hashcode = (hashcode * 397) + LimitedPaidBalance.GetHashCode();
            }
            if (__isset.limitedFreeBalance)
            {
                hashcode = (hashcode * 397) + LimitedFreeBalance.GetHashCode();
            }
            if (__isset.unlimitedPaidBalance)
            {
                hashcode = (hashcode * 397) + UnlimitedPaidBalance.GetHashCode();
            }
            if (__isset.unlimitedFreeBalance)
            {
                hashcode = (hashcode * 397) + UnlimitedFreeBalance.GetHashCode();
            }
            if (__isset.startTime)
            {
                hashcode = (hashcode * 397) + StartTime.GetHashCode();
            }
            if (__isset.endTime)
            {
                hashcode = (hashcode * 397) + EndTime.GetHashCode();
            }
            if (__isset.autopayEnabled)
            {
                hashcode = (hashcode * 397) + AutopayEnabled.GetHashCode();
            }
        }
        return(hashcode);
    }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (ProductName != null ? ProductName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SupplierId;
         hashCode = (hashCode * 397) ^ CategoryId;
         hashCode = (hashCode * 397) ^ (QuantityPerUnit != null ? QuantityPerUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UnitPrice.GetHashCode();
         hashCode = (hashCode * 397) ^ UnitsInStock.GetHashCode();
         hashCode = (hashCode * 397) ^ UnitsOnOrder.GetHashCode();
         hashCode = (hashCode * 397) ^ ReorderLevel.GetHashCode();
         hashCode = (hashCode * 397) ^ Discontinued.GetHashCode();
         return(hashCode);
     }
 }
예제 #17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProductName.Length != 0)
            {
                hash ^= ProductName.GetHashCode();
            }
            if (ProductPrice != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ProductPrice);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #18
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current <see cref="T:System.Object"/>.</returns>
 public override int GetHashCode()
 {
     return(Architecture.GetHashCode()
            ^ Bootable.GetHashCode()
            ^ CustomizedInfo.GetHashCode()
            ^ DefaultLanguageIndex
            ^ (String.IsNullOrEmpty(EditionId) ? 0 : EditionId.GetHashCode())
            ^ (String.IsNullOrEmpty(Hal) ? 0 : Hal.GetHashCode())
            ^ (String.IsNullOrEmpty(ImageDescription) ? 0 : ImageDescription.GetHashCode())
            ^ ImageIndex.GetHashCode()
            ^ ImageType.GetHashCode()
            ^ (String.IsNullOrEmpty(InstallationType) ? 0 : InstallationType.GetHashCode())
            ^ Languages.GetHashCode()
            ^ (String.IsNullOrEmpty(ProductName) ? 0 : ProductName.GetHashCode())
            ^ (String.IsNullOrEmpty(ProductSuite) ? 0 : ProductSuite.GetHashCode())
            ^ (String.IsNullOrEmpty(ProductType) ? 0 : ProductType.GetHashCode())
            ^ ProductVersion.GetHashCode()
            ^ SpLevel.GetHashCode()
            ^ (String.IsNullOrEmpty(SystemRoot) ? 0 : SystemRoot.GetHashCode()));
 }
예제 #19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProductId != 0L)
            {
                hash ^= ProductId.GetHashCode();
            }
            if (ProductName.Length != 0)
            {
                hash ^= ProductName.GetHashCode();
            }
            if (UserId != 0L)
            {
                hash ^= UserId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #20
0
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (RequestPath?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Message?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RequestId?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RequestMethod?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ElapsedMsecs?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (IP?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Service?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Operation?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (StatusCode?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Timestamp?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Username?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RequestUri?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClientId?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClientName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ProductName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RequestLogKey?.GetHashCode() ?? 0);
            return(hashCode);
        }
예제 #21
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ref.Length != 0)
            {
                hash ^= Ref.GetHashCode();
            }
            if (ProductName.Length != 0)
            {
                hash ^= ProductName.GetHashCode();
            }
            if (Value.Length != 0)
            {
                hash ^= Value.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #22
0
 /// <summary>
 /// Получить числовое значение продукта
 /// </summary>
 /// <returns>Возвращает Hash Code продукта</returns>
 public override int GetHashCode()
 {
     return(CompositionList.GetHashCode() + Calories.GetHashCode() + Price.GetHashCode() + MarginCoefficient.GetHashCode() + CategoryName.GetHashCode() + ProductName.GetHashCode());
 }
예제 #23
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.dialedNumber)
            {
                hashcode = (hashcode * 397) + DialedNumber.GetHashCode();
            }
            if (__isset.serviceDomain)
            {
                hashcode = (hashcode * 397) + ServiceDomain.GetHashCode();
            }
            if (__isset.productType)
            {
                hashcode = (hashcode * 397) + ProductType.GetHashCode();
            }
            if (__isset.productName)
            {
                hashcode = (hashcode * 397) + ProductName.GetHashCode();
            }
            if (__isset.multipleProduct)
            {
                hashcode = (hashcode * 397) + MultipleProduct.GetHashCode();
            }
            if (__isset.callerIdStatus)
            {
                hashcode = (hashcode * 397) + CallerIdStatus.GetHashCode();
            }
            if (__isset.balance)
            {
                hashcode = (hashcode * 397) + Balance.GetHashCode();
            }
            if (__isset.unit)
            {
                hashcode = (hashcode * 397) + Unit.GetHashCode();
            }
            if (__isset.rate)
            {
                hashcode = (hashcode * 397) + Rate.GetHashCode();
            }
            if (__isset.displayCode)
            {
                hashcode = (hashcode * 397) + DisplayCode.GetHashCode();
            }
            if (__isset.calledNumber)
            {
                hashcode = (hashcode * 397) + CalledNumber.GetHashCode();
            }
            if (__isset.calleeNationalNumber)
            {
                hashcode = (hashcode * 397) + CalleeNationalNumber.GetHashCode();
            }
            if (__isset.calleeCallingCode)
            {
                hashcode = (hashcode * 397) + CalleeCallingCode.GetHashCode();
            }
            if (__isset.rateDivision)
            {
                hashcode = (hashcode * 397) + RateDivision.GetHashCode();
            }
            if (__isset.adMaxMin)
            {
                hashcode = (hashcode * 397) + AdMaxMin.GetHashCode();
            }
            if (__isset.adRemains)
            {
                hashcode = (hashcode * 397) + AdRemains.GetHashCode();
            }
            if (__isset.adSessionId)
            {
                hashcode = (hashcode * 397) + AdSessionId.GetHashCode();
            }
        }
        return(hashcode);
    }
예제 #24
0
 public override int GetHashCode()
 {
     return(ProductName.GetHashCode() + Quantity.GetHashCode() + Price.GetHashCode());
 }
예제 #25
0
 public override int GetHashCode()
 {
     return(ProductName != null?ProductName.GetHashCode() : 0);
 }
예제 #26
0
 // override object.GetHashCode
 public override int GetHashCode()
 {
     return(ProductName.GetHashCode() + ItemId.GetHashCode());
 }
예제 #27
0
 public override int GetHashCode()
 {
     return(ProductName.GetHashCode() * Number.GetHashCode());
 }
예제 #28
0
 public override int GetHashCode() =>
 HomeId.GetHashCode() ^ Name.GetHashCode() ^ ProductName.GetHashCode() ^ Id.GetHashCode();
예제 #29
0
 public override int GetHashCode()
 {
     return(ProductName.GetHashCode() ^ Price.GetHashCode());
 }