Example #1
0
        public override int GetHashCode()
        {
            var hashCode = -1079360070;

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

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

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

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

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

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

            return(hashCode);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (IsSimple != false)
            {
                hash ^= IsSimple.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= sampleList_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }