Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public static void TestRef(ref int x)
  2. {
  3. x++;
  4. }
  5. public static void Test(int x)
  6. {
  7. x++;
  8. }
  9.  
  10. IL_0000: nop
  11. IL_0001: ldarg.0
  12. IL_0002: ldc.i4.1
  13. IL_0003: add
  14. IL_0004: starg.s x
  15. IL_0006: ret
  16.  
  17. IL_0000: nop
  18. IL_0001: ldarg.0
  19. IL_0002: ldarg.0
  20. IL_0003: ldind.i4
  21. IL_0004: ldc.i4.1
  22. IL_0005: add
  23. IL_0006: stind.i4
  24. IL_0007: ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement