单项选择题
使用Lambda表达式获取班级所有学生的姓名,并去除重名,下列语法正确的是()
A.studentList.Select(StudentName.Distinct())
B.studentList.Select(StudentName).Distinct()
C.studentList.Select(t =>t.StudentName.Distinct())
D.studentList.Select(t =>t.StudentName).Distinct()
点击查看答案&解析
相关考题
