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
How to use reflection to call generic method?
What are cshtml files?
What is ac callback?
Describe the difference between inline and code behind - which is best?
What is the difference between integer and double?
what is IFormatable
what is IDisposal interface
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
What is the difference between “out” and “ref” parameters in c#?
Explain how do I get deterministic finalization in c#?
Explain anonymous type in c#?
What is collection of classes in c#?
What is the difference between CONST and READONLY?
Can we have two main methods in c#?
Why generics are used?