diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 1d908bfd..5ccc01bc 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -344,7 +344,7 @@ namespace CppSharp.Generators.CSharp } else { - WriteLine("/// {0}", comment.BriefText); + WriteLine("/// {0}", comment.BriefText); } PopBlock(); } @@ -807,7 +807,9 @@ namespace CppSharp.Generators.CSharp if (function.SynthKind == FunctionSynthKind.AbstractImplCall) { - GenerateAbstractImplCall(function, @class); + string delegateId; + Write(GetAbstractCallDelegate(function, @class, out delegateId)); + GenerateFunctionCall(delegateId, new List { param }, function); } else { @@ -820,8 +822,7 @@ namespace CppSharp.Generators.CSharp } else { - var parameters = new List { param }; - GenerateInternalFunctionCall(function, parameters); + GenerateInternalFunctionCall(function, new List { param }); } } else diff --git a/tests/CSharpTemp/CSharpTemp.h b/tests/CSharpTemp/CSharpTemp.h index 1ffe08b4..797c1176 100644 --- a/tests/CSharpTemp/CSharpTemp.h +++ b/tests/CSharpTemp/CSharpTemp.h @@ -96,7 +96,7 @@ class DLL_API AbstractProprietor { public: virtual int getValue(); - virtual void setValue(int value) = 0; + virtual void setValue(int newValue) = 0; virtual long prop() = 0; virtual void setProp(long prop);