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