public void Dispose() { if (_buffer != null) { ArrayPool <TToken> .Shared.Return(_buffer); _buffer = null; } _stream.Dispose(); _bookmarks.Clear(); _expecteds.Clear(); _expectedBookmarks.Clear(); }