How can I find the index of an item in a list without looping through it?
Currently this doesn\'t look very nice - searching through the list for the same item twice
Here is code for List Of String:
int indexOfValue = myList.FindIndex(a => a.Contains("insert value from list"));
Here is Code for List Of Integer:
int indexOfNumber = myList.IndexOf(/*insert number from list*/);