How do I detect and correct usless try catch blocks? [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I've started using the .Net Complier Platform (Roslyn) to assist with enforcing coding standards. One issue I'm struggling with is discovering and catching useless try...catch blocks. For example: // Would like to have this detected and offer to remove the try...catch try { // Do some work } catch