YouareimplementinganASP.NETpage.Client-sidescriptrequiresdata.YourapplicationincludesaclassnamedPersonwithaNamepropertyoftypestring.Thecode-behindfileofthepageincludesthefollowingcodesegment.YouneedtousetheJavaScriptSerializerclasstoserializeonlytheNamepropertyofeachiteminthepeoplelist.Whichcodesegmentshouldyouuse?()A.JsonValue=json.Serialize(people.Select(p=p.Name));B.varnames=frompersoninpeopleselectperson;JsonValue={+json.Serialize(names)+};C.JsonValue=json.Serialize(people.SelectMany(p=Name.AsEnumerable()));D.varnames=frompersoninpeopleselectperson;JsonValue=json.Serialize(names);

YouareimplementinganASP.NETpage.Client-sidescriptrequiresdata.YourapplicationincludesaclassnamedPersonwithaNamepropertyoftypestring.Thecode-behindfileofthepageincludesthefollowingcodesegment.YouneedtousetheJavaScriptSerializerclasstoserializeonlytheNamepropertyofeachiteminthepeoplelist.Whichcodesegmentshouldyouuse?()

A.JsonValue=json.Serialize(people.Select(p=>p.Name));

B.varnames=frompersoninpeopleselectperson;JsonValue="{"+json.Serialize(names)+"}";

C.JsonValue=json.Serialize(people.SelectMany(p=>Name.AsEnumerable()));

D.varnames=frompersoninpeopleselectperson;JsonValue=json.Serialize(names);


相关考题:

纳税人在办理防汛专用车车辆购置税纳税申报手续时,需向所在地主管税务机关提供车辆内观、外观彩色5寸照片1套,出示国家防汛抗旱总指挥部办公室随车配发的“防汛专用车证”。 A.错误B.正确

()是指商品的生产者、经营者或商业服务的提供者用以标明自己所生产、经营的商品或提供的服务,与其他人生产、经营的同类商品或提供的同类服务相区别的标记。 A.商标B.品牌C.专利D.发明

ATM交换即异步传送模式,又叫异步转移模式。它是宽带ISDN中的一种基本交换方式。异步转移模式的特征是传输,复用和交换都是以()为基本单位进行的。 A.帧B.复帧C.信元D.IP包

KZS£¯M£­I型集中式轴温报警器自带报警记录功能。报警记录容量大于()组记录数据,每组报警数据为:报警时间(年、月、日、时、分)、报警轴位、轴温、环温。 A、100B、200C、500D、1000

国家建立营养状况监测制度,实施经济欠发达地区、重点人群营养干预计划,开展未成年人和老年人营养改善行动,倡导健康饮食习惯,消除不健康饮食引起的疾病风险() 此题为判断题(对,错)。

在动态磁盘中建立的卷()的读写效率最高。 A.简单卷B.跨区卷C.带区卷D.镜像卷E.RAID5卷

关于计算机病毒的传染途径,下列说法是对的有() A.通过软盘复制B.通过交流软件C.通过共同存放软盘D.通过借用他人软盘

EV-DO Rev.A中多模终端从1X区域向DO区域移动何种状态会监听DO信道?() A.IdleB.DormantC.ActiveD.Power off