From 1d0b80b280839d2dfd80e538aa92a431b9171bd1 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Fri, 12 Jun 2015 02:11:09 +0300 Subject: [PATCH] Used the correct return type when generating a v-table call. 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 241b24b7..b8ffda15 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1450,7 +1450,7 @@ namespace CppSharp.Generators.CSharp var param = new Parameter { Name = Helpers.ReturnIdentifier, - QualifiedType = method.ReturnType + QualifiedType = method.OriginalReturnType }; // Marshal the managed result to native