How to: Convert a Sequence to an Array (LINQ to SQL)
The following example uses ToArray<TSource> to immediately evaluate a query into an array and to get the third element.
var custQuery =
from cust in db.Customers
where cust.City == "London"
Customer qArray = custQuery.ToArray();
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback