using System.Collections.Generic;
public int id { get; set; }
public List<cars> cars { get; set; }
public static void Main()
List<AllCars> AllCarsList = new List<AllCars>() {
new AllCars() { id=12, cars= new List<cars>() {
new cars() { color="red",model="T"},
new cars() { color="Blue",model="B"}
var resltCollection = AllCarsList.SelectMany(p => p.cars,
foreach (var car in resltCollection)
Console.WriteLine("ID = {0} , Color= {1} , Model = {2}",car.ID,car.Color,car.Model);