1
Answer

Ling Merging two List together.

David Smith

David Smith

12y
1.9k
1
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)