Пример #1
0
        /// <include file='../docs.xml'
        /// path='docs/doc[@name="M:PeterO.XEReader.Create(System.Xml.XmlReader)"]/*'/>
        public static XEReader Create(XmlReader reader)
        {
            if (reader == null)
            {
                throw new ArgumentNullException("reader");
            }
            var w = new XEReader(reader, true);

            w.reader.MoveToContent();
            w.depth = w.reader.Depth;
            return(w);
        }
Пример #2
0
 /// <include file='../docs.xml'
 /// path='docs/doc[@name="M:PeterO.XEReader.Create(System.Xml.XmlReader)"]/*'/>
 public static XEReader Create(XmlReader reader)
 {
     if (reader == null) {
     throw new ArgumentNullException("reader");
       }
       var w = new XEReader(reader, true);
       w.reader.MoveToContent();
       w.depth = w.reader.Depth;
       return w;
 }