Answers for "return index of item in list c#"

C#
3

Get Index position of an element in a list in c#

int index = myList.FindIndex(a => a.Prop == oProp);
Posted by: Guest on April-25-2021
0

c# list find index

// given list1 {3, 4, 6, 5, 7, 8}
list1.FindIndex(x => x==5);  // should return 3, as list1[3] == 5;
Posted by: Guest on February-25-2022

Code answers related to "return index of item in list c#"

C# Answers by Framework

Browse Popular Code Answers by Language