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 is the difference between CONST and READONLY?
How do you create empty strings in c#?
Why do we need to override in c#?
How can I use .NET components from COM programs?
What is sqlconnection in c#?
What is a web service in c#?
What is property c#?
What is parallel programming in c#?
Can you specify nested classes as partial classes?
what is the meaning of Object lifetime in OOPS
Differentiate between response.expires and response.expiresabsolute?
What is the difference between returning iqueryable vs ienumerable?
What is an xsd file?
What is string empty?
Why are strings immutable in c#?