Solved

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

Posted on 2012-03-11
1
208 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
0
Comment
Question by:AlexF777
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 37707804
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question