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

            if (ItemId != 0L)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ImageId.Length != 0)
            {
                hash ^= ImageId.GetHashCode();
            }
            if (Stars != 0)
            {
                hash ^= Stars.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Role != 0)
            {
                hash ^= Role.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            var hashCode = 342751480;

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

            hashCode = hashCode * -1521134295 + Scores.GetHashCode();
            hashCode = hashCode * -1521134295 + Stars.GetHashCode();
            hashCode = hashCode * -1521134295 + Ranked.GetHashCode();
            return(hashCode);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Id.GetHashCode();
                hashCode = (hashCode * 397) ^ Time.GetHashCode();
                hashCode = (hashCode * 397) ^ SellerId.GetHashCode();
                hashCode = (hashCode * 397) ^ Stars.GetHashCode();

                return(hashCode);
            }
        }