// Dispose this object. protected override void Dispose(bool disposing) { if (disposing) { lock (this) { if (state != IntPtr.Zero) { CryptoMethods.HashFree(state); state = IntPtr.Zero; } } } else if (state != IntPtr.Zero) { CryptoMethods.HashFree(state); state = IntPtr.Zero; } }