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/LightweightApplicationManager.cs

    r7066 r7069  
    124124        var assemblyTypes = assembly.GetTypes();
    125125
    126         return from t in assemblyTypes
    127                where !IsNonDiscoverableType(t)
    128                where CheckTypeCompatibility(type, t)
    129                where onlyInstantiable == false || (!t.IsAbstract && !t.IsInterface && !t.HasElementType && !t.IsGenericTypeDefinition)
    130                select BuildType(t, type);
     126        var buildTypes = from t in assemblyTypes
     127                         where !IsNonDiscoverableType(t)
     128                         where CheckTypeCompatibility(type, t)
     129                         where onlyInstantiable == false || (!t.IsAbstract && !t.IsInterface && !t.HasElementType)
     130                         select BuildType(t, type);
     131
     132        return from t in buildTypes
     133               where onlyInstantiable == false || !t.IsGenericTypeDefinition
     134               select t;
    131135      }
    132136      catch (TypeLoadException) {
Note: See TracChangeset for help on using the changeset viewer.