, LINQ , , IEnumerable<Car>. :
IEnumerable<Car> cars = new MyClass(makes, models);
var result = from cars...
; (, , ), ( IEnumerator<Car>).
This approach does not allow you to embed implementation details in all your LINQ queries. Also, if you have never done this, this is really something worth learning. Convenient implementation IEnumerable<T>greatly expands the space of things with which you can easily use LINQ for.
source
share