Browse Source

Handle native context classes correctly by printing its internal definition.

pull/1/head
triton 12 years ago
parent
commit
416503e23e
  1. 7
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

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

@ -305,7 +305,12 @@ namespace CppSharp.Generators.CSharp @@ -305,7 +305,12 @@ namespace CppSharp.Generators.CSharp
public CSharpTypePrinterResult VisitClassDecl(Class @class)
{
return GetNestedQualifiedName(@class);
var nestedName = GetNestedQualifiedName(@class);
if (ContextKind == CSharpTypePrinterContextKind.Native)
return string.Format("{0}.Internal", nestedName);
return nestedName;
}
public CSharpTypePrinterResult VisitFieldDecl(Field field)

Loading…
Cancel
Save