diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2019-02-18 23:08:50 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@microsoft.com> | 2019-02-18 23:10:48 +0300 |
commit | de7db6c1529897536cc9eabc240c436cfeaabecd (patch) | |
tree | 7e3b210f5649ed713a090e58674a8cf161d2355d | |
parent | c12a8114fa7a017043f78ce1dcedcd17b67fbf7c (diff) |
Revert "NativeMethods: drop the `CriticalFinalizerObject`"vs-8.0-v1
This reverts commit b21e2f9e0ab6d6e235f28094e51ead8047103bf1.
-rw-r--r-- | LibGit2Sharp/Core/NativeMethods.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LibGit2Sharp/Core/NativeMethods.cs b/LibGit2Sharp/Core/NativeMethods.cs index adfea56f..56eadf17 100644 --- a/LibGit2Sharp/Core/NativeMethods.cs +++ b/LibGit2Sharp/Core/NativeMethods.cs @@ -2,6 +2,7 @@ using System; using System.Globalization; using System.IO; using System.Runtime.CompilerServices; +using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using LibGit2Sharp.Core.Handles; @@ -51,7 +52,7 @@ namespace LibGit2Sharp.Core } // Shutdown the native library in a finalizer. - private sealed class NativeShutdownObject + private sealed class NativeShutdownObject : CriticalFinalizerObject { ~NativeShutdownObject() { |