欢迎来到建筑考试题库网 建筑考试题库官网
全部科目 > 微软认证考试 > MCPD > MCPD(70-536)

单项选择题

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.

点击查看答案
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题