using System.Collections;
using System.Collections.Generic;
public static void Main()
var tempList = new List<int> {3,5,6,9,8,10,3,12,7,20,31,56};
var list = tempList.SravanWhere(x=>((x%2)==0)).Take(3);
foreach(var item in list)
Console.WriteLine("Hello World");
public static class ExtensionMethod
public static List<int> SravanWhere(this List<int> list, Expression<Func<T,bool>> condition, )
list= list.FindAll(condition)