/// <summary> /// Returns true if SharedAutomatedTellerMachinesAvailabilityStandards instances are equal /// </summary> /// <param name="other">Instance of SharedAutomatedTellerMachinesAvailabilityStandards to be compared</param> /// <returns>Boolean</returns> public bool Equals(SharedAutomatedTellerMachinesAvailabilityStandards other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Weekday == other.Weekday || Weekday != null && Weekday.Equals(other.Weekday) ) && ( OpeningTime == other.OpeningTime || OpeningTime != null && OpeningTime.Equals(other.OpeningTime) ) && ( ClosingTime == other.ClosingTime || ClosingTime != null && ClosingTime.Equals(other.ClosingTime) )); }
/// <summary> /// Compares two RegularRegularHourss for equality. /// </summary> /// <param name="RegularRegularHours">A RegularRegularHours to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public Boolean Equals(RegularHours RegularRegularHours) => Weekday.Equals(RegularRegularHours.Weekday) && Begin.Equals(RegularRegularHours.Begin) && End.Equals(RegularRegularHours.End);