在C#DLL中更改一个CS文件 [英] Change one cs file in C# dll

查看:307
本文介绍了在C#DLL中更改一个CS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对C#编程一无所知。

I have no idea about C# programming.

我的问题是我有一个包含许多.cs文件的DLL文件。在那些.cs文件之一中实现的一种方法编写不佳,从而降低了整个应用程序的速度。我试图用NET Reflector反编译整个DLL,但成功但出现14个错误。然后,我改进了一个.cs文件,并尝试再次将所有.cs编译回.DLL。您可能会怀疑,在Visual Studio中我遇到了100多个编译错误。我认为这是由于反编译代码质量差而发生的。

My problem is that I have one DLL file consisting of many .cs files. One method implemented in one of those .cs files is written poorly and slowing down the whole application. I tried to decompile whole DLL with NET Reflector and succeed but with 14 errors. Then I improved my one .cs file and tried to compile all .cs back to .DLL once again. As you suspect, I ended with more that 100 compilation errors in Visual Studio. I assume this is happening because of poor quality of the decompiled code.

我有什么可以做的,而无需花费1000个小时来学习C#,理解所有10MB的源.cs文件,重写它们并编译回DLL吗?

Is there anything that I can do with it without spending 1000 hours to learn C#, understanding all 10MB of source .cs files, rewriting them and compiling back to DLL?

推荐答案

如果您仍希望更改dll,则可以使用 IL spy来代替扩展类

if you still looking to change dll, instead of extending the class, you can use IL spy with reflexil.


  • 这可以让您更改dll并保存。

  • 您可以轻松地对DLL进行小的更改。

这篇关于在C#DLL中更改一个CS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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