protected override void Dispose(bool disposing)
{
try
{
if (_disposed) return;
_disposed = true;
if (disposing)
{
if (_stream != null)
{
try
{
_stream.Dispose();
}
catch (Exception)
{
}
_stream = null;
}
if (_blockInfo.Value != null)
{
try
{
_bufferManager.ReturnBuffer(_blockInfo.Value);
}
catch (Exception)
{
}
_blockInfo.Value = null;
}
}
}
finally
{
base.Dispose(disposing);
}
}