Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

C

Question: 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 {}.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook