var ac = doc.Root.Descendants("Positions") .OrderBy(item=>item.Element("ClosingMarketValue")) .Select(item=> new { Col1 = item.Element("MSDWSecurityCode").Value, Col2 = item.Element("ClosingMarketValue").Value });
.Take(10)
.Select(....)
var ac = doc.Root.Descendants("Positions") .Select(item=> new { Col1 = item.Element("MSDWSecurityCode").Value, Col2 = item.Element("ClosingMarketValue").Value }) .OrderBy(x=>x.Col2) .Take(10);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)