Enumerable Range is not working quite right
<p>I have an enumerable range, and what I initially wanted to do with the range was loop through the stored list and get the minStop (minimum stoping point) and maxStart (max tarting pint) But I am only geting the min range and max range in my enumerable range and it is not giving me the values that I need. Please help me figure out what I am doing wrong.  PLEASE!</p>

<pre><code>List&lt;Grades&gt; ranges = new List &lt;Grades&gt;();
var strGrades = "40-50, 55-62, 65-72, 80-82, 85-92, 95-99, 110-115";
var splitGrades = strGrades.Split(char.Parse(","));
foreach(var item in splitGrades)
{
    var splitAgain = items.Split(char.Parse("-"));
    var myMax = Math.Max(int.Parse(splitAgain[0]), int.Parse(splitAgain[1]));
    var myMin = Math.Max(int.Parse(splitAgain[0]), int.Parse(splitAgain[1]));

    //my enumerable list   
    var erange = Enumerable.Range(int.Parse(myMax), int.Parse(myMax)).ToList()
    foreach (var maxrange in erange)
    {
       for (int q = myMin; q &lt; maxrange; q++)
        {
         //custom extension method for Between
         if (!q.Between((myMin), (myMax), true))
         {
          //Public class Grades{public int Start, get; set }                  
            ranges.Add(new Grades()
            {
              Start= q,
            });
         }
       }
     }        
  }
 return ranges;
}
</code></pre>

<p>Can anyone please show me how to get my enumerable range to get my minStop value (For example: first set of grades: 40-50, my min stop value would be 50, then get my next set of grade ranges 55-62, my max starting value would be 55, so I am looking to get the range from 50- 55, I need the last value from the each set and the beginning value for the set after that. I hope I am clear.  Any help would be greatly appreciated! Thanks</p>
