using System.Collections.Generic;
public static void Main()
List<Student> students = new List<Student>();
students.Add(new Student(1, "Goku"));
students.Add(new Student(2, "Gohan"));
Student goku = students.FirstOrDefault(x => x.Id == 1);
Console.WriteLine(goku.FirstName);
public Student(int id, string firstName)