From 42cecd11663daf40f7dfd453b1d5faff33a56b64 Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Thu, 15 May 2008 15:02:23 +0000 Subject: [PATCH] use new method svn path=/trunk/mcs/; revision=103286 --- mcs/class/System.Core/System.Linq.Expressions/Expression.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mcs/class/System.Core/System.Linq.Expressions/Expression.cs b/mcs/class/System.Core/System.Linq.Expressions/Expression.cs index 0715a7a48fe..5a6180c93af 100644 --- a/mcs/class/System.Core/System.Linq.Expressions/Expression.cs +++ b/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) { -- 2.25.1