网友您好, 请在下方输入框内输入要搜索的题目:
YouareimplementinganASP.NETapplication.Youaddthefollowingcodesegment.YouneedtoaddcodetoreturnalistofallPersonobjectsexceptthosewithaUserIdthatiscontainedinthesecretUserslist.Theresultinglistmustnotcontainduplicates.Whichcodesegmentshouldyouuse?()
A.varsecretPeople=(frompinallPeoplefromuinsecretUserswherep.UserId==uselectp).Distinct();returnallPeople.Except(secretPeople);
B.returnfrompinallPeoplefromuinsecretUserswherep.UserId!=uselectp;
C.return(frompinallPeoplefromuinsecretUserswherep.UserId!=uselectp).Distinct();
D.List
参考答案
更多 “ YouareimplementinganASP.NETapplication.Youaddthefollowingcodesegment.YouneedtoaddcodetoreturnalistofallPersonobjectsexceptthosewithaUserIdthatiscontainedinthesecretUserslist.Theresultinglistmustnotcontainduplicates.Whichcodesegmentshouldyouuse?()A.varsecretPeople=(frompinallPeoplefromuinsecretUserswherep.UserId==uselectp).Distinct();returnallPeople.Except(secretPeople);B.returnfrompinallPeoplefromuinsecretUserswherep.UserId!=uselectp;C.return(frompinallPeoplefromuinsecretUserswherep.UserId!=uselectp).Distinct();D.Listpeople=newList(frompinallPeoplefromuinsecretUserswherep.UserId!=uselectp);returnpeople.Distinct(); ” 相关考题
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)