Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

"The selected text cannot contain statements in different blocks"

$
0
0

The following code can be extracted by VS to generate a method (Refactor > Extract Method...):

try
{

}
catch(Exception ex)
{

}
finally
{

}

However, extracting the following code will generate an error:

try
{

}
catch(Exception ex)
{

}
finally
{

}
int iDebug = 0;


Could anyone shed some light on this?


Hong



Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>