Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/11/09 18:25:15 (14 years ago)
Author:
gkronber
Message:

Refactored class Loader in plugin infrastructure. #799

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs

    r2475 r2481  
    5656    }
    5757
    58     /// <inheritdoc />
    59     public Version Version {
    60       get {
    61         var pluginAttribute = PluginDescriptionAttribute;
    62         // if the version is not set in the attribute then the version of the assembly is used as default
    63         if (string.IsNullOrEmpty(pluginAttribute.Version)) {
    64           return this.GetType().Assembly.GetName().Version;
    65         } else {
    66           return new Version(pluginAttribute.Version);
    67         }
    68       }
    69     }
     58    ///// <inheritdoc />
     59    //public Version Version {
     60    //  get {
     61    //    var pluginAttribute = PluginDescriptionAttribute;
     62    //    // if the version is not set in the attribute then the version of the assembly is used as default
     63    //    if (string.IsNullOrEmpty(pluginAttribute.Version)) {
     64    //      return this.GetType().Assembly.GetName().Version;
     65    //    } else {
     66    //      return new Version(pluginAttribute.Version);
     67    //    }
     68    //  }
     69    //}
    7070
    71     /// <inheritdoc />
    72     public string Description {
    73       get {
    74         var pluginAttribute = PluginDescriptionAttribute;
    75         // if the description is not explicitly set in the attribute then the name of the plugin is used as default
    76         if (string.IsNullOrEmpty(pluginAttribute.Description)) {
    77           return pluginAttribute.Name;
    78         } else {
    79           return pluginAttribute.Description;
    80         }
    81       }
    82     }
     71    ///// <inheritdoc />
     72    //public string Description {
     73    //  get {
     74    //    var pluginAttribute = PluginDescriptionAttribute;
     75    //    // if the description is not explicitly set in the attribute then the name of the plugin is used as default
     76    //    if (string.IsNullOrEmpty(pluginAttribute.Description)) {
     77    //      return pluginAttribute.Name;
     78    //    } else {
     79    //      return pluginAttribute.Description;
     80    //    }
     81    //  }
     82    //}
    8383
    8484    /// <inheritdoc/>
Note: See TracChangeset for help on using the changeset viewer.