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 }
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 }