Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/05/12 14:24:13 (12 years ago)
Author:
mkommend
Message:

#1923: Changed type discovery to return only generic types with exactly the same type parameter and adapted the unit test accordingly.

File:
1 edited

Legend:

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

    r8571 r8577  
    110110
    111111        if (baseTypeGenericArgument.IsGenericParameter ^ subTypeGenericArgument.IsGenericParameter) return false;
    112         if (baseTypeGenericArgument.IsAssignableFrom(subTypeGenericArgument)) continue;
     112        if (baseTypeGenericArgument == subTypeGenericArgument) continue;
    113113        if (!baseTypeGenericArgument.IsGenericParameter && !subTypeGenericArgument.IsGenericParameter) return false;
    114114
Note: See TracChangeset for help on using the changeset viewer.