concept nongeneric collection in category .net

appears as: The nongeneric collections, nongeneric collections, nongeneric collection
LINQ in Action

This is an excerpt from Manning's book LINQ in Action.

The nongeneric collections do not implement IEnumerable<T>, but implement IEnumerable. Does this mean that you won’t be able to use LINQ with DataSet or ArrayList objects, for example?

Fortunately, solutions exist. In section 5.1.1, we’ll demonstrate how you can query nongeneric collections thanks to the Cast and OfType query operators.

It would be too bad if we couldn’t use LINQ with ArrayLists or other nongeneric collections. As you can guess, there is a solution. Nongeneric collections aren’t a big problem with LINQ once you know the trick.

Suppose that you get results from a method that returns a nongeneric collection, such as an ArrayList object. What you need to query a collection with LINQ is something that implements IEnumerable<T>. The trick is to use the Cast operator, which gives you just that: Cast takes a nongeneric IEnumerable and gives you back a generic IEnumerable<T>. The Cast operator can be used each time you need to bridge between nongeneric collections and the standard query operators.