Skip to content

Instantly share code, notes, and snippets.

@Collonville
Created December 11, 2015 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Collonville/7376f7383e3f99d4bfa8 to your computer and use it in GitHub Desktop.
Save Collonville/7376f7383e3f99d4bfa8 to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
List<int> foo = new List<int> { 6, 1, 4, 9, 2 }; //list
var cnt = foo.Select(x => x * 2).Where(x => x <= 14).Count();
Console.WriteLine(cnt); // show count
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment