Amazon.ECS.Model.OfferAttributes.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 (IsSetCondition()) {
                xml.Append("<Condition>");
                xml.Append(EscapeXML(this.Condition));
                xml.Append("</Condition>");
            }
            if (IsSetSubCondition()) {
                xml.Append("<SubCondition>");
                xml.Append(EscapeXML(this.SubCondition));
                xml.Append("</SubCondition>");
            }
            if (IsSetConditionNote()) {
                xml.Append("<ConditionNote>");
                xml.Append(EscapeXML(this.ConditionNote));
                xml.Append("</ConditionNote>");
            }
            if (IsSetWillShipExpedited()) {
                xml.Append("<WillShipExpedited>");
                xml.Append(this.WillShipExpedited);
                xml.Append("</WillShipExpedited>");
            }
            if (IsSetWillShipInternational()) {
                xml.Append("<WillShipInternational>");
                xml.Append(this.WillShipInternational);
                xml.Append("</WillShipInternational>");
            }
            return xml.ToString();
        }