title: Enumerable for negative ranges
body: <p>In python we have a range that can produce for an array with negative integers too.</p>
  
  <p>For example:</p>
  
  <pre><code>In[4]: range(-2, 2+1)
  Out[4]: [-2, -1, 0, 1, 2]
  </code></pre>
  
  <p>Is there an equivalent system in C#; I am aware of IEnumerable method, but upon trying it I get the following output:</p>
  
  <pre><code>//Rextester.Program.Main is the entry point for your code. Don't change it.
  //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
  
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text.RegularExpressions;
  
  namespace Rextester
  {
      public class Program
      {
          public static void Main(string[] args)
          {
              //Your code goes here
              Console.WriteLine("Hello, world!");
              int half_window = 2;
              var mySeq1 = Enumerable.Range(-2, 2+1).ToArray();
              foreach(var item in mySeq1)
      Console.Write(item.ToString() + " ");
          } 
      }
  }
  </code></pre>
  
  <p>Produces the output:</p>
  
  <pre><code>Hello, world!
  -2 -1 0
  </code></pre>
  
  <p>Is there already an inbuilt method that I can use to get the python's output ?</p>