I load dll with this code:
var dom = AppDomain.CreateDomain("some"); var assem = Assembly.Load(File.ReadAllBytes("Dlib.dll")); var types = assem.GetTypes(); foreach (var type in types) Logger.Log(type.Name); AppDomain.Unload(dom); GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); After the domain is unloaded, the assembly can be obtained by removing the dump from the process.
Is it possible to completely unload it?