title: C# Excellibrary - how to get cell content?
body: <p>I need some quick help. 
  How do I get the content of a cell using excellibrary? The documentation is very thin.</p>
  
  <p>I don't really get the example code: </p>
  
  <pre><code> // traverse cells
   foreach (Pair&lt;Pair&lt;int, int&gt;, Cell&gt; cell in sheet.Cells)
   {
       dgvCells[cell.Left.Right, cell.Left.Left].Value = cell.Right.Value;
   }
  
   // traverse rows by Index
   for (int rowIndex = sheet.Cells.FirstRowIndex; 
          rowIndex &lt;= sheet.Cells.LastRowIndex; rowIndex++)
   {
       Row row = sheet.Cells.GetRow(rowIndex);
       for (int colIndex = row.FirstColIndex; 
          colIndex &lt;= row.LastColIndex; colIndex++)
       {
           Cell cell = row.GetCell(colIndex);
       }
   }
  </code></pre>
  
  <p>It seems overly complex. 
  I need to do something like:</p>
  
  <pre><code>xlInfo[0,0] = cell 1,1;
  xlInfo[0,1] = cell 1,2;
  xlInfo[0,2] = cell 1,3;
  </code></pre>
  
  <p>With EPPlus it would look something like this:</p>
  
  <pre><code>xlInfo[0,0] = sheet.Cells[1,1];
  xlInfo[0,1] = sheet.Cells[1,2];
  xlInfo[0,2] = sheet.Cells[1,3];
  </code></pre>
  
  <p>Is there a similar way of doing this with excellibrary? <em>(Disclaimer: some syntax error may occur in these example snippets, but they're just there for theory purposes.)</em></p>
  
  <p>EDIT: </p>
  
  <pre><code>xlInfo[0, 0] = Convert.ToString(sheet.Cells[1, 1]);
  </code></pre>
  
  <p>Gives me a NullReferenceException (Object reference not set to an instance of an object.).</p>
  
  <p>I'm using: <a href="http://code.google.com/p/excellibrary/" rel="nofollow">http://code.google.com/p/excellibrary/</a></p>