Browse Source

Changed the visibility of native constructor to public (to match the CLI backend).

pull/159/head
triton 12 years ago
parent
commit
a58bf5b81b
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

2
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -1755,7 +1755,7 @@ namespace CppSharp.Generators.CSharp @@ -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;

Loading…
Cancel
Save