예제 #1
0
 public void Unload(LoadedAssembly assembly)
 {
     if (App.Current != null)
     {
         App.Current.Dispatcher.VerifyAccess();
     }
     lock (assemblies) {
         assemblies.Remove(assembly);
         assembly.Dispose();
     }
     RequestGC();
 }
예제 #2
0
 public void Unload(LoadedAssembly assembly)
 {
     if (App.Current != null)
         App.Current.Dispatcher.VerifyAccess();
     lock (assemblies) {
         assemblies.Remove(assembly);
         assembly.Dispose();
     }
     RequestGC();
 }