get array field using reflection
BlitzMax Forums/BlitzMax Programming/get array field using reflection When you don't know the type it is.
There's no way to get the array directly - it can be of any dimensions and any type, after all. You should reconstruct it element by element through typeid.ArrayLength and typeid.GetArrayElement, where typeid is TTypeId.ForObject(fld).
However, if anyone knows how to handle (real) multi-dimensional arrays, please share your knowledge.
There's no way to get the array directly - it can be of any dimensions and any type, after all. You should reconstruct it element by element through typeid.ArrayLength and typeid.GetArrayElement, where typeid is TTypeId.ForObject(fld).
However, if anyone knows how to handle (real) multi-dimensional arrays, please share your knowledge.