Working with an array in an array of objects

How can I work with an array in an array of objects

Please see image for more information:

enter image description hereenter image description here I use forech to get an Object, and then I want to work with Array in Object, but this is not possible

foreach (object element in result)

I want to get a value from an array and work with them, for example, I want to get "TestCategory_1", etc., but I can’t

Now, how can I work with a value like this?

Yours faithfully

+5
source share
1 answer

It seems that elementof resultare of type IDictionary . Try the following:

foreach (IDictionary element in result)
{
    var testCategory = element["categoryName"];
}
+4
source

All Articles