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

            if (ProfileId.Length != 0)
            {
                hash ^= ProfileId.GetHashCode();
            }
            if (ProposalId.Length != 0)
            {
                hash ^= ProposalId.GetHashCode();
            }
            if (ResultId.Length != 0)
            {
                hash ^= ResultId.GetHashCode();
            }
            if (matchObject_ != null)
            {
                hash ^= MatchObject.GetHashCode();
            }
            if (Timestamp.Length != 0)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            var prime1 = 108301;
            var prime2 = 150151;

            unchecked
            {
                var hash = prime1; // random big prime number
                hash = (hash * prime2) ^ UserId.GetHashCode();
                hash = (hash * prime2) ^ ResultId.GetHashCode();
                return(hash);
            }
        }