|
|
|
@ -858,10 +858,17 @@ namespace CppSharp.Generators.CSharp
@@ -858,10 +858,17 @@ namespace CppSharp.Generators.CSharp
|
|
|
|
|
WriteLine("public {0} {1}", prop.Type, prop.Name); |
|
|
|
|
WriteStartBraceIndent(); |
|
|
|
|
|
|
|
|
|
if (prop.Field != null) |
|
|
|
|
{ |
|
|
|
|
GeneratePropertyGetter(prop.Field, @class); |
|
|
|
|
GeneratePropertySetter(prop.Field, @class); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
if (prop.GetMethod != null) |
|
|
|
|
GeneratePropertyGetter(prop.GetMethod, @class); |
|
|
|
|
|
|
|
|
|
if (prop.SetMethod != null) |
|
|
|
|
{ |
|
|
|
|
GeneratePropertySetter(prop.SetMethod, @class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|