use new method
authorJb Evain <jbevain@gmail.com>
Thu, 15 May 2008 15:02:23 +0000 (15:02 -0000)
committerJb Evain <jbevain@gmail.com>
Thu, 15 May 2008 15:02:23 +0000 (15:02 -0000)
svn path=/trunk/mcs/; revision=103286

mcs/class/System.Core/System.Linq.Expressions/Expression.cs

index 0715a7a48fea6fc68b018ec74e2400baa0270d4e..5a6180c93af3ace429e96203ff2fb02ab777e9ed 100644 (file)
@@ -2080,8 +2080,7 @@ namespace System.Linq.Expressions {
 
                internal static bool IsNullable (Type type)
                {
-                       return type.IsGenericType && type.GetGenericTypeDefinition () == typeof (Nullable<>);
-               }
+                       return type.IsGenericInstanceOf (typeof (Nullable<>));          }
 
                static bool IsSignedNumber (Type t)
                {