Home »

What’s the C# syntax to catch any possible exception?

Question ListCategory: C#.NETWhat’s the C# syntax to catch any possible exception?
denielshakespeare5 author asked 9 years ago
1 Answers
ethanbrown author answered 8 years ago

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

Please login or Register to Submit Answer