Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void TestRef(ref int x)
- {
- x++;
- }
- public static void Test(int x)
- {
- x++;
- }
- IL_0000: nop
- IL_0001: ldarg.0
- IL_0002: ldc.i4.1
- IL_0003: add
- IL_0004: starg.s x
- IL_0006: ret
- IL_0000: nop
- IL_0001: ldarg.0
- IL_0002: ldarg.0
- IL_0003: ldind.i4
- IL_0004: ldc.i4.1
- IL_0005: add
- IL_0006: stind.i4
- IL_0007: ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement