网友您好, 请在下方输入框内输入要搜索的题目:
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
参考答案