469,945 Members | 2,294 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

Finding common entries in multiple arraylists

Trying to find the best way to find common entries in an x number of
ArrayLists or arrays of integers. Curious if there is a method already
available in .NET to do just this very thing.

Situation is that each array contains search results for a given criteria,
but the end result should only give the search results that are common to
all arrays of results.

SearchArrayOne[0] = 100
SearchArrayOne[1] = 101
SearchArrayOne[2] = 102
SearchArrayOne[3] = 103

SearchArrayTwo[0] = 102
SearchArrayTwo[1] = 103

End Results:
ResultsArray[0] = 102
ResultsArray[1] = 103

Jul 21 '05 #1
0 987

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by andreas.maurer1971 | last post: by
reply views Thread by Brandon Potter | last post: by
2 posts views Thread by Cindy | last post: by
4 posts views Thread by jameswilkinsonfjs | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.