using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.CodeGeneration { /// /// Represents a property code object. /// /// public class Property : CodeObject { /// /// Gets or sets the property name. /// public String Name { get; set; } /// /// Gets or sets the property type. /// public String Type { get; set; } /// /// Gets or sets the property description. /// public String Description { get; set; } /// /// Gets or sets the property setter modifier. /// public CodeObjectModifier SetterModifier { get; set; } /// /// Gets or sets a value indicating whether this property has a setter. /// public bool HasSetter { get; set; } /// /// Gets or sets the content of the setter. /// public String SetterContent { get; set; } /// /// Gets or sets the content of the getter. /// public String GetterContent { get; set; } /// /// Gets the private field. /// /// public virtual String GetPrivateField() { return "_" + Name.ToLower(); } /// /// Initializes a new instance of the class. /// public Property() : base() { Name = "MyProperty"; Type = "int"; SetterModifier = CodeObjectModifier.None; } /// /// Initializes a new instance of the class. /// /// The name. /// The type. public Property(String name, String type) : this() { Name = name; Type = type; } } }