当前位置:网站首页>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 = nullis good enough?assem = nullIs 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边栏推荐
- AcWing 3438. Number system conversion
- i++与++i的区别:通俗易懂的讲述他们的区别
- 免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据
- Javescript variable declaration -- VaR, let, const
- HP 阵列卡排障一例
- 鸿蒙第四次培训
- 【RT-Thread】nxp rt10xx 设备驱动框架之--Audio搭建和使用
- Answer to the homework assessment of advanced English reading (II) of the course examination of Fuzhou Normal University in February 2022
- 鸿蒙第三次培训
- 企业级自定义表单引擎解决方案(十一)--表单规则引擎1
猜你喜欢

UE4 official charging resources, with a total price of several thousand

Simple use of unity pen XR grab

SWM32系列教程4-端口映射及串口应用

问题随记 —— 在 edge 上看视频会绿屏

新库上线 | CnOpenData中国保险机构网点全集数据

1147_ Makefile learning_ Target files and dependent files in makefile

Life is still confused? Maybe these subscription numbers have the answers you need!

Type conversion, variable

Hongmeng fourth training

Design e-commerce spike
随机推荐
[UE4] brush Arctic pack high quality Arctic terrain pack
C language modifies files by line
Thread pool: the most common and error prone component of business code
The difference between i++ and ++i: tell their differences easily
One brush 145 force deduction hot question-2 sum of two numbers (m)
新库上线 | CnOpenData中国观鸟记录数据
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
Kotlin learning quick start (7) -- wonderful use of expansion
POM in idea XML graying solution
University of Electronic Science and technology, accounting computerization, spring 20 final exam [standard answer]
How to train mask r-cnn model with your own data
Unity notes unityxr simple to use
[combinatorics] recursive equation (case where the non-homogeneous part is exponential | example where the non-homogeneous part is exponential)
绝对定位时元素水平垂直居中
SSH连接远程主机等待时间过长的解决方法
Luogu: p2685 [tjoi2012] Bridge
visual studio “通常每个套接字地址(协议/网络地址/端口)只允许使用一次“
[RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework
SQL injection database operation foundation
Host based intrusion system IDS