diff --git a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs index c5cf2c27..1e77f3b8 100644 --- a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs +++ b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs @@ -364,7 +364,7 @@ namespace CppSharp.Generators.CSharp } } - return decl.Name + (ContextKind == CSharpTypePrinterContextKind.Native ? + return GetNestedQualifiedName(decl) + (ContextKind == CSharpTypePrinterContextKind.Native ? ".Internal" : string.Empty); }