1.

What's The C# Equivalent Of C++ Catch (...), Which Was A Catch-all Statement For Any Possible Exception?

Answer»

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

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



Discussion

No Comment Found