当前位置:MCTS(70-515)题库

问题:

[单选]

You are implementing an ASP.NET page. Client-side script requires data. Your application includes a class named Person with a Name property of type string. The code-behind file of the page includes the following code segment.

You need to use the JavaScriptSerializer class to serialize only the Name property of each item in the people list. Which code segment should you use?()

A . JsonValue = json.Serialize(people.Select(p => p.Name));
B . var names = from person in people select person; JsonValue = "{" + json.Serialize(names) + "}";
C . JsonValue = json.Serialize(people.SelectMany( p =>Name.AsEnumerable()));
D . var names = from person in people select person; JsonValue = json.Serialize(names);

欧美合拢式管理的特点有哪些()。 A.专注于施工管理整体性 。 B.项目经理管理深化 。 C.保证计划的持久性 。 D.激发员工的内驱动力。 系统通常可以分解为若干个子系统,一般只有网状结构。 ()在道德修养上倡导奉行“格物”、“致知”、“修身”、“齐家”、“治国平天下”。 魏晋玄学。 宋明理学。 明清实学。 乾嘉学派。 安全生产隐患排查治理台帐应包含哪些主要内容? 2009年2月28日,十一届全国人大常委会第七次会议通过了《中华人民共和国保险法》修订草案,新修订的《保险法》将于()起实施。 2010年1月1日。 2009年7月1日。 2009年1月1日。 2009年10月1日。

You are implementing an ASP.NET page. Client-side script requires data. Your application includes a class named Person with a Name property of type string. The code-behind file of the page includes the following code segment.

You need to use the JavaScriptSerializer class to serialize only the Name property of each item in the people list. Which code segment should you use?()

参考答案:

  参考解析

本题暂无解析

在线 客服