From d9a23baaf45920e0515330f2a6ba5b11d999f9f5 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 14 Aug 2013 00:03:40 +0100 Subject: [PATCH] Fixed type printing of hidden structure parameters in C#. --- src/Generator/Generators/CSharp/CSharpTypePrinter.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs index aab4d147..efe5bc7b 100644 --- a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs +++ b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs @@ -365,12 +365,8 @@ namespace CppSharp.Generators.CSharp { var paramType = parameter.Type; - Class @class; - if (paramType.Desugar().IsTagDecl(out @class) - && ContextKind == CSharpTypePrinterContextKind.Native) - { - return string.Format("{0}.Internal", @class.Name); - } + if (parameter.Kind == ParameterKind.HiddenStructureReturn) + return "global::System.IntPtr"; return paramType.Visit(this); }