I have an object of objects, and I’m not sure how to access the values. Here’s a picture from the VS debugger:

the object in question is bounds. I’d like to get the value 7, 14, 157 and 174 like so:
bounds[0] //Should equal 7
bounds[3] //Should equal 174
Obviously this won’t work because it’s not an array but an object of objects. Could you explain the correct way to access the numeric values nested inside the bounds object?
Thank you!
You need to cast
boundsfromobjecttoobject[], get the value from the array, then cast it todouble.or one line
If you put your numbers in an array of double in the first place, then you can avoid all the casting.
Also, “bracket notation” is know as indexers.