Geeks With Blogs
Jonas Bush July 2010 Entries
Creating generic classes at runtime
Hey there! So recently I was struggling with something for the new job, and was able to figure it out, and thought I'd share it with you, dear readers. I have a generic class I use for parsing data. Inside that class, I ran across the need to create another instance of the generic class to parse more data, but I didn't know the type at compile time. So I have this class: public class MyClass<T> where T: class { public void DoSomething() { } } In the course of DoSomething, I need to create a ......

Posted On Thursday, July 15, 2010 3:45 PM

Copyright © Jonas Bush | Powered by: