Changeset 2686
- Timestamp:
- 01/26/10 17:31:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/ApplicationManager.cs
r2644 r2686 186 186 /// <returns>Enumerable of the created instances.</returns> 187 187 internal static IEnumerable<object> GetInstances(Type type) { 188 return from t in GetTypes(type, true)189 select Activator.CreateInstance(t);188 return (from t in GetTypes(type, true) 189 select Activator.CreateInstance(t)).ToList(); 190 190 } 191 191 … … 214 214 return from asm in AppDomain.CurrentDomain.GetAssemblies() 215 215 where !string.IsNullOrEmpty(asm.Location) && 216 pluginDesc.Assemblies.Any(asmPath => 217 Path.GetFullPath(asmPath).Equals(Path.GetFullPath(asm.Location), 216 pluginDesc.Assemblies.Any(asmPath => 217 Path.GetFullPath(asmPath).Equals(Path.GetFullPath(asm.Location), 218 218 StringComparison.CurrentCultureIgnoreCase)) 219 219 from t in GetTypes(type, asm, onlyInstantiable)
Note: See TracChangeset
for help on using the changeset viewer.