Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibGit2Sharp/Core/NativeMethods.cs4
-rw-r--r--LibGit2Sharp/Core/UnSafeNativeMethods.cs4
2 files changed, 2 insertions, 6 deletions
diff --git a/LibGit2Sharp/Core/NativeMethods.cs b/LibGit2Sharp/Core/NativeMethods.cs
index 5ac4ff05..4344ec97 100644
--- a/LibGit2Sharp/Core/NativeMethods.cs
+++ b/LibGit2Sharp/Core/NativeMethods.cs
@@ -3,12 +3,10 @@ using System.Runtime.InteropServices;
namespace LibGit2Sharp.Core
{
- internal class NativeMethods
+ internal static class NativeMethods
{
const string libgit2 = "git2.dll";
- private NativeMethods() { }
-
[DllImport(libgit2)]
public static extern IntPtr git_blob_rawcontent(IntPtr blob);
diff --git a/LibGit2Sharp/Core/UnSafeNativeMethods.cs b/LibGit2Sharp/Core/UnSafeNativeMethods.cs
index 22c9ccf5..c6d6c79d 100644
--- a/LibGit2Sharp/Core/UnSafeNativeMethods.cs
+++ b/LibGit2Sharp/Core/UnSafeNativeMethods.cs
@@ -3,12 +3,10 @@ using System.Runtime.InteropServices;
namespace LibGit2Sharp.Core
{
- internal unsafe class UnSafeNativeMethods
+ internal static unsafe class UnSafeNativeMethods
{
private const string libgit2 = "git2.dll";
- private UnSafeNativeMethods() { }
-
[DllImport(libgit2)]
public static extern int git_reference_listall(git_strarray* array, RepositorySafeHandle repo, GitReferenceType flags);