diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 387e8039..4e0b88ad 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -781,13 +781,10 @@ namespace CppSharp.Generators.CSharp WriteLine("get"); WriteStartBraceIndent(); - var @return = string.Empty; - if (decl is Function) { var function = decl as Function; GenerateInternalFunctionCall(function); - @return = "ret"; } else if (decl is Field) {