コード例 #1
0
ファイル: xpathreader.cs プロジェクト: Infarh/MathCore
        /// <internalonly />
        /// <devdoc>
        ///     <para>
        ///         Initializes a new instance of the XPathReader class with the specified XmlNameTable.
        ///         This constructor is used when creating reader with "new XPathReader(..)"
        ///     </para>
        /// </devdoc>

        //
        // For class function provides the url, we will construct the
        // XmlTextReader to process the URL
        //
        public XPathReader([NotNull] string Url, string XPath) : this()
        {
            BaseReader       = new XmlTextReader(Url);
            _XPathCollection = new XPathCollection {
                XPath
            };
        }
コード例 #2
0
ファイル: xpathreader.cs プロジェクト: Infarh/MathCore
        /// <internalonly />
        /// <devdoc>
        ///     <para>
        ///         Initializes a new instance of the XPathReader class with the specified XmlNameTable.
        ///         This constructor is used when creating reader with "new XPathReader(..)"
        ///     </para>
        /// </devdoc>

        //
        // For class function provides the url, we will construct the
        // XmlTextReader to process the URL
        //
        public XPathReader(TextReader Reader, string XPath) : this()
        {
            BaseReader       = new XmlTextReader(Reader);
            _XPathCollection = new XPathCollection {
                XPath
            };
        }
コード例 #3
0
ファイル: xpathreader.cs プロジェクト: Infarh/MathCore
        /// <internalonly />
        /// <devdoc>
        ///     <para>
        ///         Initializes a new instance of the XPathReader class with the specified XmlNameTable.
        ///         This constructor is used when creating reader with "new XPathReader(..)"
        ///     </para>
        /// </devdoc>

        //
        // For class function provides the url, we will construct the
        // XmlTextReader to process the URL
        //
        public XPathReader([NotNull] string Url, [NotNull] XPathCollection XPathCollection) : this(new XmlTextReader(Url), XPathCollection)
        {
        }
コード例 #4
0
ファイル: xpathreader.cs プロジェクト: Infarh/MathCore
 /// <internalonly />
 /// <devdoc>
 ///     <para>
 ///         Initializes a new instance of the XPathReader class with the specified XmlNameTable.
 ///         This constructor is used when creating reader with "new XPathReader(..)"
 ///     </para>
 /// </devdoc>
 public XPathReader(XmlReader Reader, [NotNull] XPathCollection XPathCollection) : this()
 {
     _XPathCollection          = XPathCollection;
     XPathCollection.SetReader = this;
     BaseReader = Reader;
 }