title: Get continuous list of integers
body: <p>I am trying to print numbers from 1 to 1000 (inclusive of 1000).</p>
  
  <pre><code>for (int i = 1; i &lt;= 1000; i=i+1)
  {
         Console.WriteLine(i);
  }
  </code></pre>
  
  <p>But, I do remember a single line of code that I myself used before. Like below:</p>
  
  <pre><code>Enumerable.TheMethodGives1To1000(Console.WriteLine);
  </code></pre>
  
  <p>Any ideas ?</p>