diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 7cafb56d..1af20317 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -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();