单项选择题
You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement.
Which criterion should the method meet?()
A.The method must return a type of either IEnumerator or IEnumerable.
B.The method must return a type of IComparable.
C.The method must explicitly contain a collection.
D.The method must be the only iterator in the class.
点击查看答案
相关考题
-
单项选择题
最近,您已完成创建的应用程序使用应用程序配置文件。 此配置文件包含一段名为 EmployeeSection,其中包含雇员的元素。 您需要查看 EmployeeSection 元素的内容。 您需要确保 EmployeeSection 元素输出到控制台及其内容。 你应该做什么?()
A.
B.
C.
D. -
单项选择题
You need to identify a type that meets the following criteria: Is always a number. Is not greater than 65,535. Which type should you choose?()
A.System.UInt16
B.int
C.System.String
D.System.IntPtr -
单项选择题
You are developing an application for a client residing in Hong Kong.You need to display negative currency values by using a minus sign.Which code segment should you use?()
A.A
B.B
C.C
D.D
