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 / djay

//compile time error control can not leave the body of a finally block

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of comments in c#?

547


Does c# do array bounds checking?

541


How to get the sum of last 3 items in a list using lambda expressions?

508


what is the purpose of using statement in c#

551


What is whitespace in c#?

494






What is difference between virtual and override in c#?

462


What is class method c#?

483


What do you mean by a windows process in regards to memory allocation?

515


What is c# windows form application?

500


What is disconnected data architecture in c#?

484


if a method is marked as protected internal who can access it?

571


How many types of serialization are there in c#?

461


Why is c# better than java?

504


What is overloading with example?

501


Define multicast delegate? How it be used?

601