using System.Collections.Generic;
public static void Main()
IList<Student> studentList = new List<Student>{
new Student(){StudentID=1, StudentName ="John", Age =13},
new Student(){StudentID=2, StudentName ="Moin", Age =21},
new Student(){StudentID=3, StudentName ="Bill", Age =18},
new Student(){StudentID=4, StudentName ="Ram", Age =20},
new Student(){StudentID=5, StudentName ="Rom", Age =15},
var teenAgerStudent = studentList.Where(s=> s.Age > 15 && s.Age <20).ToList<Student>();
foreach(var str in teenAgerStudent){
Console.WriteLine(str.StudentName);
public int StudentID{get;set;}
public string StudentName{get;set;}