Пример #1
0
 public void ResetSearch()
 {
     lock (_searcherLock)
     {
         _searcher = null;
     }
 }
Пример #2
0
 private BoyerMooreStringSearch GetSearcher(string sample)
 {
     lock (_searcherLock)
     {
         if (_searcher == null || _searcher.Sample != sample)
             _searcher = new BoyerMooreStringSearch(sample);
         return _searcher;
     }
 }