public void Dispose() { _fullPatternSegment.Dispose(); foreach (var segment in _dotSeparatedPatternSegments) { segment.Dispose(); } }
public void Dispose() { _fullPatternSegment.Dispose(); foreach (var segment in _dotSeparatedPatternSegments) { segment.Dispose(); } foreach (var kvp in _stringToWordSpans) { kvp.Value.Dispose(); } _stringToWordSpans.Clear(); }
public override void Dispose() { base.Dispose(); _fullPatternSegment.Dispose(); }