Changeset 750 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 11/13/08 16:50:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/DiscoveryService.cs
r29 r750 117 117 return types.ToArray(); 118 118 } 119 120 public PluginInfo GetDeclaringPlugin(Type type) { 121 IPlugin[] plugins = GetInstances<IPlugin>(type.Assembly); 122 if(plugins.Length != 1) return null; 123 IPlugin plugin = plugins[0]; 124 foreach(PluginInfo info in PluginManager.Manager.LoadedPlugins) { 125 if(info.Name == plugin.Name && info.Version == plugin.Version) return info; 126 } 127 return null; 128 } 119 129 } 120 130 }
Note: See TracChangeset
for help on using the changeset viewer.