コード例 #1
0
            public LazyValueInfo(JsonReaderBase reader)
            {
                if (reader == null)
                {
                    throw new ArgumentNullException("reader");
                }

                this.reader = reader;
            }
コード例 #2
0
            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;
            }