Advertisement
Guest User

List Method

a guest
Apr 26th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. /// <summary>
  2.         /// returns state of pole in List<List<int>>
  3.         /// </summary>
  4.         /// <returns></returns>
  5.         public List<List<int>> GetMassive()
  6.         {
  7.             List<List<int>> x = new List<List<int>>(9);
  8.             for (int i = 0; i < Length; i++)
  9.             {
  10.                 x[i] = new List<int>(9);
  11.                 for (int j = 0; j < Length; j++)
  12.                     x[i][j] = arr[i, j];
  13.             }
  14.  
  15.             return x;
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement