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 Feb 16, 2020 in C Sharp by rahuljain1
+2 votes
asked Aug 12, 2019 in Service Discovery by Venkatshastri
...