Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/31/11 10:42:06 (13 years ago)
Author:
gkronber
Message:

#1454: renamed parameter and minor changes.

File:
1 edited

Legend:

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

    r5850 r5903  
    8989    /// (interfaces, abstract classes... are not returned)</remarks>
    9090    /// <returns>Enumerable of the discovered types.</returns>
    91     public IEnumerable<Type> GetTypes(IEnumerable<Type> types, bool onlyInstantiable = true, bool allTypes = true) {
     91    public IEnumerable<Type> GetTypes(IEnumerable<Type> types, bool onlyInstantiable = true, bool assignableToAllTypes = true) {
    9292      IEnumerable<Type> result = GetTypes(types.First(), onlyInstantiable);
    9393      foreach (Type type in types.Skip(1)) {
    9494        IEnumerable<Type> discoveredTypes = GetTypes(type, onlyInstantiable);
    95         if (allTypes) result = result.Intersect(discoveredTypes);
     95        if (assignableToAllTypes) result = result.Intersect(discoveredTypes);
    9696        else result = result.Union(discoveredTypes);
    9797      }
    98 
    99       if (!allTypes) return result.Distinct();
    10098      return result;
    10199    }
     
    194192    /// <returns></returns>
    195193    /// <throws>NotSupportedException</throws>
    196     public IEnumerable<Type> GetTypes(IEnumerable<Type> types, IPluginDescription plugin, bool onlyInstantiable = true, bool allTypes = true) {
     194    public IEnumerable<Type> GetTypes(IEnumerable<Type> types, IPluginDescription plugin, bool onlyInstantiable = true, bool assignableToAllTypes = true) {
    197195      throw new NotSupportedException("LightweightApplicationManager doesn't support type discovery for plugins.");
    198196    }
Note: See TracChangeset for help on using the changeset viewer.