Amazon.ECS.Model.VariationSummary.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 (IsSetLowestPrice()) {
                Price  lowestPrice = this.LowestPrice;
                xml.Append("<LowestPrice>");
                xml.Append(lowestPrice.ToXMLFragment());
                xml.Append("</LowestPrice>");
            }
            if (IsSetHighestPrice()) {
                Price  highestPrice = this.HighestPrice;
                xml.Append("<HighestPrice>");
                xml.Append(highestPrice.ToXMLFragment());
                xml.Append("</HighestPrice>");
            }
            if (IsSetLowestSalePrice()) {
                Price  lowestSalePrice = this.LowestSalePrice;
                xml.Append("<LowestSalePrice>");
                xml.Append(lowestSalePrice.ToXMLFragment());
                xml.Append("</LowestSalePrice>");
            }
            if (IsSetHighestSalePrice()) {
                Price  highestSalePrice = this.HighestSalePrice;
                xml.Append("<HighestSalePrice>");
                xml.Append(highestSalePrice.ToXMLFragment());
                xml.Append("</HighestSalePrice>");
            }
            if (IsSetSingleMerchantId()) {
                xml.Append("<SingleMerchantId>");
                xml.Append(EscapeXML(this.SingleMerchantId));
                xml.Append("</SingleMerchantId>");
            }
            return xml.ToString();
        }