IEnumerable<T> with dynamic generic - C# <p>I am trying to achieve following, is it possible?</p> <pre><code>Type T = Type.GetType("EntityName") IEnumerable&lt;T&gt; entities = BaseRepository.GetEntities(searchCriteria) as IEnumerable&lt;T&gt;(); </code></pre>