0 votes
in C Sharp by

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 {}.

Related questions

0 votes
asked Jun 17, 2020 in MongoDB by AdilsonLima
0 votes
asked Oct 18, 2019 in C Sharp by Robin
...