@@ -1639,12 +1639,11 @@ public static IQueryable Skip([NotNull] this IQueryable source, int count)
16391639
16401640 private static readonly MethodInfo _skipWhilePredicate = GetMethod ( nameof ( Queryable . SkipWhile ) , 1 , mi =>
16411641 {
1642- return mi . GetParameters ( ) . Length == 1 &&
1642+ return mi . GetParameters ( ) . Length == 2 &&
16431643 mi . GetParameters ( ) [ 1 ] . ParameterType . GetTypeInfo ( ) . IsGenericType &&
16441644 mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericTypeDefinition ( ) == typeof ( Expression < > ) &&
16451645 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 < , > ) ;
16481647 } ) ;
16491648
16501649 /// <summary>
@@ -1717,12 +1716,11 @@ public static IQueryable Take([NotNull] this IQueryable source, int count)
17171716
17181717 private static readonly MethodInfo _takeWhilePredicate = GetMethod ( nameof ( Queryable . TakeWhile ) , 1 , mi =>
17191718 {
1720- return mi . GetParameters ( ) . Length == 1 &&
1719+ return mi . GetParameters ( ) . Length == 2 &&
17211720 mi . GetParameters ( ) [ 1 ] . ParameterType . GetTypeInfo ( ) . IsGenericType &&
17221721 mi . GetParameters ( ) [ 1 ] . ParameterType . GetGenericTypeDefinition ( ) == typeof ( Expression < > ) &&
17231722 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 < , > ) ;
17261724 } ) ;
17271725
17281726 /// <summary>
0 commit comments