tags:

views:

1207

answers:

1

How do i do this in one statement vs breaking up in two?

 var newpeople= _rep.GetPeople().Where(p=>p.personID).Select(new KindoFPerson...id=p.id etc)
+5  A: 
var newpeople= _rep.GetPeople().Where(p=>p.personID)
    .Select(p => new KindoFPerson...id=p.id etc)

Note the new "p =>".

mquander