Esempio n. 1
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (value_ != null)
        {
            hash ^= Value.GetHashCode();
        }
        if (Quality != 0)
        {
            hash ^= Quality.GetHashCode();
        }
        if (timestamp_ != null)
        {
            hash ^= Timestamp.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Quality != 0)
            {
                hash ^= Quality.GetHashCode();
            }
            if (Attack != 0)
            {
                hash ^= Attack.GetHashCode();
            }
            if (Defend != 0)
            {
                hash ^= Defend.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DefName.Length != 0)
            {
                hash ^= DefName.GetHashCode();
            }
            if (StackCount != 0)
            {
                hash ^= StackCount.GetHashCode();
            }
            if (StuffDefName.Length != 0)
            {
                hash ^= StuffDefName.GetHashCode();
            }
            if (Quality != global::Trading.Quality.Awful)
            {
                hash ^= Quality.GetHashCode();
            }
            if (HitPoints != 0)
            {
                hash ^= HitPoints.GetHashCode();
            }
            if (innerProtoThing_ != null)
            {
                hash ^= InnerProtoThing.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DefName.Length != 0)
            {
                hash ^= DefName.GetHashCode();
            }
            if (StackCount != 0)
            {
                hash ^= StackCount.GetHashCode();
            }
            if (StuffDefName.Length != 0)
            {
                hash ^= StuffDefName.GetHashCode();
            }
            if (Quality != 0)
            {
                hash ^= Quality.GetHashCode();
            }
            if (HitPoints != 0)
            {
                hash ^= HitPoints.GetHashCode();
            }
            if (innerProtoThing_ != null)
            {
                hash ^= InnerProtoThing.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         if (ImageData != null)
         {
             hashCode = hashCode * 59 + ImageData.GetHashCode();
         }
         if (ImageFileId != null)
         {
             hashCode = hashCode * 59 + ImageFileId.GetHashCode();
         }
         hashCode = hashCode * 59 + Quality.GetHashCode();
         hashCode = hashCode * 59 + ColorImageCompression.GetHashCode();
         hashCode = hashCode * 59 + BitonalCompression.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 6
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + (Item == null ? Item.GetHashCode() : 0);
            hash = (hash * 7) + Type.GetHashCode();
            hash = (hash * 7) + Quality.GetHashCode();
            return(hash);
        }
Esempio n. 7
0
 public override int GetHashCode()
 {
     return
         (Position.GetHashCode() ^
          ActorSNO.GetHashCode() ^
          InternalName.GetHashCode() ^
          WorldId.GetHashCode() ^
          Quality.GetHashCode() ^
          Level.GetHashCode());
 }
Esempio n. 8
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         hash = hash * 23 + Proper.GetHashCode();
         hash = hash * 23 + Quality.GetHashCode();
         return(hash);
     }
 }
Esempio n. 9
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + (Item == null ? Item.GetHashCode() : 0);
            hash = (hash * 7) + Type.GetHashCode();
            hash = (hash * 7) + Quality.GetHashCode();
            hash = (hash * 7) + Width.GetHashCode();
            hash = (hash * 7) + Height.GetHashCode();
            hash = (hash * 7) + MaintainAspect.GetHashCode();
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var result = 17;
         result = result * 23 + RootNoteName.GetHashCode();
         result = result * 23 + (Quality?.GetHashCode() ?? 0);
         result = result * 23 + (BassNoteName?.GetHashCode() ?? 0);
         result = result * 23 + (ExtensionInterval?.GetHashCode() ?? 0);
         result = result * 23 + (AddedToneIntervals.FirstOrDefault()?.GetHashCode() ?? 0);
         result = result * 23 + (AlteredIntervals.FirstOrDefault()?.GetHashCode() ?? 0);
         result = result * 23 + (SuspensionIntervalNumber?.GetHashCode() ?? 0);
         result = result * 23 + SeventhQuality.GetHashCode();
         return(result);
     }
 }
Esempio n. 11
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         hashCode = hashCode * 59 + Quality.GetHashCode();
         hashCode = hashCode * 59 + Progressive.GetHashCode();
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         hashCode = hashCode * 59 + Quality.GetHashCode();
         hashCode = hashCode * 59 + Progressive.GetHashCode();
         hashCode = hashCode * 59 + Resolution.GetHashCode();
         hashCode = hashCode * 59 + RenderFormFields.GetHashCode();
         hashCode = hashCode * 59 + KeepRasterPDFResolution.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Quality != 0)
            {
                hash ^= Quality.GetHashCode();
            }
            if (IsBoss != false)
            {
                hash ^= IsBoss.GetHashCode();
            }
            if (CollectionFamilyGmtId.Length != 0)
            {
                hash ^= CollectionFamilyGmtId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 14
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (Quality.Length != 0)
        {
            hash ^= Quality.GetHashCode();
        }
        if (Price != 0)
        {
            hash ^= Price.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Esempio n. 15
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Size != 0)
            {
                hash ^= Size.GetHashCode();
            }
            if (Value.Length != 0)
            {
                hash ^= Value.GetHashCode();
            }
            if (Time != 0L)
            {
                hash ^= Time.GetHashCode();
            }
            if (Quality != 0)
            {
                hash ^= Quality.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (Unit != 0)
            {
                hash ^= Unit.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     return(Value.ToLowerInvariant().GetHashCode() ^ Quality.GetHashCode());
 }
Esempio n. 17
0
 public override int GetHashCode()
 {
     return(VideoId.GetHashCode() ^ Quality.GetHashCode());
 }
Esempio n. 18
0
 public override int GetHashCode()
 {
     return(Quality.GetHashCode());
 }