using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;
public static void Main()
List<int> tempList = new List<int> {3,5,6,9,8,10,3,12,7,20,31,56};
var evenlistTest= tempList.AmitoshWhere(x=> x%2==0).Take(3);
foreach(int evenint in evenlistTest)
public static class Extension
public static List<int> AmitoshWhere(this List<int> intlist, System.Predicate predicate)
List<int> returnlist= new List<int>();
return intlist.FindAll(predicate);