当前位置:网站首页>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边栏推荐
- TensorBoard快速入门(Pytorch使用TensorBoard)
- VM11289 WAService. js:2 Do not have __ e handler in component:
- Enterprise custom form engine solution (XI) -- form rule engine 1
- SWM32系列教程4-端口映射及串口应用
- An example of HP array card troubleshooting
- Define a structure fraction to represent a fraction, which is used to represent fractions such as 2/3 and 5/6
- Rsync remote synchronization
- Hongmeng fourth training
- kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
- 互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
猜你喜欢

QT学习日记9——对话框

Take you to API development by hand

Unity notes unityxr simple to use

One brush 149 force deduction hot question-10 regular expression matching (H)

IntelliJ 2021.3 short command line when running applications

kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)

【RT-Thread】nxp rt10xx 设备驱动框架之--rtc搭建和使用

Type conversion, variable
![[RT thread] NXP rt10xx device driver framework -- Audio construction and use](/img/85/32a83eaa4b7f5b30d4d7c4f4c32791.png)
[RT thread] NXP rt10xx device driver framework -- Audio construction and use

The largest matrix (H) in a brush 143 monotone stack 84 histogram
随机推荐
人生还在迷茫?也许这些订阅号里有你需要的答案!
i++与++i的区别:通俗易懂的讲述他们的区别
【RT-Thread】nxp rt10xx 设备驱动框架之--rtc搭建和使用
New library online | cnopendata China bird watching record data
自动渗透测试工具核心功能简述
Kotlin learning quick start (7) -- wonderful use of expansion
Define a structure fraction to represent a fraction, which is used to represent fractions such as 2/3 and 5/6
Electronic Science and technology 20th autumn "Microcomputer Principle and application" online assignment 2 [standard answer]
Online assignment 3 of mobile Internet technology in the 20th autumn of electronic technology [standard answer]
2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)
HP 阵列卡排障一例
毕业总结
Where is the monitoring page of RDS database?
Leetcode13. Roman numeral to integer (three solutions)
How to read the source code [debug and observe the source code]
Javescript variable declaration -- VaR, let, const
Applet setting multi account debugging
Talk about several methods of interface optimization
Simple use of unity pen XR grab
kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)