I need to pass an array into a method but the dimension of the array can vary indefinitely (2D, 3D, . . . , nD) with the functioning of the program. Is there a way to allow the method to accept an array of any dimension and to determine the dimension of the array. thanks