I am trying to find index of elements stored in an array,
some elements are coming repeatedly, when I am trying to get index of those elements its giving the index of first element always.
For Eg:

```
int[] arr = {3,5,6,7,2,3,11,14 };
        int index = Array.IndexOf(arr, 3);
        Console.WriteLine(index);
        Console.ReadLine();

```

when I want to get the index of 3 as 5, its still giving 0.
I cannot skip elements in my logic, I have to check each element every time in my program.
PLease help if some can.

Regards.