I tried the following coding to convert LINQ query to ArrayList, but the error occurs
'Cannot Implicitly convert type System.Collections.Generic.List to System.Collections.ArrayList'
the coding is,
var qry1 = (from a in obj.table1
join b in obj.table2
on a.id1 equals b.id1
select new
{
b.name,
b.id
});
ArrayList al = new ArrayList();
al = qry1.ToList();
how to convert query result to ArrayList.
Thanks in Advance.
List<T>instead. That's what you already get fromToList.