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