欢迎来到牛牛题库网 牛牛题库官网
logo
全部科目 > 大学试题 > 大学期末考试答案、课后测试习题答案

单项选择题

使用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()

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题