@@ -1639,12 +1639,11 @@ public static IQueryable Skip([NotNull] this IQueryable source, int count)
1639
1639
1640
1640
private static readonly MethodInfo _skipWhilePredicate = GetMethod ( nameof ( Queryable . SkipWhile ) , 1 , mi =>
1641
1641
{
1642
- return mi . GetParameters ( ) . Length == 1 &&
1642
+ return mi . GetParameters ( ) . Length == 2 &&
1643
1643
mi . GetParameters ( ) [ 1 ] . ParameterType . GetTypeInfo ( ) . IsGenericType &&
1644
1644
mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericTypeDefinition ( ) == typeof ( Expression < > ) &&
1645
1645
mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericArguments ( ) [ 0 ] . GetTypeInfo ( ) . IsGenericType &&
1646
- mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericArguments ( ) [ 0 ] . GetGenericTypeDefinition ( ) ==
1647
- typeof ( Func < , > ) ;
1646
+ mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericArguments ( ) [ 0 ] . GetGenericTypeDefinition ( ) == typeof ( Func < , > ) ;
1648
1647
} ) ;
1649
1648
1650
1649
/// <summary>
@@ -1717,12 +1716,11 @@ public static IQueryable Take([NotNull] this IQueryable source, int count)
1717
1716
1718
1717
private static readonly MethodInfo _takeWhilePredicate = GetMethod ( nameof ( Queryable . TakeWhile ) , 1 , mi =>
1719
1718
{
1720
- return mi . GetParameters ( ) . Length == 1 &&
1719
+ return mi . GetParameters ( ) . Length == 2 &&
1721
1720
mi . GetParameters ( ) [ 1 ] . ParameterType . GetTypeInfo ( ) . IsGenericType &&
1722
1721
mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericTypeDefinition ( ) == typeof ( Expression < > ) &&
1723
1722
mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericArguments ( ) [ 0 ] . GetTypeInfo ( ) . IsGenericType &&
1724
- mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericArguments ( ) [ 0 ] . GetGenericTypeDefinition ( ) ==
1725
- typeof ( Func < , > ) ;
1723
+ mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericArguments ( ) [ 0 ] . GetGenericTypeDefinition ( ) == typeof ( Func < , > ) ;
1726
1724
} ) ;
1727
1725
1728
1726
/// <summary>
0 commit comments