1
Reply

Ling Merging two List together.

David Smith

David Smith

Apr 5 2012 12:52 PM
1.8k
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)