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

Subscriptions

News

Source code published in this blog is public domain unless otherwise specified.

 

kzu in LinkedIn

  Microsoft MVP Profile

 Contact

Post Categories

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