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 を使用できないと出力に表示されます。助けてください