I came across a problem today in some code I'm cleaning up and can't convince myself ReSharper's behavior is correct.
I am trying to do an Extract Method on some code that lies inside a try/catch block. The code I'm looking to extract throws exceptions. When I try to extract it, ReSharper says "Extracted block has more than one exit point."
Here's a very simple example that mimics the problem:
If I highlight lines 3-5 and try ExtractMethod I get the 'more than one exit point' message.
Is ReSharper correct and I'm overlooking something?