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); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Zipcode != null) { hashCode = hashCode * 59 + Zipcode.GetHashCode(); } if (Day != null) { hashCode = hashCode * 59 + Day.GetHashCode(); } if (High != null) { hashCode = hashCode * 59 + High.GetHashCode(); } if (Low != null) { hashCode = hashCode * 59 + Low.GetHashCode(); } if (Detail != null) { hashCode = hashCode * 59 + Detail.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (City != null ? City.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StateName != null ? StateName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Zipcode != null ? Zipcode.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (StreetAndNumber != null ? StreetAndNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Zipcode != null ? Zipcode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (CardNumber.Length != 0) { hash ^= CardNumber.GetHashCode(); } if (Cvc.Length != 0) { hash ^= Cvc.GetHashCode(); } if (ExpiryMonth != 0) { hash ^= ExpiryMonth.GetHashCode(); } if (FourDigitExpiryYear != 0) { hash ^= FourDigitExpiryYear.GetHashCode(); } if (Zipcode.Length != 0) { hash ^= Zipcode.GetHashCode(); } if (CardholderName.Length != 0) { hash ^= CardholderName.GetHashCode(); } if (IsVirtualCard != false) { hash ^= IsVirtualCard.GetHashCode(); } if (virtualCardLimit_ != null) { hash ^= VirtualCardLimit.GetHashCode(); } if (virtualCardAvailableOn_ != null) { hash ^= VirtualCardAvailableOn.GetHashCode(); } if (virtualCardExpiresOn_ != null) { hash ^= VirtualCardExpiresOn.GetHashCode(); } return(hash); }