C# paste T model class dynamically as variable : <p>I want to store my model class as a variable and use it in all my code dynamically. For example I have something like this:</p>

<pre><code>IEnumerable&lt;Student&gt; students = GetAllStudents();
</code></pre>

<p>Normally I must always declare and retype Student class. But I need to declare it only once and after that use it dynamically in my code. Simply I want to do something like this:</p>

<pre><code>Student dynamicType;
</code></pre>

<p>So after that can be possible:</p>

<pre><code>IEnumerable&lt;dynamicType&gt; students = GetAllStudents();
</code></pre>

<p>Can you help me to find right solution? Is it possible to do something like this?
Thank you</p>
