From 17a8a4cbdca6ebbe0f9a29fe38fef43fbe07a713 Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 9 Sep 2013 23:01:23 +0100 Subject: [PATCH] Fixed generation of native object instantiation to use the original names. --- src/Generator/Generators/CLI/CLISourcesTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CLI/CLISourcesTemplate.cs b/src/Generator/Generators/CLI/CLISourcesTemplate.cs index 13ddc025..895523b9 100644 --- a/src/Generator/Generators/CLI/CLISourcesTemplate.cs +++ b/src/Generator/Generators/CLI/CLISourcesTemplate.cs @@ -602,7 +602,7 @@ namespace CppSharp.Generators.CLI if (!@class.IsAbstract) { var @params = GenerateFunctionParamsMarshal(method.Parameters, method); - Write("NativePtr = new ::{0}(", method.Namespace.QualifiedName); + Write("NativePtr = new ::{0}(", method.Namespace.QualifiedOriginalName); GenerateFunctionParams(@params); WriteLine(");"); }