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

Answer Posted / guest

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 This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the differences between static, void and public in c#?

523


What are get and set in c#?

576


What is the use of private constructor in c#?

491


What is gridview c#?

497


Are c# strings null terminated?

531






Differentiate between method overriding from method overloading with its functionality?

533


What is command object in c#?

512


What are circular references?

520


Explain polymorphism in c# with a simple example?

513


What is concrete method in c#?

488


Define Abstract Class in C#

538


What do you mean by thread safe in c#?

463


When should I throw an exception?

548


What is the difference between interface and functional interface?

481


Is string primitive?

489