title: How to get the index of element from contains function of array in vb.net
body: <p>i have a list of large number of string elements in array 
  and i am using contains function to check if it contains that element. it is working fine. Now i want to get to know the index/position of element.
  suppose the array is </p>
  
  <pre><code>dim s as string() = {"first", "second","third"}
  </code></pre>
  
  <p>and the string</p>
  
  <pre><code>dim l as string = "third"
  </code></pre>
  
  <p>method</p>
  
  <pre><code>dim b as boolean = s.Contains(l, StringComparer.CurrentCultureIgnoreCase)
  </code></pre>
  
  <p>flag</p>
  
  <pre><code>if (b) Then
  messagebox.show("It exists") 
  end if
  </code></pre>
  
  <p>above array is just an example. original array consists of 7690 entries and each entry is written in utf-8 and indexOf function is not giving any result</p>