コード例 #1
0
ファイル: scanner.cs プロジェクト: rbirkby/gedcomreader
        /// <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;
        }