class Import { private ArrayList a; private FileSystemWatcher f; public Import() { // create and configure Arraylist and FileWatcher here f.Changed += new FileSystemEventHandler(OnChanged); } private static void OnChanged(object source, FileSystemEventArgs args) { // Here i cannot access the Arraylist a to add the args. to it. } }
FileSystemWatcher
OnChanged
static
a
List<>
ArrayList
static private ArrayList a;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)