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

            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (EventType != 0)
            {
                hash ^= EventType.GetHashCode();
            }
            if (TimeUnit != 0)
            {
                hash ^= TimeUnit.GetHashCode();
            }
            if (timeLength_ != null)
            {
                hash ^= TimeLength.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Level != global::Google.Ads.GoogleAds.V7.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel.Unspecified)
            {
                hash ^= Level.GetHashCode();
            }
            if (EventType != global::Google.Ads.GoogleAds.V7.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType.Unspecified)
            {
                hash ^= EventType.GetHashCode();
            }
            if (TimeUnit != global::Google.Ads.GoogleAds.V7.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit.Unspecified)
            {
                hash ^= TimeUnit.GetHashCode();
            }
            if (HasTimeLength)
            {
                hash ^= TimeLength.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #3
0
    public void GetHashCode(long value)
    {
        int      expected = value.GetHashCode();
        TimeUnit x        = new TimeUnit(value);

        Assert.AreEqual(expected, x.GetHashCode(), "A10:");
    }
Exemple #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((_length * 397) ^ _timeUnit.GetHashCode());
     }
 }
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TimeUnit.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeToLive.GetHashCode();
         hashCode = (hashCode * 397) ^ Unlimited.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = PrintUnitsInHeader.GetHashCode();
         hashCode = (hashCode * 397) ^ PrintUnitsInContent.GetHashCode();
         hashCode = (hashCode * 397) ^ PrintZeroValuesInContent.GetHashCode();
         hashCode = (hashCode * 397) ^ (SizeUnit != null ? SizeUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TimeUnit != null ? TimeUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MaxParameterColumnWidth;
         return(hashCode);
     }
 }
Exemple #7
0
        public override int GetHashCode()
        {
            var hashCode = 434083080;

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

            hashCode = hashCode * -1521134295 + EqualityComparer <pain00100103_ct_data> .Default.GetHashCode(SepaData);

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

            hashCode = hashCode * -1521134295 + ExecutionDay.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hashCode = -1167462471;

            if (CustomUnit != null)
            {
                hashCode += CustomUnit.GetHashCode();
            }

            if (AreaUnit != null)
            {
                hashCode += AreaUnit.GetHashCode();
            }

            if (LengthUnit != null)
            {
                hashCode += LengthUnit.GetHashCode();
            }

            if (VolumeUnit != null)
            {
                hashCode += VolumeUnit.GetHashCode();
            }

            if (WeightUnit != null)
            {
                hashCode += WeightUnit.GetHashCode();
            }

            if (GenericUnit != null)
            {
                hashCode += GenericUnit.GetHashCode();
            }

            if (TimeUnit != null)
            {
                hashCode += TimeUnit.GetHashCode();
            }

            if (Type != null)
            {
                hashCode += Type.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 (Period != null)
         {
             hashCode = hashCode * 59 + Period.GetHashCode();
         }
         if (TimeUnit != null)
         {
             hashCode = hashCode * 59 + TimeUnit.GetHashCode();
         }
         if (Level != null)
         {
             hashCode = hashCode * 59 + Level.GetHashCode();
         }
         if (LoggerName != null)
         {
             hashCode = hashCode * 59 + LoggerName.GetHashCode();
         }
         if (Prefix != null)
         {
             hashCode = hashCode * 59 + Prefix.GetHashCode();
         }
         if (Pattern != null)
         {
             hashCode = hashCode * 59 + Pattern.GetHashCode();
         }
         if (RegistryName != null)
         {
             hashCode = hashCode * 59 + RegistryName.GetHashCode();
         }
         return(hashCode);
     }
 }