private void ThrowIfStreamCannotWrite(string method) { if (!_stream.CanWrite) throw new NotSupportedException(SQLResource.InvalidOpStreamNonWritable(method)); }