- Timestamp:
- 11/24/11 17:04:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/SandboxApplicationManager.cs
r7066 r7069 262 262 /// <returns>Enumerable of the discovered types.</returns> 263 263 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; 270 274 } 271 275
Note: See TracChangeset
for help on using the changeset viewer.