forum

Home / DeveloperSection / Forums / How to catch all exceptions in c# using try and catch?

How to catch all exceptions in c# using try and catch?

Anonymous User 1937 24-Sep-2013

I want to write some try and catch that catch any type or exception

try {

code....

}

catch (Exception ex){}

Or should it be

try {

code....

}

catch {}

?


c#
Updated on 24-Sep-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By