I’d like to know if it is possible to get the return value of a function inside a finally block.
I have some code that is like this.
try
{
return 1;
}
finally
{
//Get the value 1
}
I know it’s possible by adding a variable that can hold the returned value. But I was wondering if it was possible to get the value in any way.
Thanks
No, you can’t do that.