We help IT Professionals succeed at work.

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

Medium Priority
246 Views
Last Modified: 2012-03-15
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
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2015
Commented:
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.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.