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); }