Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why do we use yield in c#?

908


What is argument in c#?

918


What is dll in vb.net?

937


How big is a 64 bit integer?

888


What are Types of assemblies that can be created in dotnet

1027


How does dependency injection work c#?

934


What is the difference between a method and a property?

1024


What is oledbconnection c#?

909


How do I calculate relative time?

925


What is the difference between readkey and readline in c#?

872


What is the keyword used to prevent a class from being inherited by another class?

1117


What is c sharp used for?

890


Are enums static c#?

971


What is a ienumerator?

917


Are c# generics the same as c++ templates?

924