title: C#, No overload for method 'ToList' takes 1 arguments
body: <p>I try to split by <code>\n</code> as elements, split each element by , as node properties, then populate a treeNode list</p>
  
  <pre><code>        List&lt;TreeNode&gt; views = new List&lt;TreeNode&gt;();
  
          views = res.Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries)   // first split, dump garbage :)
                  .Select(line =&gt; line.Split(','))   // second split, each line 
                  .ToList(t =&gt; new TreeNode
                  {
                      Text = t[0],
                      ToolTipText = t[1]
                  }
  
                  );
  </code></pre>
  
  <p>Appears like <code>ToList()</code> failed, I used before to populate Dictionaries, Lists, etc.
  The error is </p>
  
  <blockquote>
    <p><em>No overload for method 'ToList' takes 1 arguments</em></p>
  </blockquote>
  
  <p>Any hints?</p>