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); } }