From a58bf5b81bf29d2a45f3c5d897926466a3873009 Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 28 Jan 2014 01:29:08 +0000 Subject: [PATCH] Changed the visibility of native constructor to public (to match the CLI backend). --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 69246b7a..b16ee288 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1755,7 +1755,7 @@ namespace CppSharp.Generators.CSharp PopBlock(NewLineKind.BeforeNextBlock); PushBlock(CSharpBlockKind.Method); - WriteLine("internal {0}(global::System.IntPtr native){1}", safeIdentifier, + WriteLine("public {0}(global::System.IntPtr native){1}", safeIdentifier, @class.IsValueType ? " : this()" : string.Empty); var hasBaseClass = @class.HasBaseClass && @class.BaseClass.IsRefType;