storing matrix in a string

I want to store a matrix of order N*N in a single string and than print the print the string which will give me display in matrix form(tabular) , this is so
far what i got and it's not in a single but in a array of strings , the code is in c# never mind that.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
     public override string ToString()
 {
           string  nothing="\0";
     string[] matrix = new string[s];
     Console.WriteLine("Display");
     for (int i = 0; i < s; i++)
     {
         for (int j = 0; j < s; j++)
         {
            return matrix[i] += (arr1[i, j] + "\t");
             
         }
         Console.WriteLine(matrix[i]);
         
     }
     return nothing;
}
Topic archived. No new replies allowed.