And while IList isn't covariant, a read-only list interface would be.
即使IList接口不是协变的,一个只读列表接口也理应如此。
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,当有人得知这些以后可能会觉得很有趣。
To avoid creating unresolved elements, you can view a list of the read-only units that refer to the deleted element and then check out those units.
为了避免产生不能解决的元素,您可以查看引用删除元素的只读单元的列表,然后检出这些单元。
应用推荐