0

我有以下设置方法,但是我放入的对象value没有传递给被调用的方法:

.method public hidebysig specialname instance void set_SeatingCapacity(int32 'value') cil managed
{
    .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor()
    .maxstack 3
    L_0000: ldc.i4 0x6c
    L_0005: ldarg.0 
    L_0006: ldfld int32 Young3.FMSearch.Core.Entities.InGame.BaseObject::MemoryAddress
    L_000b: ldarg.1 
    L_000c: call void Young3.FMSearch.Core.Managers.PropertyInvoker::Set(int32, int32, object)
    L_0011: ret 
}

我想在L_000clike中调用该函数Set(0x6c, ldfld MemoryAddress, value)。前两个字段已正确发布到函数。有什么线索吗?当做类似的事情并查看 Reflector 中的定义时,它看起来相当不错。

4

1 回答 1

1

我不得不做一个box int32,或者通过制作SetSet<T>

于 2009-11-28T17:07:02.347 回答