Remove incorrectly implemented finalizer (#14246)

This commit is contained in:
xtqqczze
2020-11-24 08:16:23 +05:00
committed by GitHub
parent e02fce2d12
commit cb6ef9bdee
@@ -627,18 +627,6 @@ namespace System.Management.Automation.Internal
}
}
/// <summary>
/// Destructor.
/// </summary>
~PSRSACryptoServiceProvider()
{
// When Dispose() is called, GC.SuppressFinalize()
// is called and therefore this finalizer will not
// be invoked. Hence this is run only on process
// shutdown
Dispose(true);
}
#endregion IDisposable
}