Converting IL to C# code

后端 未结 12 2173
青春惊慌失措
青春惊慌失措 2020-12-15 22:16

I need to convert the IL to c# code. I have an assembly and I am reading this assembly. I get MethodBody from MethodInfo and the methodbody has a method GetILAsByteArraY()

12条回答
  •  無奈伤痛
    2020-12-15 23:02

    The Lutz Roeder reflector was purchased and is no longer available for free download.

    There is now a free (once again) tool called ILSpy. I've found it to be very good, and it will not only generate C# code from IL but will also create a .csproj project if decompiling an entire DLL assembly.

提交回复
热议问题