だから私は別の質問でこれがうまくいくはずだと言っている答えを見ました:
using System.IO;
if (File.Exists(Path))
{
Action();
}
ただし、これを行うと、次のエラーが発生します。
'System.IO' is a 'namespace', which is not valid in the given context
The Name 'File' does not exist in the current context
私は何を間違っていますか?