Comparing for common elements in multiple lists using intersect in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gutterstink
    New Member
    • Mar 2013
    • 1

    Comparing for common elements in multiple lists using intersect in C#

    I have a dynamic number of lists coming in from a different method . i need to find out the common elements present in all of the lists .

    How do i do it with intersect construct in C#.

    Placing it in a loop gets me the elements common in the last comparison , but never gets me elements commong in all lists.

    Any ideas
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Call intersect many times with the lists one after the other.

    Comment

    Working...