public LazyValueInfo(JsonReaderBase reader) { if (reader == null) { throw new ArgumentNullException("reader"); } this.reader = reader; }
public Buffer(int size, JsonReaderBase reader) { if (size <= 0) { throw new ArgumentOutOfRangeException("size"); } if (reader == null) { throw new ArgumentNullOrEmptyException("reader"); } if (size < 10) { size = 10; } this.reader = reader; this.buffer = new char[size]; this.initialSize = size; this.end = 0; this.Offset = 0; }