in C Sharp by
Q:

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

1 Answer

0 votes
by

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 Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Jun 16, 2020 in C Sharp by Hodge
0 votes
asked Feb 4, 2020 in Agile by timbroom
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
0 votes
0 votes
asked Mar 5, 2020 in C Sharp by JackTerrance
0 votes
asked Mar 5, 2020 in C Sharp by JackTerrance
0 votes
asked Mar 5, 2020 in C Sharp by JackTerrance
...