小编Hem*_*lle的帖子

如何从 IReadOnlyList<T> 中查找项目?

我将属性类型从 a 更改为List<T>IReadOnlyList<T>但我正在使用该List<T>.Find()方法,现在编译器给出error CS1061: 'IReadOnlyList<T>' does not contain a definition for 'Find' and no accessible extension method 'Find' accepting a first argument of type 'IReadOnlyList<T>' could be found (are you missing a using directive or an assembly reference?). 我怎样才能找到一个项目IReadOnlyList<T>

c#

3
推荐指数
1
解决办法
2691
查看次数

标签 统计

c# ×1