DLL延迟加载 [英] DLL lazy loading

查看:144
本文介绍了DLL延迟加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个复杂的.NET类库,它依赖于其他几个.NET类库,但是并不是所有情况下都使用它们.有什么方法可以将它们标记为延迟加载",如果知道根本不使用它,可以将其从文件夹中删除吗?

I have complex .NET class library is dependent on several other .NET class libraries, but not all of them are used in every situation. Is there any way to mark them as 'Lazy loading', so I can delete it from folder if I know it is not used at all?

推荐答案

所有程序集始终按需加载.如果您从文件夹中删除程序集,则该应用程序将一直运行到需要加载该程序集的位置.

All assemblies are always loaded on demand. If you remove an assembly from a folder, the application will work until the point where it needs to load that assembly.

这篇关于DLL延迟加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆