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 ...