Browse Source

Fixed type printing of hidden structure parameters in C#.

pull/28/head
triton 12 years ago
parent
commit
d9a23baaf4
  1. 8
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

8
src/Generator/Generators/CSharp/CSharpTypePrinter.cs

@ -365,12 +365,8 @@ namespace CppSharp.Generators.CSharp
{ {
var paramType = parameter.Type; var paramType = parameter.Type;
Class @class; if (parameter.Kind == ParameterKind.HiddenStructureReturn)
if (paramType.Desugar().IsTagDecl(out @class) return "global::System.IntPtr";
&& ContextKind == CSharpTypePrinterContextKind.Native)
{
return string.Format("{0}.Internal", @class.Name);
}
return paramType.Visit(this); return paramType.Visit(this);
} }

Loading…
Cancel
Save