خرید بک لینک

Vote count: 0

i have a list say :

List<string> list = new List<string>(){"Oracle","SQL Server","Java","Oracle","Python"};

Now i'm trying to get index of the second "Oracle" from the list using LINQ:

var indexFirefox = list.FindIndex(a => a.Text == "Oracle");

But this will give you only the first instance that is index 0. I want index as 4 in my result. Will using Skip help or there is a more simplistic way of getting the index. The example above is just a demo, i have a list with over 300 values.

asked 31 secs ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 18 مرداد 1395 ساعت: 4:55

صفحه بندی