Created
December 22, 2012 11:18
-
-
Save anonymous/4358500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public object ToDebugWithReturnAndTC(string param1, int param2) | |
{ | |
try | |
{ | |
throw new Exception("Foo"); | |
} | |
finally | |
{ | |
Debug.WriteLine("finally"); | |
} | |
} | |
.method public hidebysig instance object ToDebugWithReturnAndTC(string param1, int32 param2) cil managed | |
{ | |
.maxstack 1 | |
.locals init ( | |
[0] object CS$1$0000) | |
L_0000: nop | |
L_0001: nop | |
L_0002: ldstr "Foo" | |
L_0007: newobj instance void [mscorlib]System.Exception::.ctor(string) | |
L_000c: throw | |
L_000d: nop | |
L_000e: ldstr "finally" | |
L_0013: call void [System]System.Diagnostics.Debug::WriteLine(string) | |
L_0018: nop | |
L_0019: nop | |
L_001a: endfinally | |
.try L_0001 to L_000d finally handler L_000d to L_001b | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment