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

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Fall.Length != 0)
            {
                hash ^= Fall.GetHashCode();
            }
            if (geolocation_ != null)
            {
                hash ^= Geolocation.GetHashCode();
            }
            if (Mass != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Mass);
            }
            if (Nametype.Length != 0)
            {
                hash ^= Nametype.GetHashCode();
            }
            if (Recclass.Length != 0)
            {
                hash ^= Recclass.GetHashCode();
            }
            if (Reclat != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Reclat);
            }
            if (Reclong != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Reclong);
            }
            if (year_ != null)
            {
                hash ^= Year.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }