Skip to content

Commit b21e2f9

Browse files
committed
NativeMethods: drop the CriticalFinalizerObject
.NET Core no longer supports CriticalFinalizerObject. We now get the strictest finalization guarantees simply inheriting Object. See https://github.com/dotnet/corefx/issues/1345
1 parent 2d05265 commit b21e2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private static void LoadNativeLibrary()
5656
}
5757

5858
// Shutdown the native library in a finalizer.
59-
private sealed class NativeShutdownObject : CriticalFinalizerObject
59+
private sealed class NativeShutdownObject
6060
{
6161
~NativeShutdownObject()
6262
{

0 commit comments

Comments
 (0)