Code:
int myIndex = Array.IndexOf(myArray, myValue);