diff --git a/src/Generator/Generators/CSharp/CSharpMarshal.cs b/src/Generator/Generators/CSharp/CSharpMarshal.cs index b4a57b8d..083023ae 100644 --- a/src/Generator/Generators/CSharp/CSharpMarshal.cs +++ b/src/Generator/Generators/CSharp/CSharpMarshal.cs @@ -437,7 +437,7 @@ namespace CppSharp.Generators.CSharp return; } - Context.Return.Write("*({0}.Internal*){1}.{2}", @class.Name, + Context.Return.Write("*({0}.Internal*){1}.{2}", CSharpMarshalNativeToManagedPrinter.QualifiedIdentifier(@class), Helpers.SafeIdentifier(Context.Parameter.Name), Helpers.InstanceIdentifier); }