Browse Source

Merge pull request #91 from sk-havok/req/unhandled_property_setter

We only handle functions and fields in property setters
pull/106/merge
João Matos 12 years ago
parent
commit
342ce1234c
  1. 5
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -805,6 +805,11 @@ namespace CppSharp.Generators.CSharp
private void GeneratePropertySetter<T>(QualifiedType returnType, T decl, Class @class) private void GeneratePropertySetter<T>(QualifiedType returnType, T decl, Class @class)
where T : Declaration, ITypedDecl where T : Declaration, ITypedDecl
{ {
if (!(decl is Function || decl is Field) )
{
return;
}
PushBlock(CSharpBlockKind.Method); PushBlock(CSharpBlockKind.Method);
WriteLine("set"); WriteLine("set");

Loading…
Cancel
Save