title: How to compare two 2d arrays
body: <p>i am using visual studio c# win form. . . i have 2d array of textboxes and i have another 2d array of valid solved sudoku i want to compare textbox's text to sudoku array but its not working.Here is my code:</p>
  
  <pre><code>        private void Isvalid()
          {
              for (int i = 0; i &lt; 4; i++)
                  for (int j = 0; j &lt; 4; j++)
                      if (copy[i, j] == textbox[i, j].Text)
                          isvalid = true;
  
  
          }
          private void check()
          {
              Isvalid();
              if (isvalid)
                  MessageBox.Show("NO");
              else
                  MessageBox.Show("YES");
  
          }
  </code></pre>
  
  <p>Can anyone plz help me. . .
  THANx in Advance. . .
  Thanx to all who answerd. . .</p>