How to usedo a project-wide sweep for "Remove redundant catch" using Resharper?
Posted
by David McClelland
on Stack Overflow
See other posts from Stack Overflow
or by David McClelland
Published on 2010-04-28T20:55:38Z
Indexed on
2010/04/28
20:57 UTC
Read the original article
Hit count: 243
resharper
I am dealing with a large old codebase that has a lot of these:
try
{
...
}
catch
{
throw;
}
Resharper helpfully marks these and offers the option to "Remove redundant catch", but I don't like having to go through one-by-one, I would like to wipe them out all at once. Is there a way to do that with Resharper, possibly by integrating it in with "Code cleanup"?
© Stack Overflow or respective owner