开发者

IndexOf predicate?

I want to find the index of an element in a list maching a certain predicate, is there a better way to do it than:

var index = list.IndexOf(list.Find(predicate)开发者_运维技巧);

?


Are you looking for List<T>.FindIndex(predicate)?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜