当前位置:网站首页>Assembly for unloading Loadfrom() loaded assembly - unloading the assembly loaded with assembly LoadFrom()
Assembly for unloading Loadfrom() loaded assembly - unloading the assembly loaded with assembly LoadFrom()
2022-07-03 17:27:00 【Superior virtue and weak water】
problem :
I need to check the time amount to run GetTypes() after loading the dll. I need to load dll Post inspection operation GetTypes() Time amount of .The code is as follows. The code is as follows .
Assembly assem = Assembly.LoadFrom(file);sw = Stopwatch.StartNew();var types1 = assem.GetTypes();sw.Stop();double time1 = sw.Elapsed.TotalMilliseconds;
I'd like to unload and reload the dll to check the time to spend in running GetTypes() again. I want to unload and reload dll Check to run again GetTypes() The time it takes .
- How can I unload it? How can I uninstall it ?
assem = null
is good enough?assem = null
Is that enough? ? - Is there an explicit way to call garbage collector to reclaim the resource allocated to assem? Is there a clear way to call the garbage collector to recycle the garbage allocated to assem Resources for ?
Solution :
Reference resources : https://stackoom.com/en/question/QG24边栏推荐
- SVN完全备份svnadmin hotcopy
- Electronic Science and technology 20th autumn "Microcomputer Principle and application" online assignment 2 [standard answer]
- Redis: operation commands for list type data
- What is the difference between cloud server and cloud virtual machine
- WEB-UI自动化测试-最全元素定位方法
- 【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
- Life is still confused? Maybe these subscription numbers have the answers you need!
- Talk about several methods of interface optimization
- [RT thread] NXP rt10xx device driver framework -- Audio construction and use
- [combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
猜你喜欢
Design e-commerce spike
Golang unit test, mock test and benchmark test
How do large consumer enterprises make digital transformation?
【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
大消费企业怎样做数字化转型?
Type conversion, variable
Hongmeng fourth training
2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)
Luogu: p2685 [tjoi2012] Bridge
1164 Good in C
随机推荐
免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据
September, 19, "cam principle and application" online assignment [Full Score answer]
问题随记 —— 在 edge 上看视频会绿屏
STM32H7 HAL库SPI DMA发送一直处于busy的解决办法
Comparison of kotlin collaboration + retro build network request schemes
1164 Good in C
C language string inversion
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
毕业总结
Squid service startup script
Solution to long waiting time of SSH connection to remote host
[combinatorics] recursive equation (solution of linear non-homogeneous recursive equation with constant coefficients | standard form and general solution of recursive equation | proof of general solut
HP 阵列卡排障一例
The largest matrix (H) in a brush 143 monotone stack 84 histogram
SQL injection database operation foundation
1164 Good in C
AcWing 3438. Number system conversion
Free data | new library online | cnopendata complete data of China's insurance intermediary outlets
Open vsftpd port under iptables firewall
How to enforce parameters in PowerShell- How do I make parameters mandatory in PowerShell?