Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (StreetAddress != null ? StreetAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Locality != null ? Locality.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Region != null ? Region.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CountryName != null ? CountryName.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (StreetAddress != null ? StreetAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Zip != null ? Zip.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (StreetAddress.Length != 0)
            {
                hash ^= StreetAddress.GetHashCode();
            }
            if (City.Length != 0)
            {
                hash ^= City.GetHashCode();
            }
            if (Zip.Length != 0)
            {
                hash ^= Zip.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = TypeOfAddress.GetHashCode();

            if (StreetAddress != null)
            {
                hash += StreetAddress.GetHashCode();
            }
            if (City != null)
            {
                hash += City.GetHashCode();
            }
            if (State != null)
            {
                hash += State.GetHashCode();
            }
            if (PostalCode != null)
            {
                hash += PostalCode.GetHashCode();
            }

            return(hash);
        }
Esempio n. 5
0
 public override int GetHashCode()
 => StreetAddress.GetHashCode()
 ^ Cep.GetHashCode()
 ^ City.GetHashCode()
 ^ UF.GetHashCode();