public void Dispose() { source = null; model = null; BufferPool.ReleaseBufferToPool(ref ioBuffer); if (stringInterner != null) { stringInterner.Clear(); } if (netCache != null) { netCache.Clear(); } }
private void Dispose() { // importantly, this does **not** own the stream, and does not dispose it if (dest != null) { Flush(this); dest = null; } model = null; BufferPool.ReleaseBufferToPool(ref ioBuffer); if (netCache != null) { netCache.Clear(); } if (recursionStack != null) { recursionStack.Clear(); } Recycle(this); }