From de7db6c1529897536cc9eabc240c436cfeaabecd Mon Sep 17 00:00:00 2001 From: Vsevolod Kukol Date: Mon, 18 Feb 2019 21:08:50 +0100 Subject: Revert "NativeMethods: drop the `CriticalFinalizerObject`" This reverts commit b21e2f9e0ab6d6e235f28094e51ead8047103bf1. --- LibGit2Sharp/Core/NativeMethods.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.3