Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/11 17:04:12 (12 years ago)
Author:
mkommend
Message:

#1689: Corrected type discovery and adapted MainFormManager to work correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/SandboxApplicationManager.cs

    r7066 r7069  
    262262    /// <returns>Enumerable of the discovered types.</returns>
    263263    private static IEnumerable<Type> GetTypes(Type type, Assembly assembly, bool onlyInstantiable) {
    264       return from t in assembly.GetTypes()
    265              where !IsNonDiscoverableType(t)
    266              where CheckTypeCompatibility(type, t)
    267              where onlyInstantiable == false ||
    268                 (!t.IsAbstract && !t.IsInterface && !t.HasElementType && !t.IsGenericTypeDefinition)
    269              select BuildType(t, type);
     264      var buildTypes = from t in assembly.GetTypes()
     265                       where !IsNonDiscoverableType(t)
     266                       where CheckTypeCompatibility(type, t)
     267                       where onlyInstantiable == false ||
     268                             (!t.IsAbstract && !t.IsInterface && !t.HasElementType)
     269                       select BuildType(t, type);
     270
     271      return from t in buildTypes
     272             where onlyInstantiable == false || !t.IsGenericTypeDefinition
     273             select t;
    270274    }
    271275
Note: See TracChangeset for help on using the changeset viewer.