Amazon.ECS.Model.TransactionTotals.ToXMLFragment C# (CSharp) Метод

ToXMLFragment() защищенный Метод

XML fragment representation of this object
Name for outer tag expected to be set by calling method. This fragment returns inner properties representation only
protected ToXMLFragment ( ) : String
Результат String
        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();
            if (IsSetTotal()) {
                Price  total = this.Total;
                xml.Append("<Total>");
                xml.Append(total.ToXMLFragment());
                xml.Append("</Total>");
            }
            if (IsSetSubtotal()) {
                Price  subtotal = this.Subtotal;
                xml.Append("<Subtotal>");
                xml.Append(subtotal.ToXMLFragment());
                xml.Append("</Subtotal>");
            }
            if (IsSetTax()) {
                Price  tax = this.Tax;
                xml.Append("<Tax>");
                xml.Append(tax.ToXMLFragment());
                xml.Append("</Tax>");
            }
            if (IsSetShippingCharge()) {
                Price  shippingCharge = this.ShippingCharge;
                xml.Append("<ShippingCharge>");
                xml.Append(shippingCharge.ToXMLFragment());
                xml.Append("</ShippingCharge>");
            }
            if (IsSetPromotion()) {
                Price  promotion = this.Promotion;
                xml.Append("<Promotion>");
                xml.Append(promotion.ToXMLFragment());
                xml.Append("</Promotion>");
            }
            return xml.ToString();
        }