ReDim via Introspection

I have a class which is a large collection of arrays. I was hoping to create a sub of the class which receives a LastIndex, iterates through all the properties via inspection, and ReDim’s all the arrays with the provided LastIndex.

I know I can use the TypeInfo.GetArrayRank to find the last index of an array, but there’s no equally obvious means of setting the value. I can’t really cast the property, as it’s not an object, so I’m trying to figure other ways to accomplish this.

Ideas? :slight_smile: