I have method with two parameters: bool1 and bool2. Both are boolean of course. I have to handle in code every combination of these conditions. Is any better way to do it then using nested if / else :
if (bool1)
{
if(bool2)
{
}
else
{
}
}
else
{
if(bool2)
{
}
else
{
}
}
1 Answer