I’m trying to loop over some arrays in a dictionary.
The problem I am facing is get the array back out of the dictionary. Please look at this line of code:
For Each Cobject As RelationalFrames.ContentObject In Array(LinkedObjects.Value(Ex.Name))
Ok, what do we have, I need an Cobject from type RelationalFrames.ContentObject in an array stored in a dictionary with Key “Ex.Name”
The dictionary is filled earlier in the code with this line:
LinkedObjects.Value(o.Name) = o.outputs
Where o.outputs is an array.
But on the first line (the For…Each) I got an illegalCastException on the Array(LinkedObjects.Value(Ex.Name))
Can anyone help me?