From d15d3f615b71a9c559e227866d3e4add1fe4b125 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sat, 25 Oct 2014 17:16:05 +0300 Subject: [PATCH] Fixed warnings about hidden methods in generated code. Signed-off-by: Dimitar Dobrev --- 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 6425fe5b..b66eb519 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -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();