/// <summary> /// Returns true if DutyCascadeEvent instances are equal /// </summary> /// <param name="other">Instance of DutyCascadeEvent to be compared</param> /// <returns>Boolean</returns> public bool Equals(DutyCascadeEvent other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( DutyId == other.DutyId || DutyId != null && DutyId.Equals(other.DutyId) ) && ( CascadeFrom == other.CascadeFrom || CascadeFrom.Equals(other.CascadeFrom) ) && ( CascadeTo == other.CascadeTo || CascadeTo.Equals(other.CascadeTo) ) && ( IsDutyReset == other.IsDutyReset || IsDutyReset.Equals(other.IsDutyReset) )); }