c# Bob Tabor lesson 20 folder
using System;
using System.Collections.Generic;
namespace UnderstandingLINQ
{
class Program
{
static void Main(string[] args)
{
List<Car> myCars = new List<Car>() {
new Car() { VIN="A1", Make ="BMW", Model="550i", StickerPrice=55000,Year=2009},
new Car() { VIN="B2", Make ="Toyota", Model="4Runner", StickerPrice=35000,Year=2010 },
new Car() { VIN="C3", Make ="BMW", Model="745li", StickerPrice=75000,Year=2008},
new Car() { VIN="D4", Make ="Ford", Model="Escape", StickerPrice=25000, Year=2008},
new Car() { VIN="E5", Make ="BMW", Model="55i", StickerPrice=5700, Year=2010}
//Console.ReadLine(); if you use .NET Framework
};
}
class Car
{
public string VIN { get; set; }
public string Make { get; set; }
public string Model { get; set; }
public int Year { get; set; }
public double StickerPrice { get; set; }
}
}
}