I know that you can pass an array into a function like this:
Private Shared Function MyFunc(MyArr As String()) As String()
And I can pass a two dimension array like this:
Private Shared Function MyFunc(MyArr As String(,)) As String(,)
But how can I pass a variable dimension array into a function? That is, how can I make it so the function will accept a 1,2,3,etc-dimensional array without having to construct overloads? I would like to have a dynamic call to the function and have a simple check inside it. Constructing overloads will force a limit on how many dimensions I can use.