tagged [finally]

Why does this "finally" execute?

Why does this "finally" execute? If you run the code below it actually executes the finally after every call to the goto: Why?

12 May at 20:18

Using statement and try-catch()-finally repetition?

Using statement and try-catch()-finally repetition? The using(...) statement is syntactic sugar for try{} finally {}. But if I then have a using statement like below: Now I want to catch the exception...

15 Sep at 17:54

Curious C# using statement expansion

Curious C# using statement expansion I've run ildasm to find that this: generates IL code that is equivalent to this:

3 Jun at 20:28

C# Time of finally execution

C# Time of finally execution Take this code: ``` using System; namespace OddThrow { class Program { static void Main(string[] args) { try { throw new Exception("Excepti...

19 May at 20:20