using System.Collections.Generic;
public static void Main()
student s=new student("");
s.lst.Add(new student("Abhi"));
s.lst.Add(new student("Bhavya"));
s.lst.Add(new student("Betty"));
s.lst.Add(new student("Archie"));
foreach(student l in s.lst){
Console.WriteLine(l.name);
string na=Console.ReadLine();
bool la=s.lst.Any(x=>x.name==na);
public student(string name){
public List<student> lst=new List<student>();