Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/17/11 17:02:34 (14 years ago)
Author:
gkronber
Message:

#1432: implemented NonDiscoverableType attribute and removed attributed types from type discovery.

File:
1 edited

Legend:

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

    r5445 r5741  
    122122               where CheckTypeCompatibility(type, t)
    123123               where onlyInstantiable == false || (!t.IsAbstract && !t.IsInterface && !t.HasElementType)
     124               where !IsNonDiscoverableType(t)
    124125               select BuildType(t, type);
    125126      }
     
    130131        return Enumerable.Empty<Type>();
    131132      }
     133    }
     134
     135    private static bool IsNonDiscoverableType(Type t) {
     136      return t.GetCustomAttributes(typeof(NonDiscoverableTypeAttribute), false).Any();
    132137    }
    133138
Note: See TracChangeset for help on using the changeset viewer.