Как я могу найти индекс элемента в списке, не проходя через него?var oProp = something;
int theThingIActuallyAmInterestedIn = myList.IndexOf(myList.Single(i => i.Prop == oProp));
Подробнее здесь: https://stackoverflow.com/questions/179 ... ingle-step
Мобильная версия