/// <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 (Payer != null) { hashCode = hashCode * 59 + Payer.GetHashCode(); } if (Payee != null) { hashCode = hashCode * 59 + Payee.GetHashCode(); } if (ExtensionUType != null) { hashCode = hashCode * 59 + ExtensionUType.GetHashCode(); } if (ExtendedDescription != null) { hashCode = hashCode * 59 + ExtendedDescription.GetHashCode(); } if (ServiceId != null) { hashCode = hashCode * 59 + ServiceId.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Payee.Length != 0) { hash ^= Payee.GetHashCode(); } if (Payer.Length != 0) { hash ^= Payer.GetHashCode(); } if (Amount != 0) { hash ^= Amount.GetHashCode(); } if (forProperty_ != null) { hash ^= ForProperty.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Payer.Length != 0) { hash ^= Payer.GetHashCode(); } hash ^= payments_.GetHashCode(); if (MyCurrentMoney != 0) { hash ^= MyCurrentMoney.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }