title: How to get Alternate elements using Enumerable in C#
body: <p>This is a continuation of my question: <a href="https://stackoverflow.com/questions/4123274/how-to-get-reverse-of-a-series-of-elements-using-enumarable-in-c">How to get reverse of a series of elements using Enumarable in C#?</a></p>
  
  <p>Now I need alternate elements only. Here is my solution using <code>for</code> loop:</p>
  
  <pre><code>int Max = 10;
  int limit = 5;
  Dictionary&lt;String , String&gt; MyDict = new Dictionary&lt;string,string&gt;();
  int j = 0;
  for (int i = 0; i &lt;Max; i++)
  {
      if (i &gt;= limit)
          MyDict.Add((i+1).ToString(), "None");
      else
          MyDict.Add((i+1).ToString(), j.ToString());
      j+=2;
  }
  </code></pre>
  
  <p>The output is like</p>
  
  <pre><code>{ "1" "0"}
  { "2" "2"}
  { "3" "4"}
  { "4" "6"}
  { "5" "8"}
  { "6" "None"}
  { "7" "None"}
  { "8" "None"}
  { "9" "None"}
  { "10" "None"}
  </code></pre>
  
  <p>How to do this using <code>Enumarerable</code> or Using any LINQ method. And also the reverse like my previous question: <a href="https://stackoverflow.com/questions/4123274/how-to-get-reverse-of-a-series-of-elements-using-enumarable-in-c">How to get reverse of a series of elements using Enumarable in C#?</a></p>