public override int GetHashCode()
 {
     unchecked
     {
         return(((Ns != null ? Ns.GetHashCode() : 0) * 397) ^ (Name != null ? Name.GetHashCode() : 0));
     }
 }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ns.Length != 0)
            {
                hash ^= Ns.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Kind != 0)
            {
                hash ^= Kind.GetHashCode();
            }
            if (Value != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
            }
            if (count_ != null)
            {
                hash ^= Count.GetHashCode();
            }
            if (min_ != null)
            {
                hash ^= Min.GetHashCode();
            }
            if (max_ != null)
            {
                hash ^= Max.GetHashCode();
            }
            if (stdDev_ != null)
            {
                hash ^= StdDev.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }