/// <summary> /// Returns true if WorkingRestrictionHoursOfWork instances are equal /// </summary> /// <param name="other">Instance of WorkingRestrictionHoursOfWork to be compared</param> /// <returns>Boolean</returns> public bool Equals(WorkingRestrictionHoursOfWork other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Mon == other.Mon || Mon != null && Mon.Equals(other.Mon) ) && ( Tue == other.Tue || Tue != null && Tue.Equals(other.Tue) ) && ( Wed == other.Wed || Wed != null && Wed.Equals(other.Wed) ) && ( Thu == other.Thu || Thu != null && Thu.Equals(other.Thu) ) && ( Fri == other.Fri || Fri != null && Fri.Equals(other.Fri) ) && ( Sat == other.Sat || Sat != null && Sat.Equals(other.Sat) ) && ( Sun == other.Sun || Sun != null && Sun.Equals(other.Sun) )); }