[What I want](https://stackoverflow.com/questions/1465700/system-linq-dynamic-select-new-into-a-listt-or-any-other-enumerabl/1468357#1468357 "What I want but with custom class") but instead of doing

`var carsPartial = cars.Select("new(name, year)").ToList();`

I want to do this:

```
var carsPartial = cars.Select<car>("new car(name, year)").ToList<car>();

```

Thanks again and ask for clarification if needed.

car class:

```
 public class car
{
    public string name { get; set; }
    public int year { get; set; }
}

```

What is in cars: a bunch of cars data with names and years sort of like a database.