Create a gist now

Instantly share code, notes, and snippets.

static void Main(string[] args)
{
List<int> foo = new List<int> { 6, 1, 4, 9, 2 }; //list
var boo = foo.Where(x => x >= 5); //LINQ
foreach (var data in boo)
{
System.Console.WriteLine(data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment