Author: folkertsj | Posted on: 9/23/2008 11:52:36 AM | Views : 1287

How can i get a distinct "c" from this query.  from c in xml.Descendants("Link").Attributes("Type")...

It returns the same name no matter where i put the distinct clause..

 (from c in xml.Descendants("Link").Attributes("Type")
join l in xml.Descendants("Link")
on c.Value equals l.Attribute("Type").Value into groups
orderby c.Value
select new
{
Key = c.Value,
Count = groups.Count(),
Links =
from g in groups
...

Go to the complete details ...