Is there a way to run a linq query into a predefined or custom class all in the query without having to perform extra operations outside?
class Numbers {
int number
bool even
}
...populate numbers class
List<Numbers> bigNumbers = (
from n in numbers
where n.number >= 1000000
select n)
The following throws a conversion error.
You are missing a
ToList():