generating a class dynamically from types that are fetched at runtime
<p>is doing the following possible in C# (or in any other language)</p>

<p><strong>1.</strong>  I am fetching data from a database. At run time i can compute the no. of columns and data types of the columns fetched.</p>

<p><strong>2.</strong>  Next i want to "generate" a class with these data types as fields. I also want to store all the records that i fetch in a collection. </p>

<pre><code>The problem is that i wanna do both step **1** and **2** at runt ime
</code></pre>

<p>is this possible ? I am using C# currently but i can shift to something else if i need to. </p>
