Try Catch - Finally in If statement, how to go on after ?
- by user313176
how can I do that ?
void x()
{....
if (...)
{try
{}
catch (ComException com)
{ throw com}
finally // in any case, executed fine!
{...instructions.......}
}
else // not executed in case of exception because the finally can't embrace the //else too... but this block of code needs to be executed in any case too...
{}
}