How to throw an caught exception from cath block?

Answer Posted / chandana

use the 'throw' keyword to throw an exception from a catch
block. ex,

catch (Exception e)
{
throw e;
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is thread safe in c#?

492


Explain About .NET Remoting and types of remoting

583


What is difference between ienumerable and list?

518


Why do we override in c#?

496


How does substring work in c#?

482






Can you use all access modifiers for all types?

541


What are extender provider components?

475


What is the and operator in c#?

493


What is a partial class in c#?

489


Can we make a class private in c#?

504


Explain jagged arrays in c#?

578


Can we have only “try” block without “catch” block in c#?

477


What is a method signature?

529


What does clr stand for?

478


Define interface class in c#?

519