I have this code:
switch (App.co)
{
case CO.Random:
var looking = true;
while (looking)
{
//
if (xxx)
{
looking = false;
}
}
break;
case CO.FirstToLast:
What I would like to do is to replace it with this:
switch (App.co)
{
case CO.Random:
while (true)
{
//
if (xxx)
{
break
}
}
break;
case CO.FirstToLast:
I am not sure of the way the break is handled and would like to have some confirmation if it's exactly the same to replace the looking flag with a break here