Advertisement
Guest User

Untitled

a guest
May 29th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. private static string ToStringer(int[,] ab)
  2.         {
  3.             string str = "{";
  4.             for (int i = 0; i < ab.GetLength(0); ++i)
  5.             {
  6.                 str += "{";
  7.                 for (int j = 0; j < ab.GetLength(1); ++j)
  8.                 {
  9.                     str += ab[i, j].ToString();
  10.                     if (j != ab.GetLength(1) - 1)
  11.                         str += ",";
  12.                 }
  13.  
  14.                 str += "}";
  15.                 if (i != ab.GetLength(0) - 1)
  16.                     str += ",";
  17.             }
  18.  
  19.             str += "}";
  20.             //Console.WriteLine(str);
  21.             return str;
  22.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement