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

            if (Line1.Length != 0)
            {
                hash ^= Line1.GetHashCode();
            }
            if (HasLine2)
            {
                hash ^= Line2.GetHashCode();
            }
            if (HasCity)
            {
                hash ^= City.GetHashCode();
            }
            if (Zipcode != 0L)
            {
                hash ^= Zipcode.GetHashCode();
            }
            if (State.Length != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return((Line1.GetHashCode() * 397) ^ Line2.GetHashCode());
     }
 }
Example #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Id.GetHashCode();
         result = (result * 397) ^ (Line1 != null ? Line1.GetHashCode() : 0);
         result = (result * 397) ^ (Line2 != null ? Line2.GetHashCode() : 0);
         result = (result * 397) ^ (Location != null ? Location.GetHashCode() : 0);
         return(result);
     }
 }
Example #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Line1 != null ? Line1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Line2 != null ? Line2.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);
     }
 }
Example #5
0
        public override int GetHashCode()
        {
            var hashCode = Name.GetHashCode();

            hashCode = hashCode * 37 ^ Line1.GetHashCode();
            hashCode = hashCode * 37 ^ Line2.GetHashCode();
            hashCode = hashCode * 37 ^ City.GetHashCode();
            hashCode = hashCode * 37 ^ State.GetHashCode();
            hashCode = hashCode * 37 ^ ZipCode.GetHashCode();
            hashCode = hashCode * 37 ^ Country.GetHashCode();

            return(hashCode);
        }
Example #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Line1.GetHashCode();
         result = (result * 397) ^ (Line2 != null ?
                                    Line2.GetHashCode() : 0);
         result = (result * 397) ^ ZipCode.GetHashCode();
         result = (result * 397) ^ City.GetHashCode();
         result = (result * 397) ^ State.GetHashCode();
         return(result);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = Line1 != null?Line1.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Line2 != null ? Line2.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Line3 != null ? Line3.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Line4 != null ? Line4.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
                return(hashCode);
            }
        }