Is there any option to call method after another method ends? I want to call Method2
in Method1
, but I want my program to execute Method2
after Method1
ends.
EDIT: To be more specific:
private void FileSystemWatcher_Changed(object sender, FileSystemEventArgs e)
{
filePath = e.FullPath;
DoSomethingWithChangedFile();
}
This doesn't work because FileSystemWatcher_Changed is using file I want to use in DoSomethingWithChangedFile(). Is there any simple solution that I don't see and I am just dumb?