Amazon.ECS.Model.Price.ToXMLFragment C# (CSharp) Method

ToXMLFragment() protected method

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
return String
        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();
            if (IsSetAmount()) {
                xml.Append("<Amount>");
                xml.Append(this.Amount);
                xml.Append("</Amount>");
            }
            if (IsSetCurrencyCode()) {
                xml.Append("<CurrencyCode>");
                xml.Append(EscapeXML(this.CurrencyCode));
                xml.Append("</CurrencyCode>");
            }
            if (IsSetFormattedPrice()) {
                xml.Append("<FormattedPrice>");
                xml.Append(EscapeXML(this.FormattedPrice));
                xml.Append("</FormattedPrice>");
            }
            return xml.ToString();
        }