单项选择题
您目前正在审查由其他开发人员创建的应用程序的过程中。您正在检查的应用程序包括声明一个名为 EmployeeList,其中存储雇员对象的集合。如下所示:公共类 EmployeeList: Enumerator, IEnumerable{/ / 类实现}您需要的能力来循环访问 EmployeeList,最小的开发工作。你应该做什么?()
A.利用switch语句
B.利用dowhile语句
C.利用foreach语句
D.使用if语句
相关考题
-
多项选择题
YouworkasanapplicationdeveloperatCer-Tech.com.YouareintheprocessofcreatinganapplicationforCert-Tech.com’sHumanResourcesdepartmentthattracksemployeebenefitsYouhavetostorecurrentemployeedatawithoutrecompilingtheapplication.Youelecttostorethisemployeedataasacustomsectionintheapplicationconfigurationfile.Therelevantportionoftheapplicationconfigurationfileisshowninthefollowingexhibit:Whatshouldyoudo?()
A. Create a custom section handler class that inherits the ConfigurationSection interface
B. Add a section element to the EmployeeSection element of the application configuration file
C. Create a custom section handler class that implements the IConfigurationSectionHandler interface.
D. Add an EmployeeSection element to the configSections element of the application confguration file
E. Create a custom section handler class that implements the IApplicationSettingsProvider interface
F. Add a section element to the configSections element of the application configuration file -
单项选择题
Whicheventwouldyouusetorunamethodimmediatelyafterserializationoccurs?()
A. OnSerializing
B. OnDeserializing
C. OnSerialized
D. OnDeserialized -
单项选择题
您正在编写自定义字典。该自定义字典类名为MyDictionary。您需要确保该字典是类型安全的字典。您应该使用哪个代码段?()
A.A
B.B
C.C
D.D
