public void BeginSearch()
 {
     if (this.mySearcher == null && this.SearchDir != "GAC:\\" && !string.IsNullOrEmpty(this.FileMask))
     {
         this.mySearcher = new DirectorySearcherAsync(this.SearchDir, this.FileMask, this.mySearchOption);
         this.mySearcher.BeginSearch();
     }
 }
            public DirectorySearcherAsyncEnumerator(DirectorySearcherAsync searcher)
            {
                if (searcher == null)
                {
                    throw new ArgumentNullException("searcher");
                }

                this.mySearcher = searcher;

                this.mySearcher.BeginSearch();
                this.myResultQueue = this.mySearcher.GetResultQueue();
            }
 public void Dispose()
 {
     this.mySearcher    = null;
     this.Current       = null;
     this.myResultQueue = null;
 }