引用一个大的DLL一个单一的方法 [英] Reference a big DLL for a single method

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

问题描述

我想从一个大的类库DLL在C#中使用一个单一的方法。

是否有业绩或任何其他什么缺点?
我应该读的方法,code与反思的工具,其复制粘贴到我的项目?

更新:硬盘空间不是问题。我的应用程序是Web应用程序。

解决方案
  

是否有业绩或任何其他什么缺点?

只有一个是真正重要的是你分配的大小,如果它关系到你。 (用户下载一个30 MB的文件,而不是2 MB的)。性能差异将是微不足道的。集绑定和验证强名称(如果它的签署)散列可能需要更长的时间,但不太可能明显给用户。

  

我应该读的方法,code与反思的工具,其复制粘贴到我的项目?

也许不明白;大多数的许可条款,禁止逆向工程和/或只有部分分布。检查许可证,如果有,就看你甚至可以做到第一。

I want to use a single method from a big Class library-dll in C#.

Are there any drawbacks of performance or anything else?
Should I "read" the method code with reflection tool and copy-paste it to my project?

Update: The hard disk space isn't an issue. My application is web app.

解决方案

Are there any drawbacks of performance or anything else?

The only one that is actually important is the size of your distributable, if it matters to you. (Users downloading a 30 MB file instead of a 2 MB one). Performance differences will be negligible. Assembly binding and verifying the Strong Name (if it's signed) hash may take longer, but unlikely to be noticeable to a user.

Should I "read" the method code with reflection tool and copy-paste it to my project?

Probably not; most licensing terms prohibit reverse engineering and/or only partial distribution. Check the license, if any, to see if you can even do it first.

这篇关于引用一个大的DLL一个单一的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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