Esempio n. 1
0
        public void Dispose()
        {
            //監視を終了
            watcher.EnableRaisingEvents = false;
            watcher.Dispose();
            watcher = null;

            delex.Dispose();
        }
Esempio n. 2
0
        public void Dispose()
        {
            //Console.WriteLine("Dispose");
            if (watchers == null)
            {
                return;
            }

            for (int i = watchers.GetLowerBound(0); i < watchers.GetUpperBound(0); i++)
            {
                //監視を終了
                watchers[i].EnableRaisingEvents = false;
                watchers[i].Dispose();
                watchers[i] = null;
            }
            watchers = null;

            delex.Dispose();
        }