我有一个列表,如:
List<int> baslikIndexes = new List<int> { };
Run Code Online (Sandbox Code Playgroud)
我手动添加了元素.我想知道例如元素"23"是否在其中.我试图使用"存在"方法,但我还没弄明白如何使用它.我试过这个,它给出了错误:
baslikIndexes.Exists(Predicate<int>(23)); // I try to check whether 23 is in the list or not
Run Code Online (Sandbox Code Playgroud)
感谢帮助..
| 归档时间: |
|
| 查看次数: |
64 次 |
| 最近记录: |