private void setWidthHeight(Level level, string[] rows) { int length = rows [rows.Length - 1] == "" ? rows.Length - 1 : rows.Length; level.setHeight(length); level.setWidth(rows[0].Split(',').Length); }