• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • 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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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