Browse Source

Fixed warnings about hidden methods in generated code.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/352/head
Dimitar Dobrev 11 years ago
parent
commit
d15d3f615b
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -1903,7 +1903,7 @@ namespace CppSharp.Generators.CSharp @@ -1903,7 +1903,7 @@ namespace CppSharp.Generators.CSharp
if (!@class.IsAbstract)
{
PushBlock(CSharpBlockKind.Method);
WriteLine("public static {0} {1}(global::System.IntPtr native)", safeIdentifier, Helpers.CreateInstanceIdentifier);
WriteLine("public static new {0} {1}(global::System.IntPtr native)", safeIdentifier, Helpers.CreateInstanceIdentifier);
WriteStartBraceIndent();
WriteLine("return new {0}(({1}.Internal*) native);", safeIdentifier, className);
WriteCloseBraceIndent();

Loading…
Cancel
Save