static string GenerateArray(DataArray d, int depth) { string white = ""; for (int i = 0; i < depth; ++i) white += " "; if(d.Size <= 0) { return "[]"; } else { string str = "[" + GenerateValue(d.At(0), depth + 1) + ",\n"; for(int i = 1; i < d.Size; ++i) { str += white + GenerateValue(d.At(i), depth + 1) + ",\n"; } return str + white + "]"; } }