title: Lambda "select between"
body: <p>I have a generic string list that looks something like this:</p>
  
  <pre><code>List&lt;string&gt; list = new List&lt;string&gt;();
  
  list.Add("foo");
  list.Add("1");
  list.Add("2");
  list.Add("bar");
  list.Add("foo");
  list.Add("1");
  list.Add("2");
  list.Add("3");
  list.Add("bar");
  </code></pre>
  
  <p>What I would like to know is if there is any way to select whats between two values. In this case I'm after "1", "2" and "3". So in other words, i want to select everything between the last "foo" and "bar". Or perhaps select N rows after "foo" if that's easier.</p>
  
  <p>My best guess would be the <code>TakeWhile</code> method, but I need your help here.</p>