Example #1
0
 protected override void Dispose(bool disposing)
 {
     if (hash != null)
     {
         hash.Dispose();
         hash = null;
         // there's no unmanaged resources (so disposing isn't used)
     }
 }
Example #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (hash != null)
                {
                    hash.Dispose();
                    hash = null;
                }
            }

            base.Dispose(disposing);
        }