Amazon.ECS.Model.PackageDimensions.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 (IsSetHeight()) {
                DecimalWithUnits  height = this.Height;
                xml.Append("<Height Units=" + "\"" +  EscapeXML(height.Units)  + "\"" +  ">");
                xml.Append(height.Value);
                xml.Append("</Height>");
            }
            if (IsSetLength()) {
                DecimalWithUnits  length = this.Length;
                xml.Append("<Length Units=" + "\"" +  EscapeXML(length.Units)  + "\"" +  ">");
                xml.Append(length.Value);
                xml.Append("</Length>");
            }
            if (IsSetWeight()) {
                DecimalWithUnits  weight = this.Weight;
                xml.Append("<Weight Units=" + "\"" +  EscapeXML(weight.Units)  + "\"" +  ">");
                xml.Append(weight.Value);
                xml.Append("</Weight>");
            }
            if (IsSetWidth()) {
                DecimalWithUnits  width = this.Width;
                xml.Append("<Width Units=" + "\"" +  EscapeXML(width.Units)  + "\"" +  ">");
                xml.Append(width.Value);
                xml.Append("</Width>");
            }
            return xml.ToString();
        }