Continuer dans bien que l'intérieur foreach

Dans le code C# suivant extrait

J'ai un " while "en boucle à l'intérieur d'un' foreach " en boucle et je souhaite pour passer à l'élément suivant dans 'foreach' lorsqu'une certaine condition se produit.

foreach (string objectName in this.ObjectNames)
{
    //Line to jump to when this.MoveToNextObject is true.
    this.ExecuteSomeCode();
    while (this.boolValue)
    {
        //'continue' would jump to here.
        this.ExecuteSomeMoreCode();
        if (this.MoveToNextObject())
        {
            //What should go here to jump to next object.
        }
        this.ExecuteEvenMoreCode();
        this.boolValue = this.ResumeWhileLoop();
    }
    this.ExecuteSomeOtherCode();
}

'continue"serait de passer au début de la" while 'boucle pas le" foreach " en boucle.
Est qu'il y a un mot-clé à utiliser, ici, ou devrais-je simplement utiliser goto qui je n'aime pas vraiment.

InformationsquelleAutor Amr | 2009-03-07