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
Why do we use yield in c#?
What is argument in c#?
What is dll in vb.net?
How big is a 64 bit integer?
What are Types of assemblies that can be created in dotnet
How does dependency injection work c#?
What is the difference between a method and a property?
What is oledbconnection c#?
How do I calculate relative time?
What is the difference between readkey and readline in c#?
What is the keyword used to prevent a class from being inherited by another class?
What is c sharp used for?
Are enums static c#?
What is a ienumerator?
Are c# generics the same as c++ templates?