diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 1a540fb5..23b3df13 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1124,8 +1124,8 @@ namespace CppSharp.Generators.CSharp GeneratePropertyGetter(prop.GetMethod, @class); if (prop.HasSetter) - GeneratePropertySetter(prop.GetMethod.ReturnType, prop.SetMethod, - @class); + GeneratePropertySetter(prop.SetMethod.Parameters[0].QualifiedType, + prop.SetMethod, @class); } WriteCloseBraceIndent();