using System.Collections.Generic;
public static void Main()
var people = new List<Person>() {
new Person() { Name= "Pedro", LastName="Garcia" },
new Person() { Name= "Yadiel", LastName="Artiles" },
new Person() { Name= "Yanet", LastName="Garcia" }
var peopleSelected = people.Where(p => p.LastName == "Garcia").ToList();
foreach (var p in peopleSelected) {
Console.WriteLine("Nombre: {0}", p.Name);
public string Name { get; set; }
public string LastName { get; set; }