using System.Collections.Generic;
public static void Main()
var collection = new List<string>
var filtered = collection.Where(x => x == "second");
foreach(var item in filtered)
public static class MyNewLinqExtensions
public static IEnumerable<T> Where<T>(this IEnumerable<T> collection, Predicate<T> myPredicate)
foreach(var item in collection)