From 3fdc058ea57dcc8b2401e4e3eef47efe642724a7 Mon Sep 17 00:00:00 2001 From: Salvage <29021710+Saalvage@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:51:06 +0200 Subject: [PATCH] Fix erroneous newline --- src/Generator/Generators/CSharp/CSharpMarshal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpMarshal.cs b/src/Generator/Generators/CSharp/CSharpMarshal.cs index eec484e0..09ced7d1 100644 --- a/src/Generator/Generators/CSharp/CSharpMarshal.cs +++ b/src/Generator/Generators/CSharp/CSharpMarshal.cs @@ -647,7 +647,7 @@ namespace CppSharp.Generators.CSharp if (pointer.Pointee.IsTemplateParameterType()) Context.Before.Write($"(({Context.Parameter.Type}) (object) {Context.Parameter.Name})"); else - Context.Before.WriteLine(Context.Parameter.Name); + Context.Before.Write(Context.Parameter.Name); Context.Before.WriteLine($".{Helpers.InstanceIdentifier};"); Context.Return.Write($"new {typePrinter.IntPtrType}(&{arg})");