예제 #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;
 }