Given a .net 4. collection, if I want to pass in my own custom func in a where clause, how could I do this (via parameters)?
Thanks
Do you mean something like this?
public IEnumerable<string> FilterNames(Func<string, bool> filter)
{
return people.Select(person => person.Name)
.Where(filter);
}