我将属性类型从 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# ×1