title: Is there an equivalent of Pythons range(12) in C#?
body: <p>This crops up every now and then for me: I have some C# code badly wanting the <code>range()</code> function available in Python.</p>
  
  <p>I am aware of using</p>
  
  <pre><code>for (int i = 0; i &lt; 12; i++)
  {
     // add code here
  }
  </code></pre>
  
  <p>But this brakes down in functional usages, as when I want to do a Linq <code>Sum()</code> instead of writing the above loop.</p>
  
  <p>Is there any builtin? I guess I could always just roll my own with a <code>yield</code> or such, but this would be <em>so</em> handy to just <em>have</em>.</p>