浏览代码

use new method

svn path=/trunk/mcs/; revision=103286
Jb Evain 17 年之前
父节点
当前提交
42cecd1166
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      mcs/class/System.Core/System.Linq.Expressions/Expression.cs

+ 1 - 2
mcs/class/System.Core/System.Linq.Expressions/Expression.cs

@@ -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)
 		{