I have the code below:
List<XElement> DBListSetxElements = DbListSetItems[0].Value.Root.Descendants("ListSet").Select(desc => desc.Attribute("Name")).Distinct().ToList();
While compile getting error Error CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<string>' to 'System.Collections.Generic.List<System.Xml.Linq.XElement>'
Need Help.