How do I find the position of an element in a C# array
<p>I have a C# array of integers. The integers in the array are all unique. For example the array contains page numbers: 1,2,4,5,7,9</p>

<p>If I am on page 5 I would like to have a previous button to take me to page 4 and 8. </p>

<p>My question is how can I find the index position in an array if I just know it's the row that contains the number "5"?</p>

<p>Hope someone can help. </p>

<p>thanks, </p>
