2009-11-28 61 views
0

我有以下setter方法的方法,但是我把value对象未接通调用方法:MSIL属性setter - 访问值字段

.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_000c,如Set(0x6c, ldfld MemoryAddress, value)。前两个字段正确发布到该函数。任何线索?在做类似的事情并查看Reflector中的定义时,它看起来相当不错。

回答

1

我必须做一个box int32,或通过SetSet<T>