for (int serie=1; serie < TurnierGruppe.AktuelleSerie.Serie; serie++)
{
//outer: here is works
foreach (Tischbesetzung tb in
TurnierGruppe.Serien[serie].Tischebesetzungen)
{
for (int i=0; i<tb.SpielerAnzahl; i++)
{
if (tb.Spieler[i].Spieler==this)
{
gespielteSerien.Add(tb.Spieler[i]);
goto outer;
}
}
}
outer:
}
Iam getting an error that a semicolon is missing after the label. If I move
the label to the top of the loop it works.
I guess C# doesn't allow labels with no code following directly, if so I'd
like to know the reason.
The problem for me is now if I'd move the label to the top of the loop the
enumerator will not be moved to the next element which would cause serious
trouble for me.
--
cody
Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk