This is my function:
private IEnumerable SeachItem(int[] ItemIds)
{
using (var reader = File.OpenText(Application.StartupPath + @\"
You cannot declare IEnumerable
because the type has no (known) name at build time. So if you want to use this type in a function declaration, make it a normal type. Or just modify your query to return a IENumerable
and stick with that type.
Or return IEnumerable
using the following select statement.
select new KeyValuePair(id, m.Groups[2].Value)