Return to Snippet

Revision: 31546
at September 8, 2010 23:19 by housecor


Initial Code
IQueryable<Person> GetManagersWithName (IQueryable<Person> people, string name)
  {
    return  from p in people
      where p.Name == name &&  // implicit closure over 'name'
            p.PersonType == PersonType.Manager
      select p;
  }

Initial URL

                                

Initial Description

                                

Initial Title
LINQ query in function that takes param to change resultset

Initial Tags
query

Initial Language
C#