Browse Source

We only handle functions and fields in property setters

pull/91/head
Stephen Kennedy 12 years ago
parent
commit
972e08ba67
  1. 5
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

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

Loading…
Cancel
Save