CrossUI.Runner.WPF.FileWatcher.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            _watcher.EnableRaisingEvents = false;
            _watcher.Dispose();
        }

Usage Example

Example #1
0
        void end()
        {
            if (_watcher_ == null)
            {
                _exception_ = null;
                return;
            }

            Debug.Assert(_exception_ == null);
            _watcher_.Dispose();
            _watcher_ = null;
        }