i have write query in web application using linq need change query array list. how can change query below this?
var resultsquery = result in o["searchresponse"]["web"]["results"].children() select new { url = result.value<string>("url").tostring(), title = result.value<string>("title").tostring(), content = result.value<string>("description").tostring() };
if need create arraylist, can write new arraylist(resultsquery.toarray()).
however, should use list<t> instead, writing resultsquery.tolist().
note that, in both cases, list contain objects of anonymous type.
Comments
Post a Comment