关于ildasm反编译DLL的问题(100)

L

ljy_17

Unregistered / Unconfirmed
GUEST, unregistred user!
今天心血来潮用ildasm把.net的DLL文件反编译了。我要修改以下代码的(附后) IL_002a: brfalse.s IL_003f这行。问题是修改完之后用ilasm.exe无法编译成DLL。小弟第一玩.net 不是很懂。编译的时候提示warning -- Method has no body, 'ret' emitted。试过反编译完不做修改不也行。很是郁闷。哪位大虾帮帮忙,谢谢了。 .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 74 (0x4a) .maxstack 2 .locals init (bool V_0) IL_0000: ldarg.0 IL_0001: call instance void [System.Web.Services]System.Web.Services.Protocols.SoapHttpClientProtocol::.ctor() IL_0006: nop IL_0007: nop IL_0008: ldarg.0 IL_0009: call class Business.Properties.Settings Business.Properties.Settings::get_Default() IL_000e: callvirt instance string Business.Properties.Settings::get_Business_WebReg_Service() IL_0013: call instance void Business.WebReg.Service::set_Url(string) IL_0018: nop IL_0019: ldarg.0 IL_001a: ldarg.0 IL_001b: call instance string Business.WebReg.Service::get_Url() IL_0020: call instance bool Business.WebReg.Service::IsLocalFileSystemWebService(string) IL_0025: ldc.i4.0 IL_0026: ceq IL_0028: stloc.0 IL_0029: ldloc.0 IL_002a: brfalse.s IL_003f IL_002c: nop IL_002d: ldarg.0 IL_002e: ldc.i4.1 IL_002f: call instance void Business.WebReg.Service::set_UseDefaultCredentials(bool) IL_0034: nop IL_0035: ldarg.0 IL_0036: ldc.i4.0 IL_0037: stfld bool Business.WebReg.Service::useDefaultCredentialsSetExplicitly IL_003c: nop IL_003d: br.s IL_0048 IL_003f: nop IL_0040: ldarg.0 IL_0041: ldc.i4.1 IL_0042: stfld bool Business.WebReg.Service::useDefaultCredentialsSetExplicitly IL_0047: nop IL_0048: nop IL_0049: ret } // end of method Service::.ctor
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
736
import
I
I
回复
0
查看
700
import
I
顶部