I've now seen two different ways to make a boolean returning method:
bool Case1()
{
if (A)
return true;
else
return false;
}
bool Case2()
{
if (A)
return true;
return false;
}
Which one is faster? Does it make sense to not write else
just to save a line, make it clearer, or is there a negligible performance gain?