protected override void Dispose(bool disposing)
{
if (tempStream != null)
lock (this)
{
tempStream.Dispose();
tempStream = null;
try { System.IO.File.Delete(tempFile); }
catch { }
tempFile = null;
}
if (disposing)
{
if (hash != null) ((IDisposable)hash).Dispose();
hash = null;
connection = null;
//cryptBuffer = null;
}
base.Dispose(disposing);
}