Daniel Cazzulino's Blog : How to get the type of a generic type

How to get the type of a generic type

Type t = typeof(Dictionary<,>);
Type t2 = typeof(IList<>);
Type at = typeof(Predicate<>);

:D

posted on Tuesday, September 20, 2005 5:29 PM by kzu