private void ThrowIfStreamCannotRead(string method) { if (!this.m_stream.CanRead) { throw new NotSupportedException(SQLResource.InvalidOpStreamNonReadable(method)); } }