title: LINQ: How to declare IEnumerable[AnonymousType]?
body: <p>This is my function:</p>
  
  <pre><code>    private IEnumerable&lt;string&gt; SeachItem(int[] ItemIds)
      {
          using (var reader = File.OpenText(Application.StartupPath + @"\temp\A_A.tmp"))
          {
              var myLine = from line in ReadLines(reader)
                           where line.Length &gt; 1
                           let id = int.Parse(line.Split('\t')[1])
                           where ItemIds.Contains(id)
                           let m = Regex.Match(line, @"^\d+\t(\d+)\t.+?\t(item\\[^\t]+\.ddj)")
                           where m.Success == true
                           select new { Text = line, ItemId = id, Path = m.Groups[2].Value };
              return myLine;
          }
      }
  </code></pre>
  
  <p>I get a compile error,because "myLine" is not a IEnumerable[string] and I don't know how to write IEnumerable[Anonymous]</p>
  
  <p>"Cannot implicitly convert type 'System.Collections.Generic.IEnumerable[AnonymousType#1]' to 'System.Collections.Generic.IEnumerable[string]'"</p>