2009-11-28 95 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>