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