adding a property to an EventArgs
- by aleroot
I have extended the standard FileSystemWatcher class by adding a string property (fileToTest), now i need to extend also the FileSystemEventArgs to add this property how can i do this ?
my extend FileSystemWatcher :
class AleFileSystemWatcher : FileSystemWatcher
{
public string fileToTest { get; set; }
}
The FileSystemEventArgs fileToTest property should be the same of AleFileSystemWatcher fileToTest .
Can i do this ?