我想在一个包含某个谓词的列表中找到一个元素的索引,有没有比这更好的方法呢?
var index = list.IndexOf(list.Find(predicate));
发布于 2011-01-13 21:50:42
你在找List.FindIndex(predicate)吗?
List.FindIndex(predicate)
https://stackoverflow.com/questions/4680723
相似问题