Convert() private méthode

private Convert ( System.Xml.Linq.XElement xml ) : GlowContainer
xml System.Xml.Linq.XElement
Résultat GlowContainer
Exemple #1
0
        /// <summary>
        /// Imports XML in the data schema produced by GlowXmlExport.Export.
        /// </summary>
        /// <param name="reader">The XmlReader to read XML from.</param>
        /// <returns>A new instance of a class derived from GlowContainer
        /// or null if the XML root is unknown.</returns>
        public static GlowContainer Import(XmlReader reader)
        {
            var instance = new GlowXmlImport();
             var xml = XElement.Load(reader);

             return instance.Convert(xml);
        }
        /// <summary>
        /// Imports XML in the data schema produced by GlowXmlExport.Export.
        /// </summary>
        /// <param name="reader">The XmlReader to read XML from.</param>
        /// <returns>A new instance of a class derived from GlowContainer
        /// or null if the XML root is unknown.</returns>
        public static GlowContainer Import(XmlReader reader)
        {
            var instance = new GlowXmlImport();
            var xml      = XElement.Load(reader);

            return(instance.Convert(xml));
        }