Need help converting js to C#

I need some help converting this to C#. This code is from a java sample I found that I want to use. It uses Array which apparently, js doesn’t do but C# does. Anybody able to help me out?

private var tiles : Array;

tiles = new Array();
	
for (index = 0; index < max_index*max_index ; index ++)
{
  tiles.Add(new Array());
}
...
//This is in a different for loop.
tile = new GameObject ("Tile"+index);
tiles[index].Add(tile.GetComponent(MeshFilter).mesh);

using System.Collections.Generic;

//[...]


private var tiles = new List<List<Mesh>>();

//[...]
for (index = 0; index < max_index*max_index ; index ++)
{
    tiles.Add(new List<Mesh>());
}

//[...]

tiles[index].Add(tile.GetComponent<MeshFilter>().mesh);

Are you sure you need to store multiple meshes per index?
Anyway…