Exemplo n.º 1
0
 public void Dispose()
 {
     source = null;
     model  = null;
     BufferPool.ReleaseBufferToPool(ref ioBuffer);
     if (stringInterner != null)
     {
         stringInterner.Clear();
     }
     if (netCache != null)
     {
         netCache.Clear();
     }
 }
Exemplo n.º 2
0
 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);
 }