Dynamically creating a Generic Type at Runtime
Posted by: Rick Strahls WebLog,
on 11 Nov 2011 |
View original | Bookmarked: 0 time(s)
I learned something new today. Not uncommon, but it's a core .NET runtime feature I simply did not know although I know I've run into this issue a few times and worked around it in other ways. Today there was no working around it and a few folks on Twitter pointed me in the right direction. The question I ran into is: How do I create a type instance of a generic type when I have dynamically acquired the type at runtime? Yup it's not something that you do everyday, but when you're writing code...