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

        if (Id != 0)
        {
            hash ^= Id.GetHashCode();
        }
        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (Num != 0)
        {
            hash ^= Num.GetHashCode();
        }
        if (Price != 0D)
        {
            hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Exemple #2
0
        // не может быть, что у одного значения при разных вызовах - разные хеш коды
        public override int GetHashCode()
        {
            // ^ - наложение маски , данный пример не будет различать переврнутые дроби
            //return Num.GetHashCode() ^ Denum.GetHashCode();

            return(Num.GetHashCode() ^ Denum.GetHashCode() + Num / Denum);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceId != 0)
            {
                hash ^= ResourceId.GetHashCode();
            }
            if (Resource != 0)
            {
                hash ^= Resource.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (CurrentNum != 0)
            {
                hash ^= CurrentNum.GetHashCode();
            }
            if (ActivityId != 0)
            {
                hash ^= ActivityId.GetHashCode();
            }
            return(hash);
        }
Exemple #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AppearType != 0)
            {
                hash ^= AppearType.GetHashCode();
            }
            if (Rate != 0F)
            {
                hash ^= Rate.GetHashCode();
            }
            if (Time != 0F)
            {
                hash ^= Time.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (Interval != 0F)
            {
                hash ^= Interval.GetHashCode();
            }
            return(hash);
        }
Exemple #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ActionId != 0)
            {
                hash ^= ActionId.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (T0 != 0L)
            {
                hash ^= T0.GetHashCode();
            }
            if (T1 != 0L)
            {
                hash ^= T1.GetHashCode();
            }
            if (T2 != 0L)
            {
                hash ^= T2.GetHashCode();
            }
            if (T3 != 0L)
            {
                hash ^= T3.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            var hashCode = -531220479;

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

            hashCode = hashCode * -1521134295 + Num.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            var hashCode = 2036580019;

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

            hashCode = hashCode * -1521134295 + price.GetHashCode();
            return(hashCode);
        }
Exemple #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasNum)
            {
                hash ^= Num.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Num != 0L)
            {
                hash ^= Num.GetHashCode();
            }
            if (bar_ != null)
            {
                hash ^= Bar.GetHashCode();
            }
            hash ^= bars_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (CardId != 0)
            {
                hash ^= CardId.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (Star != 0)
            {
                hash ^= Star.GetHashCode();
            }
            if (Evolution != 0)
            {
                hash ^= Evolution.GetHashCode();
            }
            if (UseEvo != 0)
            {
                hash ^= UseEvo.GetHashCode();
            }
            if (MemoriesNum != 0)
            {
                hash ^= MemoriesNum.GetHashCode();
            }
            return(hash);
        }
Exemple #11
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Type.GetHashCode();
                if ((Rows != null) && __isset.rows)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Rows);
                }
                if (__isset.num)
                {
                    hashcode = (hashcode * 397) + Num.GetHashCode();
                }
                if ((Schema != null) && __isset.schema)
                {
                    hashcode = (hashcode * 397) + Schema.GetHashCode();
                }
            }
            return(hashcode);
        }
Exemple #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BuyType != 0)
            {
                hash ^= BuyType.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (Gem != 0)
            {
                hash ^= Gem.GetHashCode();
            }
            if (Amount != 0)
            {
                hash ^= Amount.GetHashCode();
            }
            return(hash);
        }
Exemple #13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SignatureId != 0)
            {
                hash ^= SignatureId.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (CreateTime != 0L)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (LastModifyTime != 0L)
            {
                hash ^= LastModifyTime.GetHashCode();
            }
            return(hash);
        }
Exemple #14
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (OrderId.Length != 0)
        {
            hash ^= OrderId.GetHashCode();
        }
        if (Num != 0L)
        {
            hash ^= Num.GetHashCode();
        }
        if (Timestamp != 0)
        {
            hash ^= Timestamp.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Exemple #15
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (Adsa != 0)
            {
                hash ^= Adsa.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MallId != 0)
            {
                hash ^= MallId.GetHashCode();
            }
            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (MoneyType != 0)
            {
                hash ^= MoneyType.GetHashCode();
            }
            if (IteamDes.Length != 0)
            {
                hash ^= IteamDes.GetHashCode();
            }
            if (UseDes.Length != 0)
            {
                hash ^= UseDes.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (Price != 0)
            {
                hash ^= Price.GetHashCode();
            }
            if (MaxNum != 0)
            {
                hash ^= MaxNum.GetHashCode();
            }
            return(hash);
        }
Exemple #17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            hash ^= myList_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #18
0
 public override int GetHashCode()
 {
     return(Num.GetHashCode());
 }
Exemple #19
0
 public override int GetHashCode()
 {
     return(Num.GetHashCode() * Denum.GetHashCode() + Num / Denum);
 }
Exemple #20
0
 public override int GetHashCode()
 {
     return(Num.GetHashCode() ^ DayOfWeek.GetHashCode());
 }
Exemple #21
0
 internal override int HashCode()
 {
     return(Num.GetHashCode());
 }