I have question about throw. How will the throw work in the following code? Does the catch block return false?
try
{
//code
}
catch(Exception ex)
{
throw;
return false;
}
No, it rethrows. Somewhere up the call stack needs to catch it.
The return false
is never reached.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With