using System.Collections.Generic;
public static void Main()
new List<Thing> { new Thing("red"), new Thing("white"), new Thing("blue"), new Thing("scarlet"),
new Thing("smoke"), new Thing("periwinkle") };
IEnumerable<Thing> query = things.Where(thing => thing.EyeColor.Length < 6).ToList();
Console.WriteLine("The 'Where'd' List of Things:");
foreach (var thing in query)
Console.WriteLine(thing);
var firstThing = query.First();
firstThing.EyeColor = firstThing.EyeColor + "$";
Console.WriteLine("All the Things from the Original List After Updating the First Thing from the 'Where'd' List:");
foreach (var thing in things)
Console.WriteLine(thing);
public Thing(string color)
public string EyeColor {get; set;}
public override string ToString()