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

...