To get the index of an item in a single line, use the FindIndex() and Contains() method. int index = myList.FindIndex(a => a.
確定! 回上一頁