Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int MyMethod(int x)
- {
- try
- {
- return x + 8;
- }
- catch
- {
- throw;
- }
- }
- public int MyMethod(int x)
- {
- return x + 8;
- }
- .method public hidebysig instance int32 MyMethod(int32 x) cil managed
- {
- // Code size 4 (0x4)
- .maxstack 8
- IL_0000: ldarg.1
- IL_0001: ldc.i4.8
- IL_0002: add
- IL_0003: ret
- } // end of method MyClass::MyMethod
- .method public hidebysig instance int32 MyMethod(int32 x) cil managed
- {
- // Code size 11 (0xb)
- .maxstack 2
- .locals init ([0] int32 CS$1$0000)
- .try
- {
- IL_0000: ldarg.1
- IL_0001: ldc.i4.8
- IL_0002: add
- IL_0003: stloc.0
- IL_0004: leave.s IL_0009
- } // end .try
- catch [mscorlib]System.Object
- {
- IL_0006: pop
- IL_0007: rethrow
- } // end handler
- IL_0009: ldloc.0
- IL_000a: ret
- } // end of method MyClass::MyMethod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement