I am working on some code that uses dynamic variables.
dynamic variable;
Behind the scenes, this variable contains the Shapes collection, which again is a collection of dynamic variables. So code like this works fine:
foreach(var shape in variable.Shapes)
I need to get the first height of an element from this collection. This hack works well:
double height = 0; foreach(var shape in variable.Shapes) { height = shape.Height;
Is there a better way to do this?
Marko source share