Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2686


Ignore:
Timestamp:
01/26/10 17:31:37 (15 years ago)
Author:
mkommend
Message:

removed lazy loading in ApplicationManager GetInstances (ticket #799)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/ApplicationManager.cs

    r2644 r2686  
    186186    /// <returns>Enumerable of the created instances.</returns>
    187187    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();
    190190    }
    191191
     
    214214      return from asm in AppDomain.CurrentDomain.GetAssemblies()
    215215             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),
    218218                                                      StringComparison.CurrentCultureIgnoreCase))
    219219             from t in GetTypes(type, asm, onlyInstantiable)
Note: See TracChangeset for help on using the changeset viewer.