VB .Net Question: Download VB .Net PDF

Whats the C# equivalent of C++ catch (...), which was a catch-all statement for any possible exception?

Tweet Share WhatsApp

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

Download VB .Net PDF Read All 69 VB .Net Questions
Previous QuestionNext Question
How can you sort the elements of the array in descending order?Whats the implicit name of the parameter that gets passed into the class set method?