单项选择题
You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.)
You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: "There was an error generating the XML document."You need to modify the code segment so that you can successfully serialize instances of the Group class by using the XmlSerializer class. You also need to ensure that the XML output contains an element for all public fields in the class hierarchy.
What should you do?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
为应用程序开发人员上班 Certkiller。 com。若要获取一个名为 myMethod 的特定方法的信息,您可以使用反射。 您需要找出是否可以从派生类访问 myMethod。 您应该从 myMethod 类调用以下属性的?()
A.调用IsAssembly属性。
B.调用IsVirtual属性。
C.调用IsStatic属性。
D.调用IsFamily属性。 -
单项选择题
为应用程序开发人员上班 Certkiller.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。 您使用名为 Certkiller 的 Windwos XP 专业版客户端计算机-WS554 为您的开发计算机。 您正在开发。NET Framework 2.0 应用程序上的 Certkiller-WS554。 应用程序将在全球范围内使用,并必须能够代表以下列语言的字符: 英文、 中文繁体、 希伯来语和泰米尔语。 您的应用程序需要提供错误检测无效序列的字符,但您的应用程序也必须优化存储。 你应该做什么?()
A.对您的应用程序使用UTF8Encoding类中的字符进行编码。
B.对您的应用程序使用UTF7Encoding类中的字符进行编码。
C.对您的应用程序使用UTF32Encoding类中的字符进行编码。
D.对您的应用程序使用UTF16Encoding类中的字符进行编码。 -
多项选择题
为应用程序开发人员上班 Certkiller。.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。 您使用名为 Certkiller 的 Windwos XP 专业版客户端计算机-WS554 为您的开发计算机。 您正在开发。NET Framework 2.0 应用程序上 Certkiller-WS554。应用程序将允许 Certkiller.com 用户发送电子邮件。 Certkiller.com 用户必须能够发送电子邮件包含的信息,如预算文件和图像。 您决定使用。NET 框架 2.0 附件类来创建您的应用程序中的电子邮件附件。 您需要使用附件类构造函数指定附件中的内容。 你应该做什么?()
A.应使用的流对象的附件类。
B.应使用字符串对象的附件类。
C.应使用图像对象附件类。
D.应使用XmlDocument对象的附件类。
E.应使用SqlDataReader对象的附件类。
