I have created a generic TypeDescriptionProvider. I need to register this provider for a particular type during runtime. The type is extracted from IList, So basically I have this
IList
MyTypeProvider<T>
and I need to do something like this:
TypeDescriptor.AddProvider(new MyTypeDescriptionProvider<name>(type), type);
I was able to get the T from IList as Type, but I am unable to pass it to MyTypeDescriptionProvider<>.
Thanks, Goran