title: Arbitrarily long Parallel.For loops in C# .NET
body: <p>Parallel.For allows loops with a max iteration of long.MaxValue</p>
  
  <pre><code>Parallel.For(long fromInclusive, long toExclusive, Action&lt;long&gt; body)
  {
  }
  </code></pre>
  
  <p>but what if I need to perform a Parallel loop which would have vastly more iterations than long.MaxValue?</p>
  
  <p>E.G. I have a function which returns the number of required iterations as a BigInteger (because long and ulong are not big enough).</p>
  
  <p>Would I have to "roll my own" Parallel.For implementation. My gut feeling is that this is going to be bad practice!</p>
  
  <p>EDIT: Based on various comments...I think I have bitten off more than I can chew!</p>