public void Dispose() { if (this._stream != null) { this._stream.Close(); this._stream.Dispose(); this._stream = null; } }
private void Release() { if (pHandler != null) { try { pHandler.Unload(); } catch { } Marshal.FinalReleaseComObject(pHandler); pHandler = null; } if (stream != null) { stream.Dispose(); stream = null; } }