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