David Smith

David Smith

  • NA
  • 2k
  • 0

Ling Merging two List together.

Apr 5 2012 12:52 PM
I want to use linq to merge two list, and the with the linq I want to remove the duplicates, how to remove duplicate values after merging the to list in linq. I am assuming you probably call the distinct method after

How to merger ListOne and ListTwo below.

For instance, if one list contains:

List<string> ListOne

"Bob"
"Bill"
"Fred"
"Jim"

and another list contains:

List<string> ListTwo

"Bob"
"Fred"

the result will be:

"Bill"
"Jim"

Answers (1)