emit == Select() IEnumerable ext method

students.Select(student => student.Age) // Simplest example. From a SEQUENCE of students, emits a sequence of ints.

students.Select(student => new {owner = student, pet = …….}) // emits a sequence of pets

Can we assume Select() always emits a sequence of a homogeneous type? I would think so

留下评论