Beispiel #1
0
 public static string saveEmbeddedAssemblyToDisk(AssemblyName assemblyName)
 {
     if (LoadedEmbeddedAssemblies.ContainsKey(assemblyName.str()))
         return saveAssemblyBytesToDisk(assemblyName.Name, LoadedEmbeddedAssemblies[assemblyName.str()]);
     //if not there try to reload it from the current loaded assemblies
     var assembly = loadFromEmbededResources(assemblyName.Name);
     if (assembly.notNull())
         if (LoadedEmbeddedAssemblies.ContainsKey(assemblyName.str()))
             return saveAssemblyBytesToDisk(assemblyName.Name, LoadedEmbeddedAssemblies[assemblyName.str()]);
     return null;
 }