Welcome to MSDN Blogs Sign in | Join | Help

February 2006 - Posts

Reflecting on ParameterInfo for Generic class when ContainsGenericParameter is FALSE will return null

using System; using System.Reflection; public class MyClass<T> { public delegate T MyDelegate(); public MyClass(MyDelegate del){} } public class Program { public static void Main () { Type type = typeof (MyClass<>); if (type == null ) { Console
 
Page view tracker