A basic question. I need to exit a function without throwing any exceptions. How do I do that in C#?
It's as simple as:
void Function()
{
...
if(needToLeave)
return;
...
}
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