Browse Source

Fixed wrong property setter type for some declarations.

Some operators, like operator[], actually need the getter return type.
pull/146/merge
triton 12 years ago
parent
commit
3a3f405fa9
  1. 3
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -1124,7 +1124,8 @@ namespace CppSharp.Generators.CSharp @@ -1124,7 +1124,8 @@ namespace CppSharp.Generators.CSharp
GeneratePropertyGetter(prop.GetMethod, @class);
if (prop.HasSetter)
GeneratePropertySetter(prop.SetMethod.Parameters[0].QualifiedType,
GeneratePropertySetter(prop.GetMethod != null ?
prop.GetMethod.ReturnType : prop.SetMethod.Parameters[0].QualifiedType,
prop.SetMethod, @class);
}

Loading…
Cancel
Save