示例#1
0
        /// <summary>
        /// Create a new Lexical analyser, reading from the given stream
        /// </summary>
        /// <param name="stream"></param>
        /// <param name="strict">true to conform strictly to the GEDCOM spec</param>
        public Scanner(Stream stream, bool strict)
        {
            _reader = new StreamScannerReader(stream);

            // Create a new Xml Name Table
            _names = new NameTable();

            _strict = strict;
        }
示例#2
0
        /// <summary>
        /// Create a new Lexical analyser, reading from the given stream
        /// </summary>
        /// <param name="stream"></param>
        /// <param name="strict">true to conform strictly to the GEDCOM spec</param>
        public Scanner(Stream stream, bool strict)
        {
            _reader = new StreamScannerReader(stream);

            // Create a new Xml Name Table
            _names = new NameTable();

            _strict = strict;
        }