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

VulpesRank #55 · 29.2K reputationPosted Jul 28, 2011, 3:06 AM EDT
Zoran HorvatRank #792 · 2.9K reputationPosted Jul 28, 2011, 3:02 AM EDT
List
By default XPath evaluates only unique elements. After this query executes, List
Zoran
Schuster Efigenio20 reputationPosted Jul 28, 2011, 3:07 AM EDT
Schuster Efigenio20 reputationPosted Jul 28, 2011, 3:13 AM EDT
Schuster Efigenio20 reputationPosted Jul 28, 2011, 3:24 AM EDT
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