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 extension method in c#?

684


Is for loop faster than foreach?

735


What is func c#?

766


What is default c#?

712


What do you understand by an Implicit Variable?

729


Give examples for value types?

698


What are constants in c#?

746


Is c# used for any core features of windows vista?

713


What is the use of GC.KeepAlive Method?

901


How do you specify a custom attribute for the entire assembly?

660


what is the difference between .dll and .exe

728


How objects are stored in memory?

685


Are c# constructors the same as c++ constructors?

716


What is a partial class in c#?

666


What is the difference between package and interface?

685