I was making a method with a bool
return value and I had a problem:
This works
private bool CheckAll()
{
//Do stuff
return true;
}
But this dosn't, the method can't detect a return value if it's in a IF-statement.
private bool CheckAll()
{
if (...)
{
return true;
}
}
How can I fix this?