我可以阅读.net创建的dll文件吗 [英] Can I read .net created dll file

查看:76
本文介绍了我可以阅读.net创建的dll文件吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在类库中创建一些函数,该函数会生成.dll文件.
我的问题是我可以阅读dll文件的源代码吗?

I am creating some function in class library, which generates the .dll file.
My question is Can I read the source code of dll file?

推荐答案

您可以-整理-但是,如果您首先创建了DLL,怎么了?来源?
会有多好?取决于:您是否混淆了DLL?

看看Google上的Reflector.
You can - sort off - but if you created the DLL in the first place, what happened to the source?
How good will it be? Depends: did you obfuscate your DLL?

Look at Reflector on Google.


抱歉,我的建议不切实际,但最好现实一点,以后再受苦.

如果您的源代码是您自己的,并且您删除了源代码的唯一可用副本,则即使您不想进行任何改进,也应立即停止使用它.使用二进制表示支持错误的安全感.仅当您可以再次复制它时,才可以使用该代码-从其创建者处下载或重建它.不使用任何版本控制系统就停止开发任何东西!

现在要做什么?读我的嘴唇:
您必须再次开发此DLL!或完全放弃使用它.
它甚至对您有用.高质量的优质产品值得对其进行两次开发;第二次使用第一次尝试时的正面和负面经验.抱歉,您不喜欢它.顺便说一句,即使是最好的代码生成器也无法满足您的需求.您始终可以在IL中反汇编DLL,但是有什么用?您是否听说过熵和不可逆函数.从源代码构建二进制文件并删除源代码会增加熵.这是不可逆的.

您需要重新开发它.做任何其他事情或假装其他任何事情都会很快帮助您使开发面临风险.再次抱歉.

祝你好运,
—SA
I''m sorry for the bitter advice, but it''s better to be realistic that suffer later.

If you the source code is yours and you deleted the only available copy of source code, you should discontinue using it right away, even if you did not want any improvement. Using the binary means supporting false sense of safety. You only can use the code if you can reproduce it again — download from the creator of it or rebuild it. Stop developing anything without using some revision control system!

What to do now? Read my lips:
You have to develop this DLL again! Or give up using it completely.
It can be even useful for you. Good big quality product deserved developing it twice; second time you use your positive and negative experience of your first attempt. Sorry you did not like it. By the way, even the best generator of the code will not get you what you want. You can always disassemble your DLL in IL though, but what''s the use? Did you ever heard of entropy and irreversable functions. Building a binary from source and deleting source increase the entropy. This is irreversable.

You need to develop it again. Doing anything else or pretending anything else would soon help you puts your development to risk. Sorry again.

Good luck,
—SA


这篇关于我可以阅读.net创建的dll文件吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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