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