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
What are the generation of Garbage Collection in C# .NET ?
While debugging a C# application can you change the value of a variable?
What are the different types of delegates?
What is regex c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What is session and cookies in c#?
What is difference between first and firstordefault?
Are all methods virtual in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
Is predicate a functional interface?
What is the use of expression tree in c#?
What do you mean by parsing and how to parse a date time string in c#?
what is the default access for a class
How does split work in c#?
My switch statement works differently! Why?