xiaoyanbot
V2EX  ›  .NET

为什么改 IL 代码的类型, 重新编译出来,会出错呢? 显示找不到

  •  
  •   xiaoyanbot · Jun 14, 2017 · 2401 views
    This topic created in 3281 days ago, the information mentioned may be changed or developed.

    IL_0008: ldc.i4 0x186b1

    IL_000d: stfld uint16 Demo.e::c

    //IL_000d: stfld int32 Demo.e::c

    IL_0012: ldarg.0

    IL_0013: call class Demo.n Demo.n::a()

    IL_0018: stfld class Demo.n Demo.e::e

    如上,第三行,我将类型 uint16 改为 int32 为什么会报错呢?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2665 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.