I’ve been investigating how I can alter the behaviour of c# method execution specifically when an exception occurs to support:
Retry/Continue: to be able to try the same statement again and carry on once successful Skip/Resume: moves to the next statement and continues with execution
I’ve read the many responses that this is poor coding practice, but this is for a code converter, which is converting millions of lines of code from a language where this functionality is supported. I need this to be functionally consistent.
On Error Resume Next
is just as dreadful as you'd imagine. Only good advice is to not convert, the source language just doesn't matter much in .NET. Or do it mechanically with a language converter. Or to consider why you are converting, surely it is to fix the rather broken existing code? It is broken, don't repeat the same mistakes. – Charteris