What is the equivalent to "On Error Resume Next" in C#? I have a bunch of assignment statements, and if there is an error I just want it to go on to the next one, but I don't want to have to put Try {}/Catch {} around each one since there are quite a few statements?
Thanksthe vb.net equivalent is "on error resume next"
check what this article has to say about it:Optimize VB.NET Code Performance
Thanks, I relised it works for VB.Net, but I am using C#.
I ended up putting try and Catches around each statement.
oh sorry, no such thing in C
0 comments:
Post a Comment