public void ResetSearch() { lock (_searcherLock) { _searcher = null; } }
private BoyerMooreStringSearch GetSearcher(string sample) { lock (_searcherLock) { if (_searcher == null || _searcher.Sample != sample) _searcher = new BoyerMooreStringSearch(sample); return _searcher; } }