Changeset 2488 for branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs
- Timestamp:
- 11/12/09 17:45:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs
r2481 r2488 37 37 public PluginBase() { } 38 38 39 private Plugin DescriptionAttribute PluginDescriptionAttribute {39 private PluginAttribute PluginAttribute { 40 40 get { 41 object[] pluginAttributes = this.GetType().GetCustomAttributes(typeof(Plugin DescriptionAttribute), false);41 object[] pluginAttributes = this.GetType().GetCustomAttributes(typeof(PluginAttribute), false); 42 42 // exactly one attribute of the type PluginDescriptionAttribute must be given 43 43 if (pluginAttributes.Length != 1) { 44 throw new InvalidPluginException("Found multiple Plugin DescriptionAttributes on type " + this.GetType());44 throw new InvalidPluginException("Found multiple PluginAttributes on type " + this.GetType()); 45 45 } 46 return (Plugin DescriptionAttribute)pluginAttributes[0];46 return (PluginAttribute)pluginAttributes[0]; 47 47 } 48 48 } … … 52 52 public string Name { 53 53 get { 54 return Plugin DescriptionAttribute.Name;54 return PluginAttribute.Name; 55 55 } 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.