I have 2 lists say list1 and list2. Like
List<int> list1 = {1,2,3};
List<int> list2 = {3,4};
now I want my resultant list to be like
{1,2,3,4}
I have tried this
result= list1.Union(list2).ToList();
But it gives result like
{1,2,3,3,4}
Can anyone help me with this?