示例#1
0
        public JsonTokenizer(SourceReader reader)
        {
            #region Preconditions

            if (reader == null) throw new ArgumentNullException(nameof(reader));

            #endregion

            this.reader = reader;

            reader.Next(); // Start with the first char
        }
示例#2
0
文件: JsonParser.cs 项目: carbon/Data
        public JsonParser(SourceReader sourceReader)
        {
            #region Preconditions

            if (sourceReader == null)
                throw new ArgumentNullException("sourceReader");

            #endregion

            this.reader = new TokenReader(new JsonTokenizer(sourceReader));

            this.reader.Next(); // Start with the first token
        }
        internal JsonTokenizer(SourceReader reader)
        {
            this.reader = reader;

            reader.Next(); // Start with the first char
        }