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

Answer Posted / daniel

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use delegates in c#?

580


What standard types does c# use?

585


What is Event - Delegate?

660


What is using directive in c#?

615


Is string passed by reference in c#?

584






What is multithreading with .net?

631


Why is dll used?

674


Why main method is static in c#?

567


What is the purpose of c#?

627


Is it possible to execute multiple catch block for a single try statement?

679


Explain what are the steps for creating clr trigger?

542


What are value types and reference types?

640


What is the difference between console application and windows application?

581


Why do I get a syntax error when trying to declare a variable called checked?

660


Illustrate namespaces in c#?

624