I miss Visual Basic's “On Error Resume Next” in C#. How should I be handing errors now?
问题 In Visual Basic I wrote just On Error Resume Next in the head of my program and errors were suppressed in the entire project. Here in C# I miss this feature very much. The usual try-catch handling for every single procedure is not only very time-intensive, it brings undesired effects. If an error is encountered, even if handled, the code doesn't continue from the point it occurred. With On Error Resume Next , the code continued from the point of error, skipping just the function call that