Reputation: 1813
I know that I can simply use a variable but out of sheer curiosity is there a way to get the return value of a method within that method.
public bool MyTest()
{
try
{
return true;
}
finally
{
if (myresult == true)
dosomething();
}
}
Upvotes: 1
Views: 65