順帶問一下
為何我看的程式碼跟您的都不相同呢 ?
我的這部分卻是
.method private hidebysig instance float32 GetTeamSkillFix(valuetype BuffType _type) cil managed
{
.maxstack 2
L_0000: ldarg.0
L_0001: ldfld class [mscorlib]System.Collections.Generic.Dictionary`2<valuetype BuffType, int32> PlayerFightObj::teamSkillFixed
L_0006: ldarg.1
L_0007: callvirt instance bool [mscorlib]System.Collections.Generic.Dictionary`2<valuetype BuffType, int32>::ContainsKey(!0)
L_000c: brfalse L_001f
L_0011: ldarg.0
L_0012: ldfld class [mscorlib]System.Collections.Generic.Dictionary`2<valuetype BuffType, int32> PlayerFightObj::teamSkillFixed
L_0017: ldarg.1
L_0018: callvirt instance !1 [mscorlib]System.Collections.Generic.Dictionary`2<valuetype BuffType, int32>::get_Item(!0)
L_001d: conv.r4
L_001e: ret
L_001f: ldc.r4 2
L_0024: ret
}
|