If I have code like
try
{
return;
}
catch
{
return;
}
finally
{
return;
}
from which block will the value will be returned. and try
has been executed without any error.
Answer Posted / claivan
Finally block will not return any values as it gives
error "Control cannot leave the body of a finally clause".
The finally block is useful for cleaning up any resources
allocated in the try block.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What are the different types of literals in c#?
List down the fundamental oop concepts?
What is c# commonly used for?
what is the scope of anonymous type ?
What does clr stand for?
What is a string in c#?
What is the use of return in c#?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
What is array formula?
Why var is used in c#?
What is indexer c#?
I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.
What does char mean in c#?
Can we inherit class that contains only one private constructor?
What are the Types of compatabilities and explain them