Skip to content

Instantly share code, notes, and snippets.

@SimonCropp
Forked from anonymous/gist:4358500
Created December 22, 2012 11:22
Show Gist options
  • Save SimonCropp/4358507 to your computer and use it in GitHub Desktop.
Save SimonCropp/4358507 to your computer and use it in GitHub Desktop.
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