How do I create custom error patterns?

We're using an obfuscator to protect our software. For some reason, the obfuscator has troubles processing nested try\catch blocks. Is it possible to create a custom check in Resharper that would highlight occurences of try\catch or using within catch blocks and prevent the solution from compiling?

1 comment
Comment actions Permalink


You may use 'Search with Pattern' feature of ReSharper. It is located in the 'ReSharper | Options | Code Inspection | Custom Patterns' dialog.
Here's a link to some useful blogbosts about it as well:

Hope this helps.


Please sign in to leave a comment.