I would like to skip the remainder of a function and call another should a statement prove true.
public bool A(int i)
{
if (i > 5)
{
// Skip the rest of A() and return B()
return B(i);
}
// Do stuff to i
}
public bool B(int i)
{
// Do stuff to i
}
Is my only option to have the return value as a bool, even if I don't care what the boolean return value is?