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