protected override void Dispose(bool disposing) { if (disposing) { _tree?.Dispose(); _tree = null; } base.Dispose(disposing); }
/// <summary> /// Creates a new instance of <see cref="HybridSuffixTreeMatchFinder"/>. /// </summary> /// <param name="limits">The search limitations to find pattern matches.</param> /// <param name="options">The additional configuration for finding pattern matches.</param> public HybridSuffixTreeMatchFinder(FindLimitations limits, FindOptions options) : base(limits, options) { _tree = new HybridSuffixTree(); }
/// <inheritdoc cref="Reset"/> public override void Reset() { // Nothing to reset _tree?.Dispose(); _tree = new HybridSuffixTree(); }