Changeset 2481 for branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs
- Timestamp:
- 11/11/09 18:25:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs
r2475 r2481 56 56 } 57 57 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 default63 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 //} 70 70 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 default76 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 //} 83 83 84 84 /// <inheritdoc/>
Note: See TracChangeset
for help on using the changeset viewer.