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

What is an escape sequence in c#?

509


What does mean c#?

532


What is difference between ienumerable and list?

517


What is a property c#?

518


What is the implicit name of the parameter that gets passed into the set method/property of a class?

500






Where do we use static class in c#?

496


What Is A Satellite Assembly?

541


What is the data provider name to connect to access database?

501


What is sqldataadapter in c#?

491


Explain briefly the difference between value type and reference type?

553


Is list ienumerable c#?

608


Is null or empty in c#?

545


What is difference between write and writeline?

467


Can you store different types in an array in c#?

480


What does executescalar return in c#?

458