Ejemplo 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);
    }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
     }
 }
Ejemplo 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);
        }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     return
         (Position.GetHashCode() ^
          ActorSNO.GetHashCode() ^
          InternalName.GetHashCode() ^
          WorldId.GetHashCode() ^
          Quality.GetHashCode() ^
          Level.GetHashCode());
 }
Ejemplo 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);
     }
 }
Ejemplo 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);
        }
Ejemplo n.º 10
0
 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);
     }
 }
Ejemplo 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);
     }
 }
Ejemplo 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);
        }
Ejemplo 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);
    }
Ejemplo 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());
 }
Ejemplo n.º 17
0
 public override int GetHashCode()
 {
     return(VideoId.GetHashCode() ^ Quality.GetHashCode());
 }
Ejemplo n.º 18
0
 public override int GetHashCode()
 {
     return(Quality.GetHashCode());
 }