Changeset 927
- Timestamp:
- 12/09/08 14:27:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/DiscoveryService.cs
r750 r927 119 119 120 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 121 foreach(PluginInfo info in PluginManager.Manager.LoadedPlugins) { 125 if(info. Name == plugin.Name && info.Version == plugin.Version) return info;122 if(info.Assemblies.Contains(type.Assembly.Location)) return info; 126 123 } 127 124 return null;
Note: See TracChangeset
for help on using the changeset viewer.