• And while IList isn't covariant, a read-only list interface would be.

    即使IList接口不是协变的,一个只读列表接口理应如此。

    youdao

  • It is a bit odd, since List for any type other than object does not fulfill the full contract of IList.

    这个有点奇怪因为除了Tobject时之外,其他情况下List满足IList要求。

    youdao

  • Using IList to model a set is unfortunate: it creates a semantic problem because lists allow duplicates.

    使用IList来对set建模让人徒呼奈何的一件事情:带来语义上冲突因为list允许出现重复的元素。

    youdao

  • It may sound surprising, or not, but IList and IList are our interfaces intended for read-only collections.

    无论起来是否令人惊讶但是IListIList我们打算用于只读集合的两个接口

    youdao

  • Perhaps the solution here is to retroactively create base classes for IList that separate the methods that accept a T value from the ones that return one.

    或许这里应该针对IList创建一个,该类会将接受T与返回T的方法区分开来。

    youdao

  • For example, they can help you test your custom Exception class, verify that your datatype's Equals & GetHashCode are consistent, and check IList invariants.

    例如可以测试定义的异常验证自定义类型Equals和GetHashCode方法是否一致以及检查IList的不变性。

    youdao

  • One may find it interesting to know that IList does not inherit from IReadOnlyList, even though it has all the same members and all lists can be expressed as a read-only list. Immo Landwerth explains.

    尽管IList接口与IReadOnlyList接口具有全部相同成员并且所有IList类型的列表表示只读列表,但是IList不是继承ireadonlylist,当有人得知这些以后可能会觉得有趣。

    youdao

  • One may find it interesting to know that IList does not inherit from IReadOnlyList, even though it has all the same members and all lists can be expressed as a read-only list. Immo Landwerth explains.

    尽管IList接口与IReadOnlyList接口具有全部相同成员并且所有IList类型的列表表示只读列表,但是IList不是继承ireadonlylist,当有人得知这些以后可能会觉得有趣。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定