Weird <T> Activator Question.
Posted
by j-t-s
on Stack Overflow
See other posts from Stack Overflow
or by j-t-s
Published on 2010-04-25T07:18:07Z
Indexed on
2010/04/25
7:23 UTC
Read the original article
Hit count: 237
Hello,
I'm sorry, but a while ago I wrote a piece of code that was so nice. And now I'm trying to remember it for a new project.
All I can remember about it is that it looked something like this:
public static Create<T>() *something missing here* : *Something missing here*
{
// add methods etc here. I also think I remember something like " Activator.CreateInstance" being used. But I'm not sure.
}
Has anybody written code like this before? Basically what it did was it created a control and passed it back to another project.
Thank you jt
© Stack Overflow or respective owner