using System.Collections.Generic;
public string Name {get;set;}
public static void Main()
var person = new List<Person>() {
new Person(){Id=1, Name ="Harry"},
new Person(){Id=1, Name ="Martin"}
Console.WriteLine(p.Id + " " +p.Name);
var harry = person.Where(x => x.Id == 1).FirstOrDefault();
Console.WriteLine(harry.Name);
Console.WriteLine("Hello World");