public DataUpdater(string file, ref DataTable data)
{
FileSystemWatcher fileWatcher = new FileSystemWatcher();
fileWatcher.Path = Path.GetDirectoryName(file);
fileWatcher.Filter = Path.GetFileName(file);
fileWatcher.NotifyFilter = NotifyFilters.LastWrite;
fileWatcher.Changed += (sender, e) =>
{
data = CSVParser.ParseCSV(file);
};
}
您好,我正在尝试在文件更改时更新数据表变量,但输出显示我在更改的事件中不能有 ref 或 out。请帮忙