I recently converted some code to use Generic types in C# 2.0 and got the following error:
Cannot create an instance of ... because Type.ContainsGenericParameters is true
Turns out, you can’t dynamically call methods on a generic class. Well you can, but you kind of have to convert the generic type to enable late bound reflection.
type = instance.GetType().MakeGenericType(instance.GetType().GetGenericArguments());
return type.GetProperty(property).GetValue(instance, null);
via (GA)








