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