From c02b7bf3a856877907218fa6b893d8a9a397a703 Mon Sep 17 00:00:00 2001 From: marcos henrich Date: Tue, 30 Jul 2013 10:09:17 +0100 Subject: [PATCH] Added Field to Property Declaration so now we can generate the property from a field instead of get or set methods. --- src/AST/Property.cs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/AST/Property.cs b/src/AST/Property.cs index 8367cc07..1b8b93a2 100644 --- a/src/AST/Property.cs +++ b/src/AST/Property.cs @@ -5,11 +5,6 @@ namespace CppSharp.AST /// public class Property : Declaration, ITypedDecl { - public Property() - { - - } - public Type Type { get { return QualifiedType.Type; } @@ -17,17 +12,12 @@ namespace CppSharp.AST public QualifiedType QualifiedType { get; set; } - public Method GetMethod - { - get; - set; - } + public Method GetMethod { get; set; } - public Method SetMethod - { - get; - set; - } + public Method SetMethod { get; set; } + + // The field that should be get and set by this property + public Field Field { get; set; } public override T Visit(IDeclVisitor visitor) {