反汇编程序集,使用了哪种编程语言 [英] Decompiled assembly, which programming language was used

查看:113
本文介绍了反汇编程序集,使用了哪种编程语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您怎么知道反汇编程序集是用C#还是VB.net编写的?

How would you know if a decompiled assembly was written in C# or VB.net?

推荐答案

请记住,有一个实用程序程序集在VB项目中被自动引用,但在C#项目中未被自动引用。我说的是.net 1.1时代(Visual Studio 2003)。这使得访问Explorer外壳的各个部分非常容易。
我一直在寻找,但一直找不到(如果我记得当时的样子,它将进行编辑)。它可能在以后的Visual Studio中已作废/删除,但这对于原始VB来说是一个非常有力的指标(认为C#程序集也可以引用它)。

编辑:就像汉斯在评论中指出的那样,程序集是Microsoft.VisualBasic。

Edit: As Hans noted in his comment the assembly is Microsoft.VisualBasic.

除此之外,通过查找模式可能是可行的不同版本的C#和VB编译器使用的IL来编译不同的通用语言结构。

Other than that, it is probably doable by finding patterns of IL used by the different versions of C# vs VB compilers to compile different common language constructs.

如果只想看一下已编译汇编程序源代码的近似值, 。如果未对原始程序集进行模糊处理,ILSpy,.Net Reflector或dotPeek等.Net反编译器将做得很好。

If all you want is to see an approximation of the source code for compiled assemblies. .Net decompilers such as ILSpy, .Net Reflector or dotPeek do a pretty good job if the original assembly was not obfuscated.

这篇关于反汇编程序集,使用了哪种编程语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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