Strange Visual Studio 2013 debugger bug
Try debugging the following code on Visual Studio 2013. Make sure you compile to x64 and set a the breakpoint at the var bar =… line. The code should throw an InvalidOperationException but instead gets to Console.WriteLine(). It works fine if you don’t set a breakpoint or just run without …