how do you do exception management
Answer Posted / manish agrahari
try
{
//try and do something here...
}
catch (SomeExeption ex)
{
//Handle the exception and take appropriate action
}
finally
{
//This code will *always* run irrespective if you have
//an exception or not. Usually this is some clean up of
//some sort though.
}
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
Is list a collection c#?
What is ildasm.exe used for?
Do we get an error while executing the “finally” block in c#?
can you allow a class to be inherited, but prevent the method from being over-ridden?
What is base class in c#?
What is iqueryable and ienumerable in c#?
What is mean by c#?
What is datatable in c#?
Why are dynamic link library used over static one?
if you do have a stack overflow profile.what is your ranking?
Can you store strings in arrays?
What is assembly version series sequence?
Is array a collection c#?
What is difference between overloading and short circuiting?
Why do we need nullable types in c#?