I have a list with duplicate items and would list to remove duplicates.
I have tried several approaches and none of them seem to have worked.
Here is my code that I have to populate the list.
{
public string Name { get; set; }
}
select new Skills
{
Name = xml.Element("skill").Value,
}).ToList();
Thanks
VulpesPosted Jul 28, 2011, 7:06 AM
Schuster EfigenioPosted Jul 28, 2011, 7:24 AM
This worked and the other extension method I had worked too I just wasn't looking in the right place. Both were slightly different but with the same result.
Thanks
Schuster EfigenioPosted Jul 28, 2011, 7:13 AM
Schuster EfigenioPosted Jul 28, 2011, 7:07 AM
Zoran HorvatPosted Jul 28, 2011, 7:02 AM
List
By default XPath evaluates only unique elements. After this query executes, List
Zoran