Is goto ok for breaking out of nested loops?
<p>JavaScript supports a goto like syntax for breaking out of nested loops.  It's not a great idea in general, but it's considered acceptable practice.  C# does not directly support the <code>break labelName</code> syntax...but it does support the infamous <code>goto</code>.  </p>

<p>I believe the equivalent can be achieved in C#:</p>

<pre><code>    int i = 0;            
    while(i &lt;= 10)
    {
        Debug.WriteLine(i);
        i++;
        for(int j = 0; j &lt; 3; j++)
            if (i &gt; 5)
            {
                goto Break;//break out of all loops
            }
    }

    Break:
</code></pre>

<p>By the same logic of JavaScript, is nested loop scenario an acceptable usage of <code>goto</code>?  Otherwise, the only way I am aware to achieve this functionality is by setting a <code>bool</code> with appropriate scope.</p>
