I am trying to create a list of string arrays. Below is the code.
public List<string[]> GetRec(int hid)
{
var list =
(from x in table1
join y in table2 on x.Hid equals y.Hid
where x.Hid == hid
select new[] {x.name, x.Description, x.user}).ToList();
return list;
}
But i am getting the following error
"The array type 'System.String[]' cannot be initialized in a query result.
Consider using 'System.Collections.Generic.List`1[System.String]' instead."
Can anyone suggest me what is wrong here. Any help would be appreciated .
Thanks in advance
