Skip to content

Instantly share code, notes, and snippets.

@phillip-haydon
Created March 25, 2013 08:39
Show Gist options
  • Save phillip-haydon/5235730 to your computer and use it in GitHub Desktop.
Save phillip-haydon/5235730 to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
var bunchOfValues = new List<Banana>
{
new Banana(),
new Banana(),
new Banana(),
new Banana(),
new Banana()
};
var filtered = bunchOfValues.Where(CheckSomething);
}
public class Banana
{
}
public static bool CheckSomething(Banana value1, int value2)
{
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment