• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

can't locate array.contains in VS2010 ( VB.NET )

hello,

 the following logic ( specifically arrExceptions.Contains(ch)) works fine in VS2008, but not in VS2010, may be i am missing an imports or something ...

   Private Function strFilterExceptions(ByVal strToken As String, ByVal arrExceptions() As Char) As String

      strFilterExceptions = ""

      For Each ch As Char In strToken
         If Not arrExceptions.Contains(ch) Then
            strFilterExceptions += ch
         End If
      Next

      Return strFilterExceptions
0
AlexF777
Asked:
AlexF777
1 Solution
 
Jacques Bourgeois (James Burger)PresidentCommented:
You need to Imports System.Linq, either at the file level, or in the global Imported namespaces list in the Project's properties Referneces tab.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now