From b06f206878ebe4e18a33456359f393613d18ded1 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Wed, 21 Aug 2013 18:54:14 +0300 Subject: [PATCH] Fixed the generation of static function to use the correct return type. Signed-off-by: Dimitar Dobrev --- 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 1854ceb3..cf0435c4 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1440,7 +1440,7 @@ namespace CppSharp.Generators.CSharp GenerateDeclarationCommon(function); var functionName = GetFunctionIdentifier(function); - Write("public static {0} {1}(", function.ReturnType, functionName); + Write("public static {0} {1}(", function.OriginalReturnType, functionName); GenerateMethodParameters(function); WriteLine(")"); WriteStartBraceIndent();