From 53bbc8c04b0850a97651740192eaa0897dbea5dc Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 29 May 2013 19:28:41 +0100 Subject: [PATCH] Use Helpers.SafeIdentifier when sending parameters to marshaling to deal with invalid identifiers. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index e45fb9f5..3e4383e5 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -922,7 +922,7 @@ namespace CppSharp.Generators.CSharp { var ctx = new CSharpMarshalContext(Driver) { - ReturnVarName = param.Name, + ReturnVarName = Helpers.SafeIdentifier(param.Name), ReturnType = param.QualifiedType };