Changeset 2785 for trunk/sources
- Timestamp:
- 02/12/10 13:03:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/ApplicationManager.cs
r2748 r2785 235 235 PluginDescription pluginDesc = (PluginDescription)pluginDescription; 236 236 return from asm in AppDomain.CurrentDomain.GetAssemblies() 237 where ! string.IsNullOrEmpty(asm.Location) // ignore dynamically generated assemblies237 where !IsDynamicAssembly(asm) 238 238 where pluginDesc.AssemblyLocations.Any(location => location.Equals(Path.GetFullPath(asm.Location), StringComparison.CurrentCultureIgnoreCase)) 239 239 from t in GetTypes(type, asm, onlyInstantiable) 240 240 select t; 241 } 242 243 private static bool IsDynamicAssembly(Assembly asm) { 244 return (asm is System.Reflection.Emit.AssemblyBuilder) || string.IsNullOrEmpty(asm.Location); 241 245 } 242 246
Note: See TracChangeset
for help on using the changeset viewer.