title: Is it possible to convert a 2-d array to list of objects
body: <p>I'm writing a page ranking algorithm that uses a 2-dimension array for storing data. 1 means a page has a link to another page, 0 means that it does not. My question is:
   Is there a way to convert a 2-d <code>int[,]</code> matrix into a list of objects.</p>
  
  <p>For example my matrix looks like this:</p>
  
  <pre><code>int[,] matrix = new int[2, 2];    
  matrix[0,0] = 0    
  matrix[0,1] = 1    
  matrix[1,0] = 1    
  matrix[1,1] = 1;
  </code></pre>
  
  <p>it produces an array:</p>
  
  <pre><code>0 1    
  1 0
  </code></pre>
  
  <p>What I want to do is convert this matrix into a <code>List</code> of <code>Page</code> objects:</p>
  
  <pre><code>public class Page{         
      public string PageName {get;set;}
      public List&lt;Page&gt; ShowsToPages {get; set;}
  
      public Page(){ this.ShowsToPages = new List&lt;Page&gt;();}
  }
  </code></pre>
  
  <p>In this scenarion I would have a <code>List&lt;Page&gt;</code> that contains 2 pages. And each page object would have a list, that contains all the references of Pages it shows to.</p>