public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (Purpose != null ? Purpose.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)ComponentType; hashCode = (hashCode * 397) ^ (int)LogicalSystem; hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Transport; hashCode = (hashCode * 397) ^ (int)DataFormat; hashCode = (hashCode * 397) ^ (Frequency != null ? Frequency.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Security; hashCode = (hashCode * 397) ^ (int)AccessStrategy; hashCode = (hashCode * 397) ^ (Notes != null ? Notes.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Interface != null ? Interface.GetHashCode() : 0); return(hashCode); } }
/// <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 (IsPreferred != null) { hashCode = hashCode * 59 + IsPreferred.GetHashCode(); } if (Purpose != null) { hashCode = hashCode * 59 + Purpose.GetHashCode(); } if (Address != null) { hashCode = hashCode * 59 + Address.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (sale_ != null) { hash ^= Sale.GetHashCode(); } if (changeAmount_ != null) { hash ^= ChangeAmount.GetHashCode(); } if (purpose_ != null) { hash ^= Purpose.GetHashCode(); } if (reservation_ != null) { hash ^= Reservation.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 (IsPreferred != null) { hashCode = hashCode * 59 + IsPreferred.GetHashCode(); } if (Purpose != null) { hashCode = hashCode * 59 + Purpose.GetHashCode(); } if (CountryCode != null) { hashCode = hashCode * 59 + CountryCode.GetHashCode(); } if (AreaCode != null) { hashCode = hashCode * 59 + AreaCode.GetHashCode(); } if (Number != null) { hashCode = hashCode * 59 + Number.GetHashCode(); } if (Extension != null) { hashCode = hashCode * 59 + Extension.GetHashCode(); } if (FullNumber != null) { hashCode = hashCode * 59 + FullNumber.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (primary_ != null) { hash ^= Primary.GetHashCode(); } if (Purpose != 0) { hash ^= Purpose.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (nextRotationTime_ != null) { hash ^= NextRotationTime.GetHashCode(); } if (rotationScheduleCase_ == RotationScheduleOneofCase.RotationPeriod) { hash ^= RotationPeriod.GetHashCode(); } hash ^= Labels.GetHashCode(); hash ^= (int)rotationScheduleCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(31 * IsChecked.GetHashCode() * Purpose.GetHashCode() * Type.GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (sale_ != null) { hash ^= Sale.GetHashCode(); } if (card_ != null) { hash ^= Card.GetHashCode(); } if (Purpose != 0) { hash ^= Purpose.GetHashCode(); } if (SaleState != 0) { hash ^= SaleState.GetHashCode(); } if (openAuthorized_ != null) { hash ^= OpenAuthorized.GetHashCode(); } if (captured_ != null) { hash ^= Captured.GetHashCode(); } if (EntryMethod != 0) { hash ^= EntryMethod.GetHashCode(); } if (authorizedAt_ != null) { hash ^= AuthorizedAt.GetHashCode(); } if (capturedAt_ != null) { hash ^= CapturedAt.GetHashCode(); } if (ApplicationLabel.Length != 0) { hash ^= ApplicationLabel.GetHashCode(); } if (AID.Length != 0) { hash ^= AID.GetHashCode(); } if (ApplicationCrypto.Length != 0) { hash ^= ApplicationCrypto.GetHashCode(); } if (ApprovalCode.Length != 0) { hash ^= ApprovalCode.GetHashCode(); } if (receivedBy_ != null) { hash ^= ReceivedBy.GetHashCode(); } if (finalAuthorizedAmount_ != null) { hash ^= FinalAuthorizedAmount.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(Purpose.GetHashCode()); }