Changeset 7502


Ignore:
Timestamp:
02/21/12 16:26:51 (7 years ago)
Author:
mkommend
Message:

#1779: Corrected IsDynamicAssembly check in SandboxApplicationManager.

File:
1 edited

Legend:

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

    r7492 r7502  
    235235      PluginDescription pluginDesc = (PluginDescription)pluginDescription;
    236236      return from asm in AppDomain.CurrentDomain.GetAssemblies()
    237              where !IsDynamicAssembly(asm)
     237             where !asm.IsDynamic
    238238             where pluginDesc.AssemblyLocations.Any(location => location.Equals(Path.GetFullPath(asm.Location), StringComparison.CurrentCultureIgnoreCase))
    239239             from t in GetTypes(type, asm, onlyInstantiable, includeGenericTypeDefinitions)
     
    249249      }
    250250      return result;
    251     }
    252 
    253     private static bool IsDynamicAssembly(Assembly asm) {
    254       return (asm is System.Reflection.Emit.AssemblyBuilder) || string.IsNullOrEmpty(asm.Location);
    255251    }
    256252
Note: See TracChangeset for help on using the changeset viewer.