467,907 Members | 1,681 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 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

Nov 22 '05 #1
  • viewed: 720

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tristan | last post: by
reply views Thread by Brandon Potter | last post: by
9 posts views Thread by Harsha Srinath | last post: by
5 posts views Thread by drdave | last post: by
3 posts views Thread by steve | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.