using System.Collections.Generic;
public string First { get; set; }
public string Last {get; set;}
public int ID { get; set; }
public string Street { get; set; }
public string City { get; set; }
public string First { get; set; }
public string Last { get; set; }
public int ID { get; set; }
public string City { get; set; }
class DataTransformations
List<Student> students = new List<Student>()
new Student { First="Svetlana",
Street="123 Main Street",
Scores= new List<int> { 97, 92, 81, 60 } },
new Student { First="Claire",
Street="124 Main Street",
Scores= new List<int> { 75, 84, 91, 39 } },
new Student { First="Sven",
Street="125 Main Street",
Scores= new List<int> { 88, 94, 65, 91 } },
List<Teacher> teachers = new List<Teacher>()
new Teacher { First="Ann", Last="Beebe", ID=945, City="Seattle" },
new Teacher { First="Alex", Last="Robinson", ID=956, City="Redmond" },
new Teacher { First="Michiyo", Last="Sato", ID=972, City="Tacoma" }
var peopleInSeattle = (from student in students
where student.City == "Seattle"
.Concat(from teacher in teachers
where teacher.City == "Seattle"
Console.WriteLine("The following students and teachers live in Seattle:");
foreach (var person in peopleInSeattle)
Console.WriteLine(person);
Console.WriteLine("Press any key to exit.");