bool ret = false;
IList<Woman> women = (from p in omar.KnownPersons
where p.Gender == 'f' &&
p.BeautifulPoints >=65
select p
).ToList();
foreach(Woman w in women)
{
if(w.SheWillGiveItTo(omar))
{
ret = true;
break;
}
else
{
w.StandBy();
}
if(ret)
omar.LetsRock();
else
omar.ContinueYourWorthlessLife();
}
Non ho compilato ma dovrebbe andare…