LINQ Index of item - IndexWhere()


/ Published in: C#
Save to your folder(s)

Find the index of an item in a collection with a simple statement. For example:

int index = myList.IndexWhere(item => item.Something == someOtherThing);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.