code review request for Exists function
Posted on 2006-11-27
Looking for some advice. Can I tighten this up at all?
I don't want to waste time or do things I don't need to be doing
sourcesPassedIn looks like this: "mdb","class","xxx","yyy", etc.
Sources (which is an arraylist) will contain a subset of the list above
Public Function ExistsInSources(sourcesPassedIn as string()) As Boolean
Dim found as Boolean = false
for each s as String in sourcesPassedIn
if Sources.Contains(s) then
found = true