Amazon.ECS.Model.Reviewer.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 (IsSetCustomerId()) {
                xml.Append("<CustomerId>");
                xml.Append(EscapeXML(this.CustomerId));
                xml.Append("</CustomerId>");
            }
            if (IsSetName()) {
                xml.Append("<Name>");
                xml.Append(EscapeXML(this.Name));
                xml.Append("</Name>");
            }
            if (IsSetNickname()) {
                xml.Append("<Nickname>");
                xml.Append(EscapeXML(this.Nickname));
                xml.Append("</Nickname>");
            }
            if (IsSetLocation()) {
                xml.Append("<Location>");
                xml.Append(EscapeXML(this.Location));
                xml.Append("</Location>");
            }
            return xml.ToString();
        }