Amazon.ECS.Model.SimilarProducts.ToXMLFragment C# (CSharp) Méthode

ToXMLFragment() protected méthode

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
Résultat String
        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();
            List<SimilarProduct> similarProductList = this.SimilarProduct;
            foreach (SimilarProduct similarProduct in similarProductList) {
                xml.Append("<SimilarProduct>");
                xml.Append(similarProduct.ToXMLFragment());
                xml.Append("</SimilarProduct>");
            }
            return xml.ToString();
        }