I have a DynamicNode
named products which has product name and product id.
I need to select all products id's to a array from the DynamicNode
products using LINQ.
I tried something like
@helper PrintProductYearChart(IEnumerable<DynamicNode> products)
{
var res = products.select(x => x.filelds['Id']).ToAarray();
}
but its not working correctly.
Can any one help.Thanks in advance
DynamicNode
look like? – DrabeckDynamicNode
defined like? What properties and methods does it have? (Only with that knowledge, we can tell whatfilelds
does or what to use instead.) – Drabeckfilelds
(in capital letters:FILELDS
) orfileIds
(in capital letters:FILEIDS
)? – Drabeck