How to transpose rows of string into columns using lists in a foreach nested loop C#
问题 I have a string structured as following: RLLR LRRL RVVL RRRR // string was made like: string s = "RLLR" + "\n" + "LRRL" + "\n" + "RVVL" + "\n" + "RRRR"; What I want to do to this table is transpose the rows to columns, so it will look like: RLRR LRVR LRVR RLLR What I've done so far is that I converted the string to an array so i can loop through it like so: List<string> line_value = new List<string>();//list for one line of array List<string> single_value = new List<string>();//list for