from a bool function return false inside a loop in C#
<p>I was recently told that it is a bad practise to return false from inside a loop, though it might not actually be called more than once. Is it better to have a secondary flag to actually break out of the functions?</p>

<pre><code>foo()
{
  if(bar)
    //somecode
  else
    //some other code
}
private static bool bar(int x)
{
for(int i=0;i&lt;10;i++) 
{
    if(i&lt;x)
    {
         return false;
         break;
    }
    //some operation 
}
</code></pre>

<p>Is this break statement necessary, considering the boolean function has already returned out of it by then</p>