Categories

Mar 5 in C Sharp (C#)
Q:

What’s the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception?

1 Answer

Mar 5

A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
Jun 16 in C Sharp (C#)
Feb 4 in Agile
Jun 16 in C Sharp (C#)
...