[Edit]
+
0
-
0
c# find element in List
1 2 3 4List<string> list = new List<string> { "A1", "A2", "B1" }; string item = "A2"; int result = list.FindIndex(x => x == item); // 1
1 2 3 4List<string> list = new List<string> { "A1", "A2", "B1" }; string item = "A2"; int result = list.FindIndex(x => x == item); // 1