Browse Source

Fixed the generation of static function to use the correct return type.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/48/head
Dimitar Dobrev 12 years ago
parent
commit
b06f206878
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

2
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -1440,7 +1440,7 @@ namespace CppSharp.Generators.CSharp @@ -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();

Loading…
Cancel
Save