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);
相关考题:
KZS£¯M£I型集中式轴温报警器自带报警记录功能。报警记录容量大于()组记录数据,每组报警数据为:报警时间(年、月、日、时、分)、报警轴位、轴温、环温。 A、100B、200C、500D、1000
EV-DO Rev.A中多模终端从1X区域向DO区域移动何种状态会监听DO信道?() A.IdleB.DormantC.ActiveD.Power off