Exemplo n.º 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);
    }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            var hashCode = -531220479;

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

            hashCode = hashCode * -1521134295 + Num.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
    }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 18
0
 public override int GetHashCode()
 {
     return(Num.GetHashCode());
 }
Exemplo n.º 19
0
 public override int GetHashCode()
 {
     return(Num.GetHashCode() * Denum.GetHashCode() + Num / Denum);
 }
Exemplo n.º 20
0
 public override int GetHashCode()
 {
     return(Num.GetHashCode() ^ DayOfWeek.GetHashCode());
 }
Exemplo n.º 21
0
 internal override int HashCode()
 {
     return(Num.GetHashCode());
 }