Browse Source

Collect the get/set methods used in properties so that we generate the needed internal function declarations.

pull/1/head
triton 13 years ago
parent
commit
556ee78ac7
  1. 9
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -365,6 +365,15 @@ namespace CppSharp.Generators.CSharp @@ -365,6 +365,15 @@ namespace CppSharp.Generators.CSharp
functions.Add(method);
}
foreach (var prop in @class.Properties)
{
if (prop.GetMethod != null)
functions.Add(prop.GetMethod);
if (prop.SetMethod != null)
functions.Add(prop.SetMethod);
}
foreach (var function in functions)
{
NewLineIfNeeded();

Loading…
Cancel
Save