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:
authornulltoken <emeric.fermas@gmail.com>2011-05-20 19:08:43 +0400
committernulltoken <emeric.fermas@gmail.com>2011-05-20 23:32:32 +0400
commit2a18c09b41dd594fecf23ff5aad42cdc8fce75cf (patch)
treeb6ad126dd9ff35894d2608e2ef399553e885ec88
parent7508573882292d31c8cfc6f7e7effe64f7cb7004 (diff)
Turn NativeMethods and UnSafeNativeMethods types into static ones
-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);