I'm writing a small class that will keep an eye on certain folders for changes, and backup the ones that changes periodically, to monitor the folder for changes I used FileSystemWatcher with some events handlers to add changed files to a list.
Now I want to delete those files from the list when the watcher object is disposed, so I used a Disposed handler
source and e has those methods: ToString/Equals/GetType/GetHashCode.
My question is, how would I know what was the path I'm watching?? and what exactly is the object source at first place? I see it in all events but I don't know what it is.
Thanks in advance.
Code
FileSystemWatcher watcher = new FileSystemWatcher(source, "*");
watcher.IncludeSubdirectories = true;
watcher.Disposed += DisposedWatcher;Code
private void DisposedWatcher(object source, EventArgs e)My question is, how would I know what was the path I'm watching?? and what exactly is the object source at first place? I see it in all events but I don't know what it is.
Thanks in advance.
Have a cool signature? hit me up and I might use it.


