当前位置:网站首页>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边栏推荐
- kubernetes资源对象介绍及常用命令(四)
- 基于主机的入侵系统IDS
- 互联网医院HIS管理平台源码,在线问诊,预约挂号 智慧医院小程序源码
- IntelliJ 2021.3 short command line when running applications
- QT学习日记9——对话框
- 自动渗透测试工具核心功能简述
- Collection of the most beautiful graduation photos in the graduation season, collection of excellent graduation photos
- How to train mask r-cnn model with your own data
- HP 阵列卡排障一例
- Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
猜你喜欢
Luogu: p2685 [tjoi2012] Bridge
[RT thread] NXP rt10xx device driver framework -- RTC construction and use
Notes on problems -- watching videos on edge will make the screen green
Thread pool: the most common and error prone component of business code
Vs2013 has blocked the installer, and ie10 needs to be installed
Internet Hospital his Management Platform source, online Inquiry, appointment Registration Smart Hospital Small program source
kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
鸿蒙第三次培训
How do large consumer enterprises make digital transformation?
Luogu: p1155 [noip2008 improvement group] double stack sorting (bipartite graph, simulation)
随机推荐
Collection of the most beautiful graduation photos in the graduation season, collection of excellent graduation photos
An example of HP array card troubleshooting
Take you to API development by hand
Golang unit test, mock test and benchmark test
i++与++i的区别:通俗易懂的讲述他们的区别
免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据
Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
New library online | cnopendata complete data of Chinese insurance institution outlets
Loop through JSON object list
1164 Good in C
数仓任务里面 跑SQL任务的时候用的数据库账号是在哪里配置的
简单配置PostFix服务器
【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
大消费企业怎样做数字化转型?
STM32H7 HAL库SPI DMA发送一直处于busy的解决办法
Enterprise custom form engine solution (XI) -- form rule engine 1
鸿蒙第三次培训
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
1146_ SiCp learning notes_ exponentiation
visual studio “通常每个套接字地址(协议/网络地址/端口)只允许使用一次“