using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.CodeGeneration { /// /// Represents a class code object /// /// public class Class : CodeObject { /// /// Gets or sets the class name. /// public String Name { get; set; } /// /// Gets or sets the description. /// public String Description { get; set; } public List InheritsFrom { get; set; } /// /// Gets or sets the properties. /// public List Properties { get; set; } /// /// Gets or sets the dependency properties. /// public List DependencyProperties { get; set; } /// /// Gets or sets the methods. /// public List Methods { get; set; } /// /// Initializes a new instance of the class. /// public Class() : base() { Name = "Class1"; Properties = new List(); DependencyProperties = new List(); Methods = new List(); InheritsFrom = new List(); } /// /// Initializes a new instance of the class. /// /// The name. public Class(String name) : this() { Name = name; } /// /// Initializes a new instance of the class. /// /// The name. /// The inherits from. public Class(String name, params String[] inheritsFrom) : this(name) { if (inheritsFrom != null && inheritsFrom.Length > 0) { InheritsFrom = inheritsFrom.ToList(); } } } }