Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/09 17:45:45 (14 years ago)
Author:
gkronber
Message:

Worked on plugin infrastructure refactoring. (Fully functional revision). #799

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/Attributes/PluginAttribute.cs

    r2481 r2488  
    3030  /// </summary>
    3131  [AttributeUsage(AttributeTargets.Class)]
    32   public class PluginDescriptionAttribute : System.Attribute {
     32  public class PluginAttribute : System.Attribute {
    3333    private string name;
    3434    /// <summary>
     
    4949    //}
    5050
    51     //private string description;
    52     ///// <summary>
    53     ///// Gets or sets the description of the plugin.
    54     ///// </summary>
    55     //public string Description {
    56     //  get { return description; }
    57     // set { description = value; }
    58     //}
     51    private string description;
     52    /// <summary>
     53    /// Gets or sets the description of the plugin.
     54    /// </summary>
     55    public string Description {
     56      get { return description; }
     57      // set { description = value; }
     58    }
    5959
    6060    /// <summary>
    61     /// Initializes a new instance of <see cref="PluginDescriptionAttribute"/>.
     61    /// Initializes a new instance of <see cref="PluginAttribute"/>.
    6262    /// <param name="name">Name of the plugin</param>
    6363    /// </summary>
    64     public PluginDescriptionAttribute(string name) {
    65       this.name = name;
     64    public PluginAttribute(string name)
     65      : this(name, "") {
    6666    }
    6767
    68     ///// <summary>
    69     ///// Initializes a new instance of <see cref="PluginDescriptionAttribute"/>.
    70     ///// <param name="name">Name of the plugin</param>
    71     ///// <param name="description">Description of the plugin</param>
    72     ///// </summary>
    73     //public PluginDescriptionAttribute(string name, string description)
    74     //  : this(name, description, "") {
    75     //}
     68    /// <summary>
     69    /// Initializes a new instance of <see cref="PluginAttribute"/>.
     70    /// <param name="name">Name of the plugin</param>
     71    /// <param name="description">Description of the plugin</param>
     72    /// </summary>
     73    public PluginAttribute(string name, string description) {
     74      this.name = name;
     75      this.description = description;
     76    }
    7677
    7778    ///// <summary>
Note: See TracChangeset for help on using the changeset viewer.