title: How to convert a datareader to datatable
body: <p>I have a question about converting a <code>datareader</code> to a <code>datatable</code>.  In my code, I have a <code>datareader</code> created in one class and passed to another class that I want to convert it to a <code>datatable</code>.  </p>
  
  <p>When I do this, it does not seem to work, as the table remains empty. If I do the conversion in the same function, it works fine.  </p>
  
  <p>Its only when I pass the <code>datareader</code> to another function that it <strong>stops working</strong>.  Is this because the <code>dr</code> is closed or something?  How do I overcome this problem?  Any help would be great. </p>