Ejemplo n.º 1
0
        public XElement Serialize()
        {
            XElement elm = new XElement("se", Elements.Select(e => new XAttribute(e.Key, e.Value)).Union(new[] { new XAttribute("name", Name), }),
                                        Paragraphs.Select(p => p.Serialize())
                                        );

            return(elm);
        }
Ejemplo n.º 2
0
        public XElement Serialize()
        {
            XElement elm = new XElement("ch",
                                        Elements.Select(e => new XAttribute(e.Key, e.Value)).Union(new[] { new XAttribute("name", Name), }),
                                        Sections.Select(s => s.Serialize())
                                        );

            return(elm);
        }