title: VB.NET - Alternative to Array.Contains?
body: <p>Before, I use this on .NET Framework 3.5 and it's working  fine:</p>
  
  <pre><code>    If (New String() {"ER", "PM", "EM", "OC"}).Contains(Session("Position")) Then
          'Some codes
      End If
  </code></pre>
  
  <p>Now I am doing a project that runs with .NET 2.0 and the code above is not working, it's giving me this:</p>
  
  <pre><code>'Contains' is not a member of 'System.Array'.
  </code></pre>
  
  <p>How can I achieve the codes above (.Contains) without migrating from 2.0 to 3.0? Any alternatives? </p>