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