how to read all the list of key using LINQ tried it seems its not working
XDocument fooXML = XDocument.Load(configurationFileName);
var query = from a in fooXML.Element("environment").Elements("add")
select new
{
key = a.Attribute("key").Value,
val = a.Attribute("Value").Value
};

Amit Patel29 reputationPosted Jul 16, 2019, 4:23 AM EDT
Rajanikant HawaldarRank #108 · 20.5K reputationPosted Jul 16, 2019, 4:41 AM EDT