Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadToEnd()

override string System.IO.StringReader.ReadToEnd ( )
inlinevirtual

Reimplemented from System.IO.TextReader.

Definition at line 126 of file StringReader.cs.

127 {
128 if (_s == null)
129 {
130 throw new ObjectDisposedException(null, SR.ObjectDisposed_ReaderClosed);
131 }
132 string result = ((_pos != 0) ? _s.Substring(_pos, _length - _pos) : _s);
133 _pos = _length;
134 return result;
135 }

References System.IO.StringReader._length, System.IO.StringReader._pos, System.IO.StringReader._s, and System.SR.ObjectDisposed_ReaderClosed.

Referenced by System.IO.StringReader.ReadToEndAsync().