> I have a simple situation in which I want to use generics along with dynamic
> type assignment. Following code snippet can explain in more detail
> But I am unable to do that will anybody help me why?
To make a generic type with a type only known at runtime, you need to
get the generic version of the type, then call Type.MakeGenericType.
However, at that point it's pretty hard to use.
What are you actually trying to do?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
nettellect - 28 Feb 2007 15:19 GMT
well I will try to do it... I am trying to develop some sort of rules
designer in WF using winfx 3.0 so a situation came where I was in need of
this solution to keep my code simple and readable.
> > I have a simple situation in which I want to use generics along with dynamic
> > type assignment. Following code snippet can explain in more detail
[quoted text clipped - 6 lines]
>
> What are you actually trying to do?