C# equivalent to VB expression

J

Johnny Jörgensen

Can anybody tell me what the C# equivalent to VB's

Err.Clear()

is? As far as I can see, the Err object only exists in VB. But how do you
clear the error collection in C# then?

Cheers,
Johnny J.
 
J

Jon Skeet [C# MVP]

Johnny Jörgensen said:
Can anybody tell me what the C# equivalent to VB's

Err.Clear()

is? As far as I can see, the Err object only exists in VB. But how do you
clear the error collection in C# then?

What error collection are you talking about? What are you trying to
achieve, at a higher level? How is your code behaving, and how do you
want it to behave?
 
M

Marc Gravell

There isn't one to clear... if you catch an exception and don't want to
rethrow it, then just don't rethrow it. Or throw something else.

Marc
 
D

David Anton

There is no C# equivalent to VB's legacy Err object (used in unstructured
error handling).
--
http://www.tangiblesoftwaresolutions.com
C++ to C#
C++ to VB
C++ to Java
Java to C#
Java to VB
Instant C#: convert VB to C#
Instant VB: convert C# to VB
Instant C++: VB, C#, or Java to C++/CLI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top