public override int ReadChar()
{
CheckIfStreamClosed();
// If at the end of stream, return -1, rather than call SqlChars.Readchar,
// which will throw exception. This is the behavior for Stream.
//
if (_lPosition >= _sqlchars.Length)
return -1;
int ret = _sqlchars[_lPosition];
_lPosition++;
return ret;
}