// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection; using System.Threading; using System.Threading.Tasks; namespace System.Linq { public static partial class AsyncQueryable { private static MethodInfo s_AggregateAsync__TSource__3__0; private static MethodInfo AggregateAsync__TSource__3__0(Type TSource) => (s_AggregateAsync__TSource__3__0 ?? (s_AggregateAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(AggregateAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AggregateAsync(this IAsyncQueryable source, Expression> accumulator, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAsync__TSource__3__0(typeof(TSource)), source.Expression, accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAsync__TSource_TAccumulate__4__0; private static MethodInfo AggregateAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) => (s_AggregateAsync__TSource_TAccumulate__4__0 ?? (s_AggregateAsync__TSource_TAccumulate__4__0 = new Func, object, Expression>, CancellationToken, ValueTask>(AggregateAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static ValueTask AggregateAsync(this IAsyncQueryable source, TAccumulate seed, Expression> accumulator, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAsync__TSource_TAccumulate__4__0(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAsync__TSource_TAccumulate_TResult__5__0; private static MethodInfo AggregateAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) => (s_AggregateAsync__TSource_TAccumulate_TResult__5__0 ?? (s_AggregateAsync__TSource_TAccumulate_TResult__5__0 = new Func, object, Expression>, Expression>, CancellationToken, ValueTask>(AggregateAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate, TResult); public static ValueTask AggregateAsync(this IAsyncQueryable source, TAccumulate seed, Expression> accumulator, Expression> resultSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAsync__TSource_TAccumulate_TResult__5__0(typeof(TSource), typeof(TAccumulate), typeof(TResult)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator, resultSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAwaitAsync__TSource__3__0; private static MethodInfo AggregateAwaitAsync__TSource__3__0(Type TSource) => (s_AggregateAwaitAsync__TSource__3__0 ?? (s_AggregateAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AggregateAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AggregateAwaitAsync(this IAsyncQueryable source, Expression>> accumulator, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAwaitAsync__TSource_TAccumulate__4__0; private static MethodInfo AggregateAwaitAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) => (s_AggregateAwaitAsync__TSource_TAccumulate__4__0 ?? (s_AggregateAwaitAsync__TSource_TAccumulate__4__0 = new Func, object, Expression>>, CancellationToken, ValueTask>(AggregateAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static ValueTask AggregateAwaitAsync(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAwaitAsync__TSource_TAccumulate__4__0(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0; private static MethodInfo AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) => (s_AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0 ?? (s_AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0 = new Func, object, Expression>>, Expression>>, CancellationToken, ValueTask>(AggregateAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate, TResult); public static ValueTask AggregateAwaitAsync(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator, Expression>> resultSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0(typeof(TSource), typeof(TAccumulate), typeof(TResult)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator, resultSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo AggregateAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_AggregateAwaitWithCancellationAsync__TSource__3__0 ?? (s_AggregateAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AggregateAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AggregateAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> accumulator, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0; private static MethodInfo AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) => (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0 ?? (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0 = new Func, object, Expression>>, CancellationToken, ValueTask>(AggregateAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static ValueTask AggregateAwaitWithCancellationAsync(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0; private static MethodInfo AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) => (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0 ?? (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0 = new Func, object, Expression>>, Expression>>, CancellationToken, ValueTask>(AggregateAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate, TResult); public static ValueTask AggregateAwaitWithCancellationAsync(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator, Expression>> resultSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.ExecuteAsync(Expression.Call(AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0(typeof(TSource), typeof(TAccumulate), typeof(TResult)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator, resultSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AllAsync__TSource__3__0; private static MethodInfo AllAsync__TSource__3__0(Type TSource) => (s_AllAsync__TSource__3__0 ?? (s_AllAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(AllAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AllAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(AllAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AllAwaitAsync__TSource__3__0; private static MethodInfo AllAwaitAsync__TSource__3__0(Type TSource) => (s_AllAwaitAsync__TSource__3__0 ?? (s_AllAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AllAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AllAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(AllAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AllAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo AllAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_AllAwaitWithCancellationAsync__TSource__3__0 ?? (s_AllAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AllAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AllAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(AllAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AnyAsync__TSource__2__0; private static MethodInfo AnyAsync__TSource__2__0(Type TSource) => (s_AnyAsync__TSource__2__0 ?? (s_AnyAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(AnyAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AnyAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AnyAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AnyAsync__TSource__3__0; private static MethodInfo AnyAsync__TSource__3__0(Type TSource) => (s_AnyAsync__TSource__3__0 ?? (s_AnyAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(AnyAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AnyAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(AnyAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AnyAwaitAsync__TSource__3__0; private static MethodInfo AnyAwaitAsync__TSource__3__0(Type TSource) => (s_AnyAwaitAsync__TSource__3__0 ?? (s_AnyAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AnyAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AnyAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(AnyAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AnyAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo AnyAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_AnyAwaitWithCancellationAsync__TSource__3__0 ?? (s_AnyAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AnyAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AnyAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(AnyAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_Append__TSource__2__0; private static MethodInfo Append__TSource__2__0(Type TSource) => (s_Append__TSource__2__0 ?? (s_Append__TSource__2__0 = new Func, object, IAsyncQueryable>(Append).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Append(this IAsyncQueryable source, TSource element) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Append__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(element, typeof(TSource)))); } private static MethodInfo s_AverageAsync__2__0; private static MethodInfo AverageAsync__2__0 => (s_AverageAsync__2__0 ?? (s_AverageAsync__2__0 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__1; private static MethodInfo AverageAsync__2__1 => (s_AverageAsync__2__1 ?? (s_AverageAsync__2__1 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__2; private static MethodInfo AverageAsync__2__2 => (s_AverageAsync__2__2 ?? (s_AverageAsync__2__2 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__3; private static MethodInfo AverageAsync__2__3 => (s_AverageAsync__2__3 ?? (s_AverageAsync__2__3 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__4; private static MethodInfo AverageAsync__2__4 => (s_AverageAsync__2__4 ?? (s_AverageAsync__2__4 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__5; private static MethodInfo AverageAsync__2__5 => (s_AverageAsync__2__5 ?? (s_AverageAsync__2__5 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__6; private static MethodInfo AverageAsync__2__6 => (s_AverageAsync__2__6 ?? (s_AverageAsync__2__6 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__7; private static MethodInfo AverageAsync__2__7 => (s_AverageAsync__2__7 ?? (s_AverageAsync__2__7 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__8; private static MethodInfo AverageAsync__2__8 => (s_AverageAsync__2__8 ?? (s_AverageAsync__2__8 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__2__9; private static MethodInfo AverageAsync__2__9 => (s_AverageAsync__2__9 ?? (s_AverageAsync__2__9 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); public static ValueTask AverageAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__0; private static MethodInfo AverageAsync__TSource__3__0(Type TSource) => (s_AverageAsync__TSource__3__0 ?? (s_AverageAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__1; private static MethodInfo AverageAsync__TSource__3__1(Type TSource) => (s_AverageAsync__TSource__3__1 ?? (s_AverageAsync__TSource__3__1 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__2; private static MethodInfo AverageAsync__TSource__3__2(Type TSource) => (s_AverageAsync__TSource__3__2 ?? (s_AverageAsync__TSource__3__2 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__3; private static MethodInfo AverageAsync__TSource__3__3(Type TSource) => (s_AverageAsync__TSource__3__3 ?? (s_AverageAsync__TSource__3__3 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__4; private static MethodInfo AverageAsync__TSource__3__4(Type TSource) => (s_AverageAsync__TSource__3__4 ?? (s_AverageAsync__TSource__3__4 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__5; private static MethodInfo AverageAsync__TSource__3__5(Type TSource) => (s_AverageAsync__TSource__3__5 ?? (s_AverageAsync__TSource__3__5 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__6; private static MethodInfo AverageAsync__TSource__3__6(Type TSource) => (s_AverageAsync__TSource__3__6 ?? (s_AverageAsync__TSource__3__6 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__7; private static MethodInfo AverageAsync__TSource__3__7(Type TSource) => (s_AverageAsync__TSource__3__7 ?? (s_AverageAsync__TSource__3__7 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__8; private static MethodInfo AverageAsync__TSource__3__8(Type TSource) => (s_AverageAsync__TSource__3__8 ?? (s_AverageAsync__TSource__3__8 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAsync__TSource__3__9; private static MethodInfo AverageAsync__TSource__3__9(Type TSource) => (s_AverageAsync__TSource__3__9 ?? (s_AverageAsync__TSource__3__9 = new Func, Expression>, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__0; private static MethodInfo AverageAwaitAsync__TSource__3__0(Type TSource) => (s_AverageAwaitAsync__TSource__3__0 ?? (s_AverageAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__1; private static MethodInfo AverageAwaitAsync__TSource__3__1(Type TSource) => (s_AverageAwaitAsync__TSource__3__1 ?? (s_AverageAwaitAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__2; private static MethodInfo AverageAwaitAsync__TSource__3__2(Type TSource) => (s_AverageAwaitAsync__TSource__3__2 ?? (s_AverageAwaitAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__3; private static MethodInfo AverageAwaitAsync__TSource__3__3(Type TSource) => (s_AverageAwaitAsync__TSource__3__3 ?? (s_AverageAwaitAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__4; private static MethodInfo AverageAwaitAsync__TSource__3__4(Type TSource) => (s_AverageAwaitAsync__TSource__3__4 ?? (s_AverageAwaitAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__5; private static MethodInfo AverageAwaitAsync__TSource__3__5(Type TSource) => (s_AverageAwaitAsync__TSource__3__5 ?? (s_AverageAwaitAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__6; private static MethodInfo AverageAwaitAsync__TSource__3__6(Type TSource) => (s_AverageAwaitAsync__TSource__3__6 ?? (s_AverageAwaitAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__7; private static MethodInfo AverageAwaitAsync__TSource__3__7(Type TSource) => (s_AverageAwaitAsync__TSource__3__7 ?? (s_AverageAwaitAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__8; private static MethodInfo AverageAwaitAsync__TSource__3__8(Type TSource) => (s_AverageAwaitAsync__TSource__3__8 ?? (s_AverageAwaitAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitAsync__TSource__3__9; private static MethodInfo AverageAwaitAsync__TSource__3__9(Type TSource) => (s_AverageAwaitAsync__TSource__3__9 ?? (s_AverageAwaitAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__0 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__1; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__1(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__1 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__2; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__2(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__2 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__3; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__3(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__3 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__4; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__4(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__4 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__5; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__5(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__5 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__6; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__6(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__6 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__7; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__7(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__7 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__8; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__8(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__8 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_AverageAwaitWithCancellationAsync__TSource__3__9; private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__9(Type TSource) => (s_AverageAwaitWithCancellationAsync__TSource__3__9 ?? (s_AverageAwaitWithCancellationAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(AverageAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AverageAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_Cast__TResult__1__0; private static MethodInfo Cast__TResult__1__0(Type TResult) => (s_Cast__TResult__1__0 ?? (s_Cast__TResult__1__0 = new Func, IAsyncQueryable>(Cast).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TResult); public static IAsyncQueryable Cast(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Cast__TResult__1__0(typeof(TResult)), source.Expression)); } private static MethodInfo s_Concat__TSource__2__0; private static MethodInfo Concat__TSource__2__0(Type TSource) => (s_Concat__TSource__2__0 ?? (s_Concat__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Concat).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Concat(this IAsyncQueryable first, IAsyncEnumerable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Concat__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } private static MethodInfo s_ContainsAsync__TSource__3__0; private static MethodInfo ContainsAsync__TSource__3__0(Type TSource) => (s_ContainsAsync__TSource__3__0 ?? (s_ContainsAsync__TSource__3__0 = new Func, object, CancellationToken, ValueTask>(ContainsAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask ContainsAsync(this IAsyncQueryable source, TSource value, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(ContainsAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(value, typeof(TSource)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ContainsAsync__TSource__4__0; private static MethodInfo ContainsAsync__TSource__4__0(Type TSource) => (s_ContainsAsync__TSource__4__0 ?? (s_ContainsAsync__TSource__4__0 = new Func, object, IEqualityComparer, CancellationToken, ValueTask>(ContainsAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask ContainsAsync(this IAsyncQueryable source, TSource value, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(ContainsAsync__TSource__4__0(typeof(TSource)), source.Expression, Expression.Constant(value, typeof(TSource)), Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_CountAsync__TSource__2__0; private static MethodInfo CountAsync__TSource__2__0(Type TSource) => (s_CountAsync__TSource__2__0 ?? (s_CountAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(CountAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask CountAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(CountAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_CountAsync__TSource__3__0; private static MethodInfo CountAsync__TSource__3__0(Type TSource) => (s_CountAsync__TSource__3__0 ?? (s_CountAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(CountAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask CountAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(CountAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_CountAwaitAsync__TSource__3__0; private static MethodInfo CountAwaitAsync__TSource__3__0(Type TSource) => (s_CountAwaitAsync__TSource__3__0 ?? (s_CountAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(CountAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask CountAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(CountAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_CountAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo CountAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_CountAwaitWithCancellationAsync__TSource__3__0 ?? (s_CountAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(CountAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask CountAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(CountAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_DefaultIfEmpty__TSource__1__0; private static MethodInfo DefaultIfEmpty__TSource__1__0(Type TSource) => (s_DefaultIfEmpty__TSource__1__0 ?? (s_DefaultIfEmpty__TSource__1__0 = new Func, IAsyncQueryable>(DefaultIfEmpty).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DefaultIfEmpty(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(DefaultIfEmpty__TSource__1__0(typeof(TSource)), source.Expression)); } private static MethodInfo s_DefaultIfEmpty__TSource__2__0; private static MethodInfo DefaultIfEmpty__TSource__2__0(Type TSource) => (s_DefaultIfEmpty__TSource__2__0 ?? (s_DefaultIfEmpty__TSource__2__0 = new Func, object, IAsyncQueryable>(DefaultIfEmpty).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DefaultIfEmpty(this IAsyncQueryable source, TSource defaultValue) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(DefaultIfEmpty__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(defaultValue, typeof(TSource)))); } private static MethodInfo s_Distinct__TSource__1__0; private static MethodInfo Distinct__TSource__1__0(Type TSource) => (s_Distinct__TSource__1__0 ?? (s_Distinct__TSource__1__0 = new Func, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Distinct(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource__1__0(typeof(TSource)), source.Expression)); } private static MethodInfo s_Distinct__TSource__2__0; private static MethodInfo Distinct__TSource__2__0(Type TSource) => (s_Distinct__TSource__2__0 ?? (s_Distinct__TSource__2__0 = new Func, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Distinct(this IAsyncQueryable source, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_ElementAtAsync__TSource__3__0; private static MethodInfo ElementAtAsync__TSource__3__0(Type TSource) => (s_ElementAtAsync__TSource__3__0 ?? (s_ElementAtAsync__TSource__3__0 = new Func, int, CancellationToken, ValueTask>(ElementAtAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask ElementAtAsync(this IAsyncQueryable source, int index, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(ElementAtAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(index, typeof(int)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ElementAtOrDefaultAsync__TSource__3__0; private static MethodInfo ElementAtOrDefaultAsync__TSource__3__0(Type TSource) => (s_ElementAtOrDefaultAsync__TSource__3__0 ?? (s_ElementAtOrDefaultAsync__TSource__3__0 = new Func, int, CancellationToken, ValueTask>(ElementAtOrDefaultAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask ElementAtOrDefaultAsync(this IAsyncQueryable source, int index, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(ElementAtOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(index, typeof(int)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_Except__TSource__2__0; private static MethodInfo Except__TSource__2__0(Type TSource) => (s_Except__TSource__2__0 ?? (s_Except__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Except).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Except(this IAsyncQueryable first, IAsyncEnumerable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Except__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } private static MethodInfo s_Except__TSource__3__0; private static MethodInfo Except__TSource__3__0(Type TSource) => (s_Except__TSource__3__0 ?? (s_Except__TSource__3__0 = new Func, IAsyncEnumerable, IEqualityComparer, IAsyncQueryable>(Except).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Except(this IAsyncQueryable first, IAsyncEnumerable second, IEqualityComparer? comparer) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Except__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_FirstAsync__TSource__2__0; private static MethodInfo FirstAsync__TSource__2__0(Type TSource) => (s_FirstAsync__TSource__2__0 ?? (s_FirstAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(FirstAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(FirstAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_FirstAsync__TSource__3__0; private static MethodInfo FirstAsync__TSource__3__0(Type TSource) => (s_FirstAsync__TSource__3__0 ?? (s_FirstAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(FirstAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(FirstAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_FirstAwaitAsync__TSource__3__0; private static MethodInfo FirstAwaitAsync__TSource__3__0(Type TSource) => (s_FirstAwaitAsync__TSource__3__0 ?? (s_FirstAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(FirstAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(FirstAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_FirstAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo FirstAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_FirstAwaitWithCancellationAsync__TSource__3__0 ?? (s_FirstAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(FirstAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(FirstAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_FirstOrDefaultAsync__TSource__2__0; private static MethodInfo FirstOrDefaultAsync__TSource__2__0(Type TSource) => (s_FirstOrDefaultAsync__TSource__2__0 ?? (s_FirstOrDefaultAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(FirstOrDefaultAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstOrDefaultAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(FirstOrDefaultAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_FirstOrDefaultAsync__TSource__3__0; private static MethodInfo FirstOrDefaultAsync__TSource__3__0(Type TSource) => (s_FirstOrDefaultAsync__TSource__3__0 ?? (s_FirstOrDefaultAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(FirstOrDefaultAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstOrDefaultAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(FirstOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_FirstOrDefaultAwaitAsync__TSource__3__0; private static MethodInfo FirstOrDefaultAwaitAsync__TSource__3__0(Type TSource) => (s_FirstOrDefaultAwaitAsync__TSource__3__0 ?? (s_FirstOrDefaultAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(FirstOrDefaultAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstOrDefaultAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(FirstOrDefaultAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0 ?? (s_FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(FirstOrDefaultAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_GroupBy__TSource_TKey__2__0; private static MethodInfo GroupBy__TSource_TKey__2__0(Type TSource, Type TKey) => (s_GroupBy__TSource_TKey__2__0 ?? (s_GroupBy__TSource_TKey__2__0 = new Func, Expression>, IAsyncQueryable>>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable> GroupBy(this IAsyncQueryable source, Expression> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery>(Expression.Call(GroupBy__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_GroupBy__TSource_TKey__3__0; private static MethodInfo GroupBy__TSource_TKey__3__0(Type TSource, Type TKey) => (s_GroupBy__TSource_TKey__3__0 ?? (s_GroupBy__TSource_TKey__3__0 = new Func, Expression>, IEqualityComparer, IAsyncQueryable>>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable> GroupBy(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery>(Expression.Call(GroupBy__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupBy__TSource_TKey_TResult__3__0; private static MethodInfo GroupBy__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) => (s_GroupBy__TSource_TKey_TResult__3__0 ?? (s_GroupBy__TSource_TKey_TResult__3__0 = new Func, Expression>, Expression, object>>, IAsyncQueryable>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult); public static IAsyncQueryable GroupBy(this IAsyncQueryable source, Expression> keySelector, Expression, TResult>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupBy__TSource_TKey_TResult__3__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector)); } private static MethodInfo s_GroupBy__TSource_TKey_TElement__3__0; private static MethodInfo GroupBy__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) => (s_GroupBy__TSource_TKey_TElement__3__0 ?? (s_GroupBy__TSource_TKey_TElement__3__0 = new Func, Expression>, Expression>, IAsyncQueryable>>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static IAsyncQueryable> GroupBy(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.CreateQuery>(Expression.Call(GroupBy__TSource_TKey_TElement__3__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector)); } private static MethodInfo s_GroupBy__TSource_TKey_TResult__4__0; private static MethodInfo GroupBy__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) => (s_GroupBy__TSource_TKey_TResult__4__0 ?? (s_GroupBy__TSource_TKey_TResult__4__0 = new Func, Expression>, Expression, object>>, IEqualityComparer, IAsyncQueryable>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult); public static IAsyncQueryable GroupBy(this IAsyncQueryable source, Expression> keySelector, Expression, TResult>> resultSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupBy__TSource_TKey_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupBy__TSource_TKey_TElement__4__0; private static MethodInfo GroupBy__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_GroupBy__TSource_TKey_TElement__4__0 ?? (s_GroupBy__TSource_TKey_TElement__4__0 = new Func, Expression>, Expression>, IEqualityComparer, IAsyncQueryable>>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static IAsyncQueryable> GroupBy(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.CreateQuery>(Expression.Call(GroupBy__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupBy__TSource_TKey_TElement_TResult__4__0; private static MethodInfo GroupBy__TSource_TKey_TElement_TResult__4__0(Type TSource, Type TKey, Type TElement, Type TResult) => (s_GroupBy__TSource_TKey_TElement_TResult__4__0 ?? (s_GroupBy__TSource_TKey_TElement_TResult__4__0 = new Func, Expression>, Expression>, Expression, object>>, IAsyncQueryable>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult); public static IAsyncQueryable GroupBy(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, Expression, TResult>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupBy__TSource_TKey_TElement_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector)); } private static MethodInfo s_GroupBy__TSource_TKey_TElement_TResult__5__0; private static MethodInfo GroupBy__TSource_TKey_TElement_TResult__5__0(Type TSource, Type TKey, Type TElement, Type TResult) => (s_GroupBy__TSource_TKey_TElement_TResult__5__0 ?? (s_GroupBy__TSource_TKey_TElement_TResult__5__0 = new Func, Expression>, Expression>, Expression, object>>, IEqualityComparer, IAsyncQueryable>(GroupBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult); public static IAsyncQueryable GroupBy(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, Expression, TResult>> resultSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupBy__TSource_TKey_TElement_TResult__5__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwait__TSource_TKey__2__0; private static MethodInfo GroupByAwait__TSource_TKey__2__0(Type TSource, Type TKey) => (s_GroupByAwait__TSource_TKey__2__0 ?? (s_GroupByAwait__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable> GroupByAwait(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_GroupByAwait__TSource_TKey__3__0; private static MethodInfo GroupByAwait__TSource_TKey__3__0(Type TSource, Type TKey) => (s_GroupByAwait__TSource_TKey__3__0 ?? (s_GroupByAwait__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable> GroupByAwait(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwait__TSource_TKey_TResult__3__0; private static MethodInfo GroupByAwait__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) => (s_GroupByAwait__TSource_TKey_TResult__3__0 ?? (s_GroupByAwait__TSource_TKey_TResult__3__0 = new Func, Expression>>, Expression, ValueTask>>, IAsyncQueryable>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult); public static IAsyncQueryable GroupByAwait(this IAsyncQueryable source, Expression>> keySelector, Expression, ValueTask>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwait__TSource_TKey_TResult__3__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector)); } private static MethodInfo s_GroupByAwait__TSource_TKey_TElement__3__0; private static MethodInfo GroupByAwait__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) => (s_GroupByAwait__TSource_TKey_TElement__3__0 ?? (s_GroupByAwait__TSource_TKey_TElement__3__0 = new Func, Expression>>, Expression>>, IAsyncQueryable>>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static IAsyncQueryable> GroupByAwait(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwait__TSource_TKey_TElement__3__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector)); } private static MethodInfo s_GroupByAwait__TSource_TKey_TResult__4__0; private static MethodInfo GroupByAwait__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) => (s_GroupByAwait__TSource_TKey_TResult__4__0 ?? (s_GroupByAwait__TSource_TKey_TResult__4__0 = new Func, Expression>>, Expression, ValueTask>>, IEqualityComparer, IAsyncQueryable>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult); public static IAsyncQueryable GroupByAwait(this IAsyncQueryable source, Expression>> keySelector, Expression, ValueTask>> resultSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwait__TSource_TKey_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwait__TSource_TKey_TElement__4__0; private static MethodInfo GroupByAwait__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_GroupByAwait__TSource_TKey_TElement__4__0 ?? (s_GroupByAwait__TSource_TKey_TElement__4__0 = new Func, Expression>>, Expression>>, IEqualityComparer, IAsyncQueryable>>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static IAsyncQueryable> GroupByAwait(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwait__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwait__TSource_TKey_TElement_TResult__4__0; private static MethodInfo GroupByAwait__TSource_TKey_TElement_TResult__4__0(Type TSource, Type TKey, Type TElement, Type TResult) => (s_GroupByAwait__TSource_TKey_TElement_TResult__4__0 ?? (s_GroupByAwait__TSource_TKey_TElement_TResult__4__0 = new Func, Expression>>, Expression>>, Expression, ValueTask>>, IAsyncQueryable>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult); public static IAsyncQueryable GroupByAwait(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, Expression, ValueTask>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwait__TSource_TKey_TElement_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector)); } private static MethodInfo s_GroupByAwait__TSource_TKey_TElement_TResult__5__0; private static MethodInfo GroupByAwait__TSource_TKey_TElement_TResult__5__0(Type TSource, Type TKey, Type TElement, Type TResult) => (s_GroupByAwait__TSource_TKey_TElement_TResult__5__0 ?? (s_GroupByAwait__TSource_TKey_TElement_TResult__5__0 = new Func, Expression>>, Expression>>, Expression, ValueTask>>, IEqualityComparer, IAsyncQueryable>(GroupByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult); public static IAsyncQueryable GroupByAwait(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, Expression, ValueTask>> resultSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwait__TSource_TKey_TElement_TResult__5__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey__2__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => (s_GroupByAwaitWithCancellation__TSource_TKey__2__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable> GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey__3__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => (s_GroupByAwaitWithCancellation__TSource_TKey__3__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable> GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) => (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0 = new Func, Expression>>, Expression, CancellationToken, ValueTask>>, IAsyncQueryable>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult); public static IAsyncQueryable GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, Expression, CancellationToken, ValueTask>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector)); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) => (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0 = new Func, Expression>>, Expression>>, IAsyncQueryable>>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static IAsyncQueryable> GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector)); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) => (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0 = new Func, Expression>>, Expression, CancellationToken, ValueTask>>, IEqualityComparer, IAsyncQueryable>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult); public static IAsyncQueryable GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, Expression, CancellationToken, ValueTask>> resultSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0 = new Func, Expression>>, Expression>>, IEqualityComparer, IAsyncQueryable>>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static IAsyncQueryable> GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.CreateQuery>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0(Type TSource, Type TKey, Type TElement, Type TResult) => (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0 = new Func, Expression>>, Expression>>, Expression, CancellationToken, ValueTask>>, IAsyncQueryable>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult); public static IAsyncQueryable GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, Expression, CancellationToken, ValueTask>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector)); } private static MethodInfo s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0; private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0(Type TSource, Type TKey, Type TElement, Type TResult) => (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0 ?? (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0 = new Func, Expression>>, Expression>>, Expression, CancellationToken, ValueTask>>, IEqualityComparer, IAsyncQueryable>(GroupByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult); public static IAsyncQueryable GroupByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, Expression, CancellationToken, ValueTask>> resultSelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupJoin__TOuter_TInner_TKey_TResult__5__0; private static MethodInfo GroupJoin__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_GroupJoin__TOuter_TInner_TKey_TResult__5__0 ?? (s_GroupJoin__TOuter_TInner_TKey_TResult__5__0 = new Func, IAsyncEnumerable, Expression>, Expression>, Expression, object>>, IAsyncQueryable>(GroupJoin).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable GroupJoin(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression, TResult>> resultSelector) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(GroupJoin__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector)); } private static MethodInfo s_GroupJoin__TOuter_TInner_TKey_TResult__6__0; private static MethodInfo GroupJoin__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_GroupJoin__TOuter_TInner_TKey_TResult__6__0 ?? (s_GroupJoin__TOuter_TInner_TKey_TResult__6__0 = new Func, IAsyncEnumerable, Expression>, Expression>, Expression, object>>, IEqualityComparer, IAsyncQueryable>(GroupJoin).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable GroupJoin(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression, TResult>> resultSelector, IEqualityComparer? comparer) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(GroupJoin__TOuter_TInner_TKey_TResult__6__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0; private static MethodInfo GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0 ?? (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression, ValueTask>>, IAsyncQueryable>(GroupJoinAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable GroupJoinAwait(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression, ValueTask>> resultSelector) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector)); } private static MethodInfo s_GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0; private static MethodInfo GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0 ?? (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression, ValueTask>>, IEqualityComparer, IAsyncQueryable>(GroupJoinAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable GroupJoinAwait(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression, ValueTask>> resultSelector, IEqualityComparer? comparer) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0; private static MethodInfo GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 ?? (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression, CancellationToken, ValueTask>>, IAsyncQueryable>(GroupJoinAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable GroupJoinAwaitWithCancellation(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression, CancellationToken, ValueTask>> resultSelector) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector)); } private static MethodInfo s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0; private static MethodInfo GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 ?? (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression, CancellationToken, ValueTask>>, IEqualityComparer, IAsyncQueryable>(GroupJoinAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable GroupJoinAwaitWithCancellation(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression, CancellationToken, ValueTask>> resultSelector, IEqualityComparer? comparer) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_Intersect__TSource__2__0; private static MethodInfo Intersect__TSource__2__0(Type TSource) => (s_Intersect__TSource__2__0 ?? (s_Intersect__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Intersect).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Intersect(this IAsyncQueryable first, IAsyncEnumerable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Intersect__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } private static MethodInfo s_Intersect__TSource__3__0; private static MethodInfo Intersect__TSource__3__0(Type TSource) => (s_Intersect__TSource__3__0 ?? (s_Intersect__TSource__3__0 = new Func, IAsyncEnumerable, IEqualityComparer, IAsyncQueryable>(Intersect).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Intersect(this IAsyncQueryable first, IAsyncEnumerable second, IEqualityComparer? comparer) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Intersect__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_Join__TOuter_TInner_TKey_TResult__5__0; private static MethodInfo Join__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_Join__TOuter_TInner_TKey_TResult__5__0 ?? (s_Join__TOuter_TInner_TKey_TResult__5__0 = new Func, IAsyncEnumerable, Expression>, Expression>, Expression>, IAsyncQueryable>(Join).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable Join(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression> resultSelector) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(Join__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector)); } private static MethodInfo s_Join__TOuter_TInner_TKey_TResult__6__0; private static MethodInfo Join__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_Join__TOuter_TInner_TKey_TResult__6__0 ?? (s_Join__TOuter_TInner_TKey_TResult__6__0 = new Func, IAsyncEnumerable, Expression>, Expression>, Expression>, IEqualityComparer, IAsyncQueryable>(Join).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable Join(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression> resultSelector, IEqualityComparer? comparer) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(Join__TOuter_TInner_TKey_TResult__6__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_JoinAwait__TOuter_TInner_TKey_TResult__5__0; private static MethodInfo JoinAwait__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_JoinAwait__TOuter_TInner_TKey_TResult__5__0 ?? (s_JoinAwait__TOuter_TInner_TKey_TResult__5__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression>>, IAsyncQueryable>(JoinAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable JoinAwait(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression>> resultSelector) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(JoinAwait__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector)); } private static MethodInfo s_JoinAwait__TOuter_TInner_TKey_TResult__6__0; private static MethodInfo JoinAwait__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_JoinAwait__TOuter_TInner_TKey_TResult__6__0 ?? (s_JoinAwait__TOuter_TInner_TKey_TResult__6__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression>>, IEqualityComparer, IAsyncQueryable>(JoinAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable JoinAwait(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression>> resultSelector, IEqualityComparer? comparer) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(JoinAwait__TOuter_TInner_TKey_TResult__6__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0; private static MethodInfo JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 ?? (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression>>, IAsyncQueryable>(JoinAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable JoinAwaitWithCancellation(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression>> resultSelector) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector)); } private static MethodInfo s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0; private static MethodInfo JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) => (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 ?? (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 = new Func, IAsyncEnumerable, Expression>>, Expression>>, Expression>>, IEqualityComparer, IAsyncQueryable>(JoinAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult); public static IAsyncQueryable JoinAwaitWithCancellation(this IAsyncQueryable outer, IAsyncEnumerable inner, Expression>> outerKeySelector, Expression>> innerKeySelector, Expression>> resultSelector, IEqualityComparer? comparer) { if (outer == null) throw new ArgumentNullException(nameof(outer)); if (inner == null) throw new ArgumentNullException(nameof(inner)); if (outerKeySelector == null) throw new ArgumentNullException(nameof(outerKeySelector)); if (innerKeySelector == null) throw new ArgumentNullException(nameof(innerKeySelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return outer.Provider.CreateQuery(Expression.Call(JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_LastAsync__TSource__2__0; private static MethodInfo LastAsync__TSource__2__0(Type TSource) => (s_LastAsync__TSource__2__0 ?? (s_LastAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(LastAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(LastAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LastAsync__TSource__3__0; private static MethodInfo LastAsync__TSource__3__0(Type TSource) => (s_LastAsync__TSource__3__0 ?? (s_LastAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(LastAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LastAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LastAwaitAsync__TSource__3__0; private static MethodInfo LastAwaitAsync__TSource__3__0(Type TSource) => (s_LastAwaitAsync__TSource__3__0 ?? (s_LastAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(LastAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LastAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LastAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo LastAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_LastAwaitWithCancellationAsync__TSource__3__0 ?? (s_LastAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(LastAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LastAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LastOrDefaultAsync__TSource__2__0; private static MethodInfo LastOrDefaultAsync__TSource__2__0(Type TSource) => (s_LastOrDefaultAsync__TSource__2__0 ?? (s_LastOrDefaultAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(LastOrDefaultAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastOrDefaultAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(LastOrDefaultAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LastOrDefaultAsync__TSource__3__0; private static MethodInfo LastOrDefaultAsync__TSource__3__0(Type TSource) => (s_LastOrDefaultAsync__TSource__3__0 ?? (s_LastOrDefaultAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(LastOrDefaultAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastOrDefaultAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LastOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LastOrDefaultAwaitAsync__TSource__3__0; private static MethodInfo LastOrDefaultAwaitAsync__TSource__3__0(Type TSource) => (s_LastOrDefaultAwaitAsync__TSource__3__0 ?? (s_LastOrDefaultAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(LastOrDefaultAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastOrDefaultAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LastOrDefaultAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LastOrDefaultAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo LastOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_LastOrDefaultAwaitWithCancellationAsync__TSource__3__0 ?? (s_LastOrDefaultAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(LastOrDefaultAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastOrDefaultAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LastOrDefaultAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LongCountAsync__TSource__2__0; private static MethodInfo LongCountAsync__TSource__2__0(Type TSource) => (s_LongCountAsync__TSource__2__0 ?? (s_LongCountAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(LongCountAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LongCountAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(LongCountAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LongCountAsync__TSource__3__0; private static MethodInfo LongCountAsync__TSource__3__0(Type TSource) => (s_LongCountAsync__TSource__3__0 ?? (s_LongCountAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(LongCountAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LongCountAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LongCountAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LongCountAwaitAsync__TSource__3__0; private static MethodInfo LongCountAwaitAsync__TSource__3__0(Type TSource) => (s_LongCountAwaitAsync__TSource__3__0 ?? (s_LongCountAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(LongCountAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LongCountAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LongCountAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_LongCountAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo LongCountAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_LongCountAwaitWithCancellationAsync__TSource__3__0 ?? (s_LongCountAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(LongCountAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LongCountAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(LongCountAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__0; private static MethodInfo MaxAsync__2__0 => (s_MaxAsync__2__0 ?? (s_MaxAsync__2__0 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__1; private static MethodInfo MaxAsync__2__1 => (s_MaxAsync__2__1 ?? (s_MaxAsync__2__1 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__2; private static MethodInfo MaxAsync__2__2 => (s_MaxAsync__2__2 ?? (s_MaxAsync__2__2 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__3; private static MethodInfo MaxAsync__2__3 => (s_MaxAsync__2__3 ?? (s_MaxAsync__2__3 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__4; private static MethodInfo MaxAsync__2__4 => (s_MaxAsync__2__4 ?? (s_MaxAsync__2__4 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__5; private static MethodInfo MaxAsync__2__5 => (s_MaxAsync__2__5 ?? (s_MaxAsync__2__5 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__6; private static MethodInfo MaxAsync__2__6 => (s_MaxAsync__2__6 ?? (s_MaxAsync__2__6 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__7; private static MethodInfo MaxAsync__2__7 => (s_MaxAsync__2__7 ?? (s_MaxAsync__2__7 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__8; private static MethodInfo MaxAsync__2__8 => (s_MaxAsync__2__8 ?? (s_MaxAsync__2__8 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__2__9; private static MethodInfo MaxAsync__2__9 => (s_MaxAsync__2__9 ?? (s_MaxAsync__2__9 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__2__0; private static MethodInfo MaxAsync__TSource__2__0(Type TSource) => (s_MaxAsync__TSource__2__0 ?? (s_MaxAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__0; private static MethodInfo MaxAsync__TSource__3__0(Type TSource) => (s_MaxAsync__TSource__3__0 ?? (s_MaxAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__1; private static MethodInfo MaxAsync__TSource__3__1(Type TSource) => (s_MaxAsync__TSource__3__1 ?? (s_MaxAsync__TSource__3__1 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__2; private static MethodInfo MaxAsync__TSource__3__2(Type TSource) => (s_MaxAsync__TSource__3__2 ?? (s_MaxAsync__TSource__3__2 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__3; private static MethodInfo MaxAsync__TSource__3__3(Type TSource) => (s_MaxAsync__TSource__3__3 ?? (s_MaxAsync__TSource__3__3 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__4; private static MethodInfo MaxAsync__TSource__3__4(Type TSource) => (s_MaxAsync__TSource__3__4 ?? (s_MaxAsync__TSource__3__4 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__5; private static MethodInfo MaxAsync__TSource__3__5(Type TSource) => (s_MaxAsync__TSource__3__5 ?? (s_MaxAsync__TSource__3__5 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__6; private static MethodInfo MaxAsync__TSource__3__6(Type TSource) => (s_MaxAsync__TSource__3__6 ?? (s_MaxAsync__TSource__3__6 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__7; private static MethodInfo MaxAsync__TSource__3__7(Type TSource) => (s_MaxAsync__TSource__3__7 ?? (s_MaxAsync__TSource__3__7 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__8; private static MethodInfo MaxAsync__TSource__3__8(Type TSource) => (s_MaxAsync__TSource__3__8 ?? (s_MaxAsync__TSource__3__8 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__9; private static MethodInfo MaxAsync__TSource__3__9(Type TSource) => (s_MaxAsync__TSource__3__9 ?? (s_MaxAsync__TSource__3__9 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource_TResult__3__0; private static MethodInfo MaxAsync__TSource_TResult__3__0(Type TSource, Type TResult) => (s_MaxAsync__TSource_TResult__3__0 ?? (s_MaxAsync__TSource_TResult__3__0 = new Func, Expression>, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static ValueTask MaxAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__0; private static MethodInfo MaxAwaitAsync__TSource__3__0(Type TSource) => (s_MaxAwaitAsync__TSource__3__0 ?? (s_MaxAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__1; private static MethodInfo MaxAwaitAsync__TSource__3__1(Type TSource) => (s_MaxAwaitAsync__TSource__3__1 ?? (s_MaxAwaitAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__2; private static MethodInfo MaxAwaitAsync__TSource__3__2(Type TSource) => (s_MaxAwaitAsync__TSource__3__2 ?? (s_MaxAwaitAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__3; private static MethodInfo MaxAwaitAsync__TSource__3__3(Type TSource) => (s_MaxAwaitAsync__TSource__3__3 ?? (s_MaxAwaitAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__4; private static MethodInfo MaxAwaitAsync__TSource__3__4(Type TSource) => (s_MaxAwaitAsync__TSource__3__4 ?? (s_MaxAwaitAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__5; private static MethodInfo MaxAwaitAsync__TSource__3__5(Type TSource) => (s_MaxAwaitAsync__TSource__3__5 ?? (s_MaxAwaitAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__6; private static MethodInfo MaxAwaitAsync__TSource__3__6(Type TSource) => (s_MaxAwaitAsync__TSource__3__6 ?? (s_MaxAwaitAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__7; private static MethodInfo MaxAwaitAsync__TSource__3__7(Type TSource) => (s_MaxAwaitAsync__TSource__3__7 ?? (s_MaxAwaitAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__8; private static MethodInfo MaxAwaitAsync__TSource__3__8(Type TSource) => (s_MaxAwaitAsync__TSource__3__8 ?? (s_MaxAwaitAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource__3__9; private static MethodInfo MaxAwaitAsync__TSource__3__9(Type TSource) => (s_MaxAwaitAsync__TSource__3__9 ?? (s_MaxAwaitAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitAsync__TSource_TResult__3__0; private static MethodInfo MaxAwaitAsync__TSource_TResult__3__0(Type TSource, Type TResult) => (s_MaxAwaitAsync__TSource_TResult__3__0 ?? (s_MaxAwaitAsync__TSource_TResult__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static ValueTask MaxAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__0 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__1; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__1(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__1 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__2; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__2(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__2 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__3; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__3(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__3 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__4; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__4(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__4 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__5; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__5(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__5 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__6; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__6(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__6 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__7; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__7(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__7 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__8; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__8(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__8 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource__3__9; private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__9(Type TSource) => (s_MaxAwaitWithCancellationAsync__TSource__3__9 ?? (s_MaxAwaitWithCancellationAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAwaitWithCancellationAsync__TSource_TResult__3__0; private static MethodInfo MaxAwaitWithCancellationAsync__TSource_TResult__3__0(Type TSource, Type TResult) => (s_MaxAwaitWithCancellationAsync__TSource_TResult__3__0 ?? (s_MaxAwaitWithCancellationAsync__TSource_TResult__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MaxAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MaxAwaitWithCancellationAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__0; private static MethodInfo MinAsync__2__0 => (s_MinAsync__2__0 ?? (s_MinAsync__2__0 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__1; private static MethodInfo MinAsync__2__1 => (s_MinAsync__2__1 ?? (s_MinAsync__2__1 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__2; private static MethodInfo MinAsync__2__2 => (s_MinAsync__2__2 ?? (s_MinAsync__2__2 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__3; private static MethodInfo MinAsync__2__3 => (s_MinAsync__2__3 ?? (s_MinAsync__2__3 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__4; private static MethodInfo MinAsync__2__4 => (s_MinAsync__2__4 ?? (s_MinAsync__2__4 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__5; private static MethodInfo MinAsync__2__5 => (s_MinAsync__2__5 ?? (s_MinAsync__2__5 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__6; private static MethodInfo MinAsync__2__6 => (s_MinAsync__2__6 ?? (s_MinAsync__2__6 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__7; private static MethodInfo MinAsync__2__7 => (s_MinAsync__2__7 ?? (s_MinAsync__2__7 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__8; private static MethodInfo MinAsync__2__8 => (s_MinAsync__2__8 ?? (s_MinAsync__2__8 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__2__9; private static MethodInfo MinAsync__2__9 => (s_MinAsync__2__9 ?? (s_MinAsync__2__9 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__2__0; private static MethodInfo MinAsync__TSource__2__0(Type TSource) => (s_MinAsync__TSource__2__0 ?? (s_MinAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__0; private static MethodInfo MinAsync__TSource__3__0(Type TSource) => (s_MinAsync__TSource__3__0 ?? (s_MinAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__1; private static MethodInfo MinAsync__TSource__3__1(Type TSource) => (s_MinAsync__TSource__3__1 ?? (s_MinAsync__TSource__3__1 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__2; private static MethodInfo MinAsync__TSource__3__2(Type TSource) => (s_MinAsync__TSource__3__2 ?? (s_MinAsync__TSource__3__2 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__3; private static MethodInfo MinAsync__TSource__3__3(Type TSource) => (s_MinAsync__TSource__3__3 ?? (s_MinAsync__TSource__3__3 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__4; private static MethodInfo MinAsync__TSource__3__4(Type TSource) => (s_MinAsync__TSource__3__4 ?? (s_MinAsync__TSource__3__4 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__5; private static MethodInfo MinAsync__TSource__3__5(Type TSource) => (s_MinAsync__TSource__3__5 ?? (s_MinAsync__TSource__3__5 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__6; private static MethodInfo MinAsync__TSource__3__6(Type TSource) => (s_MinAsync__TSource__3__6 ?? (s_MinAsync__TSource__3__6 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__7; private static MethodInfo MinAsync__TSource__3__7(Type TSource) => (s_MinAsync__TSource__3__7 ?? (s_MinAsync__TSource__3__7 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__8; private static MethodInfo MinAsync__TSource__3__8(Type TSource) => (s_MinAsync__TSource__3__8 ?? (s_MinAsync__TSource__3__8 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource__3__9; private static MethodInfo MinAsync__TSource__3__9(Type TSource) => (s_MinAsync__TSource__3__9 ?? (s_MinAsync__TSource__3__9 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAsync__TSource_TResult__3__0; private static MethodInfo MinAsync__TSource_TResult__3__0(Type TSource, Type TResult) => (s_MinAsync__TSource_TResult__3__0 ?? (s_MinAsync__TSource_TResult__3__0 = new Func, Expression>, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static ValueTask MinAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__0; private static MethodInfo MinAwaitAsync__TSource__3__0(Type TSource) => (s_MinAwaitAsync__TSource__3__0 ?? (s_MinAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__1; private static MethodInfo MinAwaitAsync__TSource__3__1(Type TSource) => (s_MinAwaitAsync__TSource__3__1 ?? (s_MinAwaitAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__2; private static MethodInfo MinAwaitAsync__TSource__3__2(Type TSource) => (s_MinAwaitAsync__TSource__3__2 ?? (s_MinAwaitAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__3; private static MethodInfo MinAwaitAsync__TSource__3__3(Type TSource) => (s_MinAwaitAsync__TSource__3__3 ?? (s_MinAwaitAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__4; private static MethodInfo MinAwaitAsync__TSource__3__4(Type TSource) => (s_MinAwaitAsync__TSource__3__4 ?? (s_MinAwaitAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__5; private static MethodInfo MinAwaitAsync__TSource__3__5(Type TSource) => (s_MinAwaitAsync__TSource__3__5 ?? (s_MinAwaitAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__6; private static MethodInfo MinAwaitAsync__TSource__3__6(Type TSource) => (s_MinAwaitAsync__TSource__3__6 ?? (s_MinAwaitAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__7; private static MethodInfo MinAwaitAsync__TSource__3__7(Type TSource) => (s_MinAwaitAsync__TSource__3__7 ?? (s_MinAwaitAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__8; private static MethodInfo MinAwaitAsync__TSource__3__8(Type TSource) => (s_MinAwaitAsync__TSource__3__8 ?? (s_MinAwaitAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource__3__9; private static MethodInfo MinAwaitAsync__TSource__3__9(Type TSource) => (s_MinAwaitAsync__TSource__3__9 ?? (s_MinAwaitAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitAsync__TSource_TResult__3__0; private static MethodInfo MinAwaitAsync__TSource_TResult__3__0(Type TSource, Type TResult) => (s_MinAwaitAsync__TSource_TResult__3__0 ?? (s_MinAwaitAsync__TSource_TResult__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static ValueTask MinAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__0 ?? (s_MinAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__1; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__1(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__1 ?? (s_MinAwaitWithCancellationAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__2; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__2(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__2 ?? (s_MinAwaitWithCancellationAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__3; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__3(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__3 ?? (s_MinAwaitWithCancellationAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__4; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__4(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__4 ?? (s_MinAwaitWithCancellationAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__5; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__5(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__5 ?? (s_MinAwaitWithCancellationAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__6; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__6(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__6 ?? (s_MinAwaitWithCancellationAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__7; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__7(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__7 ?? (s_MinAwaitWithCancellationAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__8; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__8(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__8 ?? (s_MinAwaitWithCancellationAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource__3__9; private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__9(Type TSource) => (s_MinAwaitWithCancellationAsync__TSource__3__9 ?? (s_MinAwaitWithCancellationAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinAwaitWithCancellationAsync__TSource_TResult__3__0; private static MethodInfo MinAwaitWithCancellationAsync__TSource_TResult__3__0(Type TSource, Type TResult) => (s_MinAwaitWithCancellationAsync__TSource_TResult__3__0 ?? (s_MinAwaitWithCancellationAsync__TSource_TResult__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(MinAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(MinAwaitWithCancellationAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_OfType__TResult__1__0; private static MethodInfo OfType__TResult__1__0(Type TResult) => (s_OfType__TResult__1__0 ?? (s_OfType__TResult__1__0 = new Func, IAsyncQueryable>(OfType).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TResult); public static IAsyncQueryable OfType(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(OfType__TResult__1__0(typeof(TResult)), source.Expression)); } private static MethodInfo s_OrderBy__TSource_TKey__2__0; private static MethodInfo OrderBy__TSource_TKey__2__0(Type TSource, Type TKey) => (s_OrderBy__TSource_TKey__2__0 ?? (s_OrderBy__TSource_TKey__2__0 = new Func, Expression>, IOrderedAsyncQueryable>(OrderBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderBy(this IAsyncQueryable source, Expression> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderBy__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_OrderBy__TSource_TKey__3__0; private static MethodInfo OrderBy__TSource_TKey__3__0(Type TSource, Type TKey) => (s_OrderBy__TSource_TKey__3__0 ?? (s_OrderBy__TSource_TKey__3__0 = new Func, Expression>, IComparer, IOrderedAsyncQueryable>(OrderBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderBy(this IAsyncQueryable source, Expression> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderBy__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_OrderByAwait__TSource_TKey__2__0; private static MethodInfo OrderByAwait__TSource_TKey__2__0(Type TSource, Type TKey) => (s_OrderByAwait__TSource_TKey__2__0 ?? (s_OrderByAwait__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(OrderByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByAwait(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_OrderByAwait__TSource_TKey__3__0; private static MethodInfo OrderByAwait__TSource_TKey__3__0(Type TSource, Type TKey) => (s_OrderByAwait__TSource_TKey__3__0 ?? (s_OrderByAwait__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(OrderByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByAwait(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_OrderByAwaitWithCancellation__TSource_TKey__2__0; private static MethodInfo OrderByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => (s_OrderByAwaitWithCancellation__TSource_TKey__2__0 ?? (s_OrderByAwaitWithCancellation__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(OrderByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_OrderByAwaitWithCancellation__TSource_TKey__3__0; private static MethodInfo OrderByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => (s_OrderByAwaitWithCancellation__TSource_TKey__3__0 ?? (s_OrderByAwaitWithCancellation__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(OrderByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_OrderByDescending__TSource_TKey__2__0; private static MethodInfo OrderByDescending__TSource_TKey__2__0(Type TSource, Type TKey) => (s_OrderByDescending__TSource_TKey__2__0 ?? (s_OrderByDescending__TSource_TKey__2__0 = new Func, Expression>, IOrderedAsyncQueryable>(OrderByDescending).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByDescending(this IAsyncQueryable source, Expression> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByDescending__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_OrderByDescending__TSource_TKey__3__0; private static MethodInfo OrderByDescending__TSource_TKey__3__0(Type TSource, Type TKey) => (s_OrderByDescending__TSource_TKey__3__0 ?? (s_OrderByDescending__TSource_TKey__3__0 = new Func, Expression>, IComparer, IOrderedAsyncQueryable>(OrderByDescending).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByDescending(this IAsyncQueryable source, Expression> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByDescending__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_OrderByDescendingAwait__TSource_TKey__2__0; private static MethodInfo OrderByDescendingAwait__TSource_TKey__2__0(Type TSource, Type TKey) => (s_OrderByDescendingAwait__TSource_TKey__2__0 ?? (s_OrderByDescendingAwait__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(OrderByDescendingAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByDescendingAwait(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByDescendingAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_OrderByDescendingAwait__TSource_TKey__3__0; private static MethodInfo OrderByDescendingAwait__TSource_TKey__3__0(Type TSource, Type TKey) => (s_OrderByDescendingAwait__TSource_TKey__3__0 ?? (s_OrderByDescendingAwait__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(OrderByDescendingAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByDescendingAwait(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByDescendingAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0; private static MethodInfo OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0 ?? (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(OrderByDescendingAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByDescendingAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0; private static MethodInfo OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0 ?? (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(OrderByDescendingAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable OrderByDescendingAwaitWithCancellation(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_Prepend__TSource__2__0; private static MethodInfo Prepend__TSource__2__0(Type TSource) => (s_Prepend__TSource__2__0 ?? (s_Prepend__TSource__2__0 = new Func, object, IAsyncQueryable>(Prepend).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Prepend(this IAsyncQueryable source, TSource element) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Prepend__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(element, typeof(TSource)))); } private static MethodInfo s_Reverse__TSource__1__0; private static MethodInfo Reverse__TSource__1__0(Type TSource) => (s_Reverse__TSource__1__0 ?? (s_Reverse__TSource__1__0 = new Func, IAsyncQueryable>(Reverse).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Reverse(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Reverse__TSource__1__0(typeof(TSource)), source.Expression)); } private static MethodInfo s_Select__TSource_TResult__2__0; private static MethodInfo Select__TSource_TResult__2__0(Type TSource, Type TResult) => (s_Select__TSource_TResult__2__0 ?? (s_Select__TSource_TResult__2__0 = new Func, Expression>, IAsyncQueryable>(Select).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable Select(this IAsyncQueryable source, Expression> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(Select__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_Select__TSource_TResult__2__1; private static MethodInfo Select__TSource_TResult__2__1(Type TSource, Type TResult) => (s_Select__TSource_TResult__2__1 ?? (s_Select__TSource_TResult__2__1 = new Func, Expression>, IAsyncQueryable>(Select).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable Select(this IAsyncQueryable source, Expression> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(Select__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectAwait__TSource_TResult__2__0; private static MethodInfo SelectAwait__TSource_TResult__2__0(Type TSource, Type TResult) => (s_SelectAwait__TSource_TResult__2__0 ?? (s_SelectAwait__TSource_TResult__2__0 = new Func, Expression>>, IAsyncQueryable>(SelectAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectAwait(this IAsyncQueryable source, Expression>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectAwait__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectAwait__TSource_TResult__2__1; private static MethodInfo SelectAwait__TSource_TResult__2__1(Type TSource, Type TResult) => (s_SelectAwait__TSource_TResult__2__1 ?? (s_SelectAwait__TSource_TResult__2__1 = new Func, Expression>>, IAsyncQueryable>(SelectAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectAwait(this IAsyncQueryable source, Expression>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectAwait__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectAwaitWithCancellation__TSource_TResult__2__0; private static MethodInfo SelectAwaitWithCancellation__TSource_TResult__2__0(Type TSource, Type TResult) => (s_SelectAwaitWithCancellation__TSource_TResult__2__0 ?? (s_SelectAwaitWithCancellation__TSource_TResult__2__0 = new Func, Expression>>, IAsyncQueryable>(SelectAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectAwaitWithCancellation(this IAsyncQueryable source, Expression>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectAwaitWithCancellation__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectAwaitWithCancellation__TSource_TResult__2__1; private static MethodInfo SelectAwaitWithCancellation__TSource_TResult__2__1(Type TSource, Type TResult) => (s_SelectAwaitWithCancellation__TSource_TResult__2__1 ?? (s_SelectAwaitWithCancellation__TSource_TResult__2__1 = new Func, Expression>>, IAsyncQueryable>(SelectAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectAwaitWithCancellation(this IAsyncQueryable source, Expression>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectAwaitWithCancellation__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectMany__TSource_TResult__2__0; private static MethodInfo SelectMany__TSource_TResult__2__0(Type TSource, Type TResult) => (s_SelectMany__TSource_TResult__2__0 ?? (s_SelectMany__TSource_TResult__2__0 = new Func, Expression>>, IAsyncQueryable>(SelectMany).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectMany(this IAsyncQueryable source, Expression>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectMany__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectMany__TSource_TResult__2__1; private static MethodInfo SelectMany__TSource_TResult__2__1(Type TSource, Type TResult) => (s_SelectMany__TSource_TResult__2__1 ?? (s_SelectMany__TSource_TResult__2__1 = new Func, Expression>>, IAsyncQueryable>(SelectMany).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectMany(this IAsyncQueryable source, Expression>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectMany__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectMany__TSource_TCollection_TResult__3__0; private static MethodInfo SelectMany__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) => (s_SelectMany__TSource_TCollection_TResult__3__0 ?? (s_SelectMany__TSource_TCollection_TResult__3__0 = new Func, Expression>>, Expression>, IAsyncQueryable>(SelectMany).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult); public static IAsyncQueryable SelectMany(this IAsyncQueryable source, Expression>> collectionSelector, Expression> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (collectionSelector == null) throw new ArgumentNullException(nameof(collectionSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(SelectMany__TSource_TCollection_TResult__3__0(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector)); } private static MethodInfo s_SelectMany__TSource_TCollection_TResult__3__1; private static MethodInfo SelectMany__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) => (s_SelectMany__TSource_TCollection_TResult__3__1 ?? (s_SelectMany__TSource_TCollection_TResult__3__1 = new Func, Expression>>, Expression>, IAsyncQueryable>(SelectMany).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult); public static IAsyncQueryable SelectMany(this IAsyncQueryable source, Expression>> collectionSelector, Expression> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (collectionSelector == null) throw new ArgumentNullException(nameof(collectionSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(SelectMany__TSource_TCollection_TResult__3__1(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector)); } private static MethodInfo s_SelectManyAwait__TSource_TResult__2__0; private static MethodInfo SelectManyAwait__TSource_TResult__2__0(Type TSource, Type TResult) => (s_SelectManyAwait__TSource_TResult__2__0 ?? (s_SelectManyAwait__TSource_TResult__2__0 = new Func, Expression>>>, IAsyncQueryable>(SelectManyAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectManyAwait(this IAsyncQueryable source, Expression>>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwait__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectManyAwait__TSource_TResult__2__1; private static MethodInfo SelectManyAwait__TSource_TResult__2__1(Type TSource, Type TResult) => (s_SelectManyAwait__TSource_TResult__2__1 ?? (s_SelectManyAwait__TSource_TResult__2__1 = new Func, Expression>>>, IAsyncQueryable>(SelectManyAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectManyAwait(this IAsyncQueryable source, Expression>>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwait__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectManyAwait__TSource_TCollection_TResult__3__0; private static MethodInfo SelectManyAwait__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) => (s_SelectManyAwait__TSource_TCollection_TResult__3__0 ?? (s_SelectManyAwait__TSource_TCollection_TResult__3__0 = new Func, Expression>>>, Expression>>, IAsyncQueryable>(SelectManyAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult); public static IAsyncQueryable SelectManyAwait(this IAsyncQueryable source, Expression>>> collectionSelector, Expression>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (collectionSelector == null) throw new ArgumentNullException(nameof(collectionSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwait__TSource_TCollection_TResult__3__0(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector)); } private static MethodInfo s_SelectManyAwait__TSource_TCollection_TResult__3__1; private static MethodInfo SelectManyAwait__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) => (s_SelectManyAwait__TSource_TCollection_TResult__3__1 ?? (s_SelectManyAwait__TSource_TCollection_TResult__3__1 = new Func, Expression>>>, Expression>>, IAsyncQueryable>(SelectManyAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult); public static IAsyncQueryable SelectManyAwait(this IAsyncQueryable source, Expression>>> collectionSelector, Expression>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (collectionSelector == null) throw new ArgumentNullException(nameof(collectionSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwait__TSource_TCollection_TResult__3__1(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector)); } private static MethodInfo s_SelectManyAwaitWithCancellation__TSource_TResult__2__0; private static MethodInfo SelectManyAwaitWithCancellation__TSource_TResult__2__0(Type TSource, Type TResult) => (s_SelectManyAwaitWithCancellation__TSource_TResult__2__0 ?? (s_SelectManyAwaitWithCancellation__TSource_TResult__2__0 = new Func, Expression>>>, IAsyncQueryable>(SelectManyAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectManyAwaitWithCancellation(this IAsyncQueryable source, Expression>>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwaitWithCancellation__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectManyAwaitWithCancellation__TSource_TResult__2__1; private static MethodInfo SelectManyAwaitWithCancellation__TSource_TResult__2__1(Type TSource, Type TResult) => (s_SelectManyAwaitWithCancellation__TSource_TResult__2__1 ?? (s_SelectManyAwaitWithCancellation__TSource_TResult__2__1 = new Func, Expression>>>, IAsyncQueryable>(SelectManyAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult); public static IAsyncQueryable SelectManyAwaitWithCancellation(this IAsyncQueryable source, Expression>>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwaitWithCancellation__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector)); } private static MethodInfo s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0; private static MethodInfo SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) => (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0 ?? (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0 = new Func, Expression>>>, Expression>>, IAsyncQueryable>(SelectManyAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult); public static IAsyncQueryable SelectManyAwaitWithCancellation(this IAsyncQueryable source, Expression>>> collectionSelector, Expression>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (collectionSelector == null) throw new ArgumentNullException(nameof(collectionSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector)); } private static MethodInfo s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1; private static MethodInfo SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) => (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1 ?? (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1 = new Func, Expression>>>, Expression>>, IAsyncQueryable>(SelectManyAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult); public static IAsyncQueryable SelectManyAwaitWithCancellation(this IAsyncQueryable source, Expression>>> collectionSelector, Expression>> resultSelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (collectionSelector == null) throw new ArgumentNullException(nameof(collectionSelector)); if (resultSelector == null) throw new ArgumentNullException(nameof(resultSelector)); return source.Provider.CreateQuery(Expression.Call(SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector)); } private static MethodInfo s_SequenceEqualAsync__TSource__3__0; private static MethodInfo SequenceEqualAsync__TSource__3__0(Type TSource) => (s_SequenceEqualAsync__TSource__3__0 ?? (s_SequenceEqualAsync__TSource__3__0 = new Func, IAsyncEnumerable, CancellationToken, ValueTask>(SequenceEqualAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SequenceEqualAsync(this IAsyncQueryable first, IAsyncEnumerable second, CancellationToken cancellationToken = default) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.ExecuteAsync(Expression.Call(SequenceEqualAsync__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SequenceEqualAsync__TSource__4__0; private static MethodInfo SequenceEqualAsync__TSource__4__0(Type TSource) => (s_SequenceEqualAsync__TSource__4__0 ?? (s_SequenceEqualAsync__TSource__4__0 = new Func, IAsyncEnumerable, IEqualityComparer, CancellationToken, ValueTask>(SequenceEqualAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SequenceEqualAsync(this IAsyncQueryable first, IAsyncEnumerable second, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.ExecuteAsync(Expression.Call(SequenceEqualAsync__TSource__4__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleAsync__TSource__2__0; private static MethodInfo SingleAsync__TSource__2__0(Type TSource) => (s_SingleAsync__TSource__2__0 ?? (s_SingleAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(SingleAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SingleAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleAsync__TSource__3__0; private static MethodInfo SingleAsync__TSource__3__0(Type TSource) => (s_SingleAsync__TSource__3__0 ?? (s_SingleAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(SingleAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(SingleAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleAwaitAsync__TSource__3__0; private static MethodInfo SingleAwaitAsync__TSource__3__0(Type TSource) => (s_SingleAwaitAsync__TSource__3__0 ?? (s_SingleAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(SingleAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(SingleAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo SingleAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_SingleAwaitWithCancellationAsync__TSource__3__0 ?? (s_SingleAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(SingleAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(SingleAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleOrDefaultAsync__TSource__2__0; private static MethodInfo SingleOrDefaultAsync__TSource__2__0(Type TSource) => (s_SingleOrDefaultAsync__TSource__2__0 ?? (s_SingleOrDefaultAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(SingleOrDefaultAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleOrDefaultAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SingleOrDefaultAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleOrDefaultAsync__TSource__3__0; private static MethodInfo SingleOrDefaultAsync__TSource__3__0(Type TSource) => (s_SingleOrDefaultAsync__TSource__3__0 ?? (s_SingleOrDefaultAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(SingleOrDefaultAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleOrDefaultAsync(this IAsyncQueryable source, Expression> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(SingleOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleOrDefaultAwaitAsync__TSource__3__0; private static MethodInfo SingleOrDefaultAwaitAsync__TSource__3__0(Type TSource) => (s_SingleOrDefaultAwaitAsync__TSource__3__0 ?? (s_SingleOrDefaultAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(SingleOrDefaultAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleOrDefaultAwaitAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(SingleOrDefaultAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0 ?? (s_SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(SingleOrDefaultAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleOrDefaultAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> predicate, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.ExecuteAsync(Expression.Call(SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_Skip__TSource__2__0; private static MethodInfo Skip__TSource__2__0(Type TSource) => (s_Skip__TSource__2__0 ?? (s_Skip__TSource__2__0 = new Func, int, IAsyncQueryable>(Skip).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Skip(this IAsyncQueryable source, int count) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Skip__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } private static MethodInfo s_SkipLast__TSource__2__0; private static MethodInfo SkipLast__TSource__2__0(Type TSource) => (s_SkipLast__TSource__2__0 ?? (s_SkipLast__TSource__2__0 = new Func, int, IAsyncQueryable>(SkipLast).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipLast(this IAsyncQueryable source, int count) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(SkipLast__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } private static MethodInfo s_SkipWhile__TSource__2__0; private static MethodInfo SkipWhile__TSource__2__0(Type TSource) => (s_SkipWhile__TSource__2__0 ?? (s_SkipWhile__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(SkipWhile).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhile(this IAsyncQueryable source, Expression> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(SkipWhile__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_SkipWhile__TSource__2__1; private static MethodInfo SkipWhile__TSource__2__1(Type TSource) => (s_SkipWhile__TSource__2__1 ?? (s_SkipWhile__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(SkipWhile).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhile(this IAsyncQueryable source, Expression> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(SkipWhile__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_SkipWhileAwait__TSource__2__0; private static MethodInfo SkipWhileAwait__TSource__2__0(Type TSource) => (s_SkipWhileAwait__TSource__2__0 ?? (s_SkipWhileAwait__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwait(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(SkipWhileAwait__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_SkipWhileAwait__TSource__2__1; private static MethodInfo SkipWhileAwait__TSource__2__1(Type TSource) => (s_SkipWhileAwait__TSource__2__1 ?? (s_SkipWhileAwait__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwait(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(SkipWhileAwait__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_SkipWhileAwaitWithCancellation__TSource__2__0; private static MethodInfo SkipWhileAwaitWithCancellation__TSource__2__0(Type TSource) => (s_SkipWhileAwaitWithCancellation__TSource__2__0 ?? (s_SkipWhileAwaitWithCancellation__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(SkipWhileAwaitWithCancellation__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_SkipWhileAwaitWithCancellation__TSource__2__1; private static MethodInfo SkipWhileAwaitWithCancellation__TSource__2__1(Type TSource) => (s_SkipWhileAwaitWithCancellation__TSource__2__1 ?? (s_SkipWhileAwaitWithCancellation__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(SkipWhileAwaitWithCancellation__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_SumAsync__2__0; private static MethodInfo SumAsync__2__0 => (s_SumAsync__2__0 ?? (s_SumAsync__2__0 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__1; private static MethodInfo SumAsync__2__1 => (s_SumAsync__2__1 ?? (s_SumAsync__2__1 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__2; private static MethodInfo SumAsync__2__2 => (s_SumAsync__2__2 ?? (s_SumAsync__2__2 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__3; private static MethodInfo SumAsync__2__3 => (s_SumAsync__2__3 ?? (s_SumAsync__2__3 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__4; private static MethodInfo SumAsync__2__4 => (s_SumAsync__2__4 ?? (s_SumAsync__2__4 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__5; private static MethodInfo SumAsync__2__5 => (s_SumAsync__2__5 ?? (s_SumAsync__2__5 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__6; private static MethodInfo SumAsync__2__6 => (s_SumAsync__2__6 ?? (s_SumAsync__2__6 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__7; private static MethodInfo SumAsync__2__7 => (s_SumAsync__2__7 ?? (s_SumAsync__2__7 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__8; private static MethodInfo SumAsync__2__8 => (s_SumAsync__2__8 ?? (s_SumAsync__2__8 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__2__9; private static MethodInfo SumAsync__2__9 => (s_SumAsync__2__9 ?? (s_SumAsync__2__9 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); public static ValueTask SumAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__0; private static MethodInfo SumAsync__TSource__3__0(Type TSource) => (s_SumAsync__TSource__3__0 ?? (s_SumAsync__TSource__3__0 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__1; private static MethodInfo SumAsync__TSource__3__1(Type TSource) => (s_SumAsync__TSource__3__1 ?? (s_SumAsync__TSource__3__1 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__2; private static MethodInfo SumAsync__TSource__3__2(Type TSource) => (s_SumAsync__TSource__3__2 ?? (s_SumAsync__TSource__3__2 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__3; private static MethodInfo SumAsync__TSource__3__3(Type TSource) => (s_SumAsync__TSource__3__3 ?? (s_SumAsync__TSource__3__3 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__4; private static MethodInfo SumAsync__TSource__3__4(Type TSource) => (s_SumAsync__TSource__3__4 ?? (s_SumAsync__TSource__3__4 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__5; private static MethodInfo SumAsync__TSource__3__5(Type TSource) => (s_SumAsync__TSource__3__5 ?? (s_SumAsync__TSource__3__5 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__6; private static MethodInfo SumAsync__TSource__3__6(Type TSource) => (s_SumAsync__TSource__3__6 ?? (s_SumAsync__TSource__3__6 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__7; private static MethodInfo SumAsync__TSource__3__7(Type TSource) => (s_SumAsync__TSource__3__7 ?? (s_SumAsync__TSource__3__7 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__8; private static MethodInfo SumAsync__TSource__3__8(Type TSource) => (s_SumAsync__TSource__3__8 ?? (s_SumAsync__TSource__3__8 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAsync__TSource__3__9; private static MethodInfo SumAsync__TSource__3__9(Type TSource) => (s_SumAsync__TSource__3__9 ?? (s_SumAsync__TSource__3__9 = new Func, Expression>, CancellationToken, ValueTask>(SumAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAsync(this IAsyncQueryable source, Expression> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__0; private static MethodInfo SumAwaitAsync__TSource__3__0(Type TSource) => (s_SumAwaitAsync__TSource__3__0 ?? (s_SumAwaitAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__1; private static MethodInfo SumAwaitAsync__TSource__3__1(Type TSource) => (s_SumAwaitAsync__TSource__3__1 ?? (s_SumAwaitAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__2; private static MethodInfo SumAwaitAsync__TSource__3__2(Type TSource) => (s_SumAwaitAsync__TSource__3__2 ?? (s_SumAwaitAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__3; private static MethodInfo SumAwaitAsync__TSource__3__3(Type TSource) => (s_SumAwaitAsync__TSource__3__3 ?? (s_SumAwaitAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__4; private static MethodInfo SumAwaitAsync__TSource__3__4(Type TSource) => (s_SumAwaitAsync__TSource__3__4 ?? (s_SumAwaitAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__5; private static MethodInfo SumAwaitAsync__TSource__3__5(Type TSource) => (s_SumAwaitAsync__TSource__3__5 ?? (s_SumAwaitAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__6; private static MethodInfo SumAwaitAsync__TSource__3__6(Type TSource) => (s_SumAwaitAsync__TSource__3__6 ?? (s_SumAwaitAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__7; private static MethodInfo SumAwaitAsync__TSource__3__7(Type TSource) => (s_SumAwaitAsync__TSource__3__7 ?? (s_SumAwaitAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__8; private static MethodInfo SumAwaitAsync__TSource__3__8(Type TSource) => (s_SumAwaitAsync__TSource__3__8 ?? (s_SumAwaitAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitAsync__TSource__3__9; private static MethodInfo SumAwaitAsync__TSource__3__9(Type TSource) => (s_SumAwaitAsync__TSource__3__9 ?? (s_SumAwaitAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__0; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__0(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__0 ?? (s_SumAwaitWithCancellationAsync__TSource__3__0 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__1; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__1(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__1 ?? (s_SumAwaitWithCancellationAsync__TSource__3__1 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__2; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__2(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__2 ?? (s_SumAwaitWithCancellationAsync__TSource__3__2 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__3; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__3(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__3 ?? (s_SumAwaitWithCancellationAsync__TSource__3__3 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__4; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__4(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__4 ?? (s_SumAwaitWithCancellationAsync__TSource__3__4 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__5; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__5(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__5 ?? (s_SumAwaitWithCancellationAsync__TSource__3__5 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__6; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__6(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__6 ?? (s_SumAwaitWithCancellationAsync__TSource__3__6 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__7; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__7(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__7 ?? (s_SumAwaitWithCancellationAsync__TSource__3__7 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__8; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__8(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__8 ?? (s_SumAwaitWithCancellationAsync__TSource__3__8 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_SumAwaitWithCancellationAsync__TSource__3__9; private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__9(Type TSource) => (s_SumAwaitWithCancellationAsync__TSource__3__9 ?? (s_SumAwaitWithCancellationAsync__TSource__3__9 = new Func, Expression>>, CancellationToken, ValueTask>(SumAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> selector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.ExecuteAsync(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_Take__TSource__2__0; private static MethodInfo Take__TSource__2__0(Type TSource) => (s_Take__TSource__2__0 ?? (s_Take__TSource__2__0 = new Func, int, IAsyncQueryable>(Take).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Take(this IAsyncQueryable source, int count) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Take__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } private static MethodInfo s_TakeLast__TSource__2__0; private static MethodInfo TakeLast__TSource__2__0(Type TSource) => (s_TakeLast__TSource__2__0 ?? (s_TakeLast__TSource__2__0 = new Func, int, IAsyncQueryable>(TakeLast).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeLast(this IAsyncQueryable source, int count) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(TakeLast__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } private static MethodInfo s_TakeWhile__TSource__2__0; private static MethodInfo TakeWhile__TSource__2__0(Type TSource) => (s_TakeWhile__TSource__2__0 ?? (s_TakeWhile__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(TakeWhile).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhile(this IAsyncQueryable source, Expression> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(TakeWhile__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_TakeWhile__TSource__2__1; private static MethodInfo TakeWhile__TSource__2__1(Type TSource) => (s_TakeWhile__TSource__2__1 ?? (s_TakeWhile__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(TakeWhile).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhile(this IAsyncQueryable source, Expression> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(TakeWhile__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_TakeWhileAwait__TSource__2__0; private static MethodInfo TakeWhileAwait__TSource__2__0(Type TSource) => (s_TakeWhileAwait__TSource__2__0 ?? (s_TakeWhileAwait__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwait(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(TakeWhileAwait__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_TakeWhileAwait__TSource__2__1; private static MethodInfo TakeWhileAwait__TSource__2__1(Type TSource) => (s_TakeWhileAwait__TSource__2__1 ?? (s_TakeWhileAwait__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwait(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(TakeWhileAwait__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_TakeWhileAwaitWithCancellation__TSource__2__0; private static MethodInfo TakeWhileAwaitWithCancellation__TSource__2__0(Type TSource) => (s_TakeWhileAwaitWithCancellation__TSource__2__0 ?? (s_TakeWhileAwaitWithCancellation__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(TakeWhileAwaitWithCancellation__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_TakeWhileAwaitWithCancellation__TSource__2__1; private static MethodInfo TakeWhileAwaitWithCancellation__TSource__2__1(Type TSource) => (s_TakeWhileAwaitWithCancellation__TSource__2__1 ?? (s_TakeWhileAwaitWithCancellation__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(TakeWhileAwaitWithCancellation__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_ThenBy__TSource_TKey__2__0; private static MethodInfo ThenBy__TSource_TKey__2__0(Type TSource, Type TKey) => (s_ThenBy__TSource_TKey__2__0 ?? (s_ThenBy__TSource_TKey__2__0 = new Func, Expression>, IOrderedAsyncQueryable>(ThenBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenBy(this IOrderedAsyncQueryable source, Expression> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenBy__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_ThenBy__TSource_TKey__3__0; private static MethodInfo ThenBy__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ThenBy__TSource_TKey__3__0 ?? (s_ThenBy__TSource_TKey__3__0 = new Func, Expression>, IComparer, IOrderedAsyncQueryable>(ThenBy).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenBy(this IOrderedAsyncQueryable source, Expression> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenBy__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_ThenByAwait__TSource_TKey__2__0; private static MethodInfo ThenByAwait__TSource_TKey__2__0(Type TSource, Type TKey) => (s_ThenByAwait__TSource_TKey__2__0 ?? (s_ThenByAwait__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(ThenByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByAwait(this IOrderedAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_ThenByAwait__TSource_TKey__3__0; private static MethodInfo ThenByAwait__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ThenByAwait__TSource_TKey__3__0 ?? (s_ThenByAwait__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(ThenByAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByAwait(this IOrderedAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_ThenByAwaitWithCancellation__TSource_TKey__2__0; private static MethodInfo ThenByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => (s_ThenByAwaitWithCancellation__TSource_TKey__2__0 ?? (s_ThenByAwaitWithCancellation__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(ThenByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByAwaitWithCancellation(this IOrderedAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_ThenByAwaitWithCancellation__TSource_TKey__3__0; private static MethodInfo ThenByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ThenByAwaitWithCancellation__TSource_TKey__3__0 ?? (s_ThenByAwaitWithCancellation__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(ThenByAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByAwaitWithCancellation(this IOrderedAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_ThenByDescending__TSource_TKey__2__0; private static MethodInfo ThenByDescending__TSource_TKey__2__0(Type TSource, Type TKey) => (s_ThenByDescending__TSource_TKey__2__0 ?? (s_ThenByDescending__TSource_TKey__2__0 = new Func, Expression>, IOrderedAsyncQueryable>(ThenByDescending).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByDescending(this IOrderedAsyncQueryable source, Expression> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByDescending__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_ThenByDescending__TSource_TKey__3__0; private static MethodInfo ThenByDescending__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ThenByDescending__TSource_TKey__3__0 ?? (s_ThenByDescending__TSource_TKey__3__0 = new Func, Expression>, IComparer, IOrderedAsyncQueryable>(ThenByDescending).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByDescending(this IOrderedAsyncQueryable source, Expression> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByDescending__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_ThenByDescendingAwait__TSource_TKey__2__0; private static MethodInfo ThenByDescendingAwait__TSource_TKey__2__0(Type TSource, Type TKey) => (s_ThenByDescendingAwait__TSource_TKey__2__0 ?? (s_ThenByDescendingAwait__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(ThenByDescendingAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByDescendingAwait(this IOrderedAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByDescendingAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_ThenByDescendingAwait__TSource_TKey__3__0; private static MethodInfo ThenByDescendingAwait__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ThenByDescendingAwait__TSource_TKey__3__0 ?? (s_ThenByDescendingAwait__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(ThenByDescendingAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByDescendingAwait(this IOrderedAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByDescendingAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0; private static MethodInfo ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0 ?? (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0 = new Func, Expression>>, IOrderedAsyncQueryable>(ThenByDescendingAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByDescendingAwaitWithCancellation(this IOrderedAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0; private static MethodInfo ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0 ?? (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0 = new Func, Expression>>, IComparer, IOrderedAsyncQueryable>(ThenByDescendingAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IOrderedAsyncQueryable ThenByDescendingAwaitWithCancellation(this IOrderedAsyncQueryable source, Expression>> keySelector, IComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return (IOrderedAsyncQueryable)source.Provider.CreateQuery(Expression.Call(ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)))); } private static MethodInfo s_ToArrayAsync__TSource__2__0; private static MethodInfo ToArrayAsync__TSource__2__0(Type TSource) => (s_ToArrayAsync__TSource__2__0 ?? (s_ToArrayAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(ToArrayAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask ToArrayAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(ToArrayAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAsync__TSource_TKey__3__0; private static MethodInfo ToDictionaryAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ToDictionaryAsync__TSource_TKey__3__0 ?? (s_ToDictionaryAsync__TSource_TKey__3__0 = new Func, Expression>, CancellationToken, ValueTask>>(ToDictionaryAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAsync__TSource_TKey__4__0; private static MethodInfo ToDictionaryAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_ToDictionaryAsync__TSource_TKey__4__0 ?? (s_ToDictionaryAsync__TSource_TKey__4__0 = new Func, Expression>, IEqualityComparer, CancellationToken, ValueTask>>(ToDictionaryAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAsync__TSource_TKey_TElement__4__0; private static MethodInfo ToDictionaryAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_ToDictionaryAsync__TSource_TKey_TElement__4__0 ?? (s_ToDictionaryAsync__TSource_TKey_TElement__4__0 = new Func, Expression>, Expression>, CancellationToken, ValueTask>>(ToDictionaryAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAsync__TSource_TKey_TElement__5__0; private static MethodInfo ToDictionaryAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => (s_ToDictionaryAsync__TSource_TKey_TElement__5__0 ?? (s_ToDictionaryAsync__TSource_TKey_TElement__5__0 = new Func, Expression>, Expression>, IEqualityComparer, CancellationToken, ValueTask>>(ToDictionaryAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitAsync__TSource_TKey__3__0; private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ToDictionaryAwaitAsync__TSource_TKey__3__0 ?? (s_ToDictionaryAwaitAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(ToDictionaryAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitAsync__TSource_TKey__4__0; private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_ToDictionaryAwaitAsync__TSource_TKey__4__0 ?? (s_ToDictionaryAwaitAsync__TSource_TKey__4__0 = new Func, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToDictionaryAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0; private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0 ?? (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0 = new Func, Expression>>, Expression>>, CancellationToken, ValueTask>>(ToDictionaryAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0; private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0 ?? (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0 = new Func, Expression>>, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToDictionaryAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0; private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0 ?? (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(ToDictionaryAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0; private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0 ?? (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0 = new Func, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToDictionaryAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0; private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 ?? (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 = new Func, Expression>>, Expression>>, CancellationToken, ValueTask>>(ToDictionaryAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0; private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 ?? (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 = new Func, Expression>>, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToDictionaryAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToHashSetAsync__TSource__2__0; private static MethodInfo ToHashSetAsync__TSource__2__0(Type TSource) => (s_ToHashSetAsync__TSource__2__0 ?? (s_ToHashSetAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>>(ToHashSetAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask> ToHashSetAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync>(Expression.Call(ToHashSetAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToHashSetAsync__TSource__3__0; private static MethodInfo ToHashSetAsync__TSource__3__0(Type TSource) => (s_ToHashSetAsync__TSource__3__0 ?? (s_ToHashSetAsync__TSource__3__0 = new Func, IEqualityComparer, CancellationToken, ValueTask>>(ToHashSetAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask> ToHashSetAsync(this IAsyncQueryable source, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync>(Expression.Call(ToHashSetAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToListAsync__TSource__2__0; private static MethodInfo ToListAsync__TSource__2__0(Type TSource) => (s_ToListAsync__TSource__2__0 ?? (s_ToListAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>>(ToListAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask> ToListAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync>(Expression.Call(ToListAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAsync__TSource_TKey__3__0; private static MethodInfo ToLookupAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ToLookupAsync__TSource_TKey__3__0 ?? (s_ToLookupAsync__TSource_TKey__3__0 = new Func, Expression>, CancellationToken, ValueTask>>(ToLookupAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToLookupAsync(this IAsyncQueryable source, Expression> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAsync__TSource_TKey__4__0; private static MethodInfo ToLookupAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_ToLookupAsync__TSource_TKey__4__0 ?? (s_ToLookupAsync__TSource_TKey__4__0 = new Func, Expression>, IEqualityComparer, CancellationToken, ValueTask>>(ToLookupAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToLookupAsync(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAsync__TSource_TKey_TElement__4__0; private static MethodInfo ToLookupAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_ToLookupAsync__TSource_TKey_TElement__4__0 ?? (s_ToLookupAsync__TSource_TKey_TElement__4__0 = new Func, Expression>, Expression>, CancellationToken, ValueTask>>(ToLookupAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToLookupAsync(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAsync__TSource_TKey_TElement__5__0; private static MethodInfo ToLookupAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => (s_ToLookupAsync__TSource_TKey_TElement__5__0 ?? (s_ToLookupAsync__TSource_TKey_TElement__5__0 = new Func, Expression>, Expression>, IEqualityComparer, CancellationToken, ValueTask>>(ToLookupAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToLookupAsync(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitAsync__TSource_TKey__3__0; private static MethodInfo ToLookupAwaitAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ToLookupAwaitAsync__TSource_TKey__3__0 ?? (s_ToLookupAwaitAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(ToLookupAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToLookupAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitAsync__TSource_TKey__4__0; private static MethodInfo ToLookupAwaitAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_ToLookupAwaitAsync__TSource_TKey__4__0 ?? (s_ToLookupAwaitAsync__TSource_TKey__4__0 = new Func, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToLookupAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToLookupAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitAsync__TSource_TKey_TElement__4__0; private static MethodInfo ToLookupAwaitAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_ToLookupAwaitAsync__TSource_TKey_TElement__4__0 ?? (s_ToLookupAwaitAsync__TSource_TKey_TElement__4__0 = new Func, Expression>>, Expression>>, CancellationToken, ValueTask>>(ToLookupAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToLookupAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitAsync__TSource_TKey_TElement__5__0; private static MethodInfo ToLookupAwaitAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => (s_ToLookupAwaitAsync__TSource_TKey_TElement__5__0 ?? (s_ToLookupAwaitAsync__TSource_TKey_TElement__5__0 = new Func, Expression>>, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToLookupAwaitAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToLookupAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0; private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0 ?? (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(ToLookupAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToLookupAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0; private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0 ?? (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0 = new Func, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToLookupAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> ToLookupAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0; private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 ?? (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 = new Func, Expression>>, Expression>>, CancellationToken, ValueTask>>(ToLookupAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToLookupAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0; private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 ?? (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 = new Func, Expression>>, Expression>>, IEqualityComparer, CancellationToken, ValueTask>>(ToLookupAwaitWithCancellationAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement); public static ValueTask> ToLookupAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); if (elementSelector == null) throw new ArgumentNullException(nameof(elementSelector)); return source.Provider.ExecuteAsync>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_Union__TSource__2__0; private static MethodInfo Union__TSource__2__0(Type TSource) => (s_Union__TSource__2__0 ?? (s_Union__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Union).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Union(this IAsyncQueryable first, IAsyncEnumerable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Union__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } private static MethodInfo s_Union__TSource__3__0; private static MethodInfo Union__TSource__3__0(Type TSource) => (s_Union__TSource__3__0 ?? (s_Union__TSource__3__0 = new Func, IAsyncEnumerable, IEqualityComparer, IAsyncQueryable>(Union).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Union(this IAsyncQueryable first, IAsyncEnumerable second, IEqualityComparer? comparer) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Union__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_Where__TSource__2__0; private static MethodInfo Where__TSource__2__0(Type TSource) => (s_Where__TSource__2__0 ?? (s_Where__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(Where).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Where(this IAsyncQueryable source, Expression> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(Where__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_Where__TSource__2__1; private static MethodInfo Where__TSource__2__1(Type TSource) => (s_Where__TSource__2__1 ?? (s_Where__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Where).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Where(this IAsyncQueryable source, Expression> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(Where__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_WhereAwait__TSource__2__0; private static MethodInfo WhereAwait__TSource__2__0(Type TSource) => (s_WhereAwait__TSource__2__0 ?? (s_WhereAwait__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(WhereAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwait(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(WhereAwait__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_WhereAwait__TSource__2__1; private static MethodInfo WhereAwait__TSource__2__1(Type TSource) => (s_WhereAwait__TSource__2__1 ?? (s_WhereAwait__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(WhereAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwait(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(WhereAwait__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_WhereAwaitWithCancellation__TSource__2__0; private static MethodInfo WhereAwaitWithCancellation__TSource__2__0(Type TSource) => (s_WhereAwaitWithCancellation__TSource__2__0 ?? (s_WhereAwaitWithCancellation__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(WhereAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(WhereAwaitWithCancellation__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_WhereAwaitWithCancellation__TSource__2__1; private static MethodInfo WhereAwaitWithCancellation__TSource__2__1(Type TSource) => (s_WhereAwaitWithCancellation__TSource__2__1 ?? (s_WhereAwaitWithCancellation__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(WhereAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { if (source == null) throw new ArgumentNullException(nameof(source)); if (predicate == null) throw new ArgumentNullException(nameof(predicate)); return source.Provider.CreateQuery(Expression.Call(WhereAwaitWithCancellation__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } private static MethodInfo s_Zip__TFirst_TSecond_TResult__3__0; private static MethodInfo Zip__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) => (s_Zip__TFirst_TSecond_TResult__3__0 ?? (s_Zip__TFirst_TSecond_TResult__3__0 = new Func, IAsyncEnumerable, Expression>, IAsyncQueryable>(Zip).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond, TResult); public static IAsyncQueryable Zip(this IAsyncQueryable first, IAsyncEnumerable second, Expression> selector) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return first.Provider.CreateQuery(Expression.Call(Zip__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector)); } private static MethodInfo s_ZipAwait__TFirst_TSecond_TResult__3__0; private static MethodInfo ZipAwait__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) => (s_ZipAwait__TFirst_TSecond_TResult__3__0 ?? (s_ZipAwait__TFirst_TSecond_TResult__3__0 = new Func, IAsyncEnumerable, Expression>>, IAsyncQueryable>(ZipAwait).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond, TResult); public static IAsyncQueryable ZipAwait(this IAsyncQueryable first, IAsyncEnumerable second, Expression>> selector) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return first.Provider.CreateQuery(Expression.Call(ZipAwait__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector)); } private static MethodInfo s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0; private static MethodInfo ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) => (s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0 ?? (s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0 = new Func, IAsyncEnumerable, Expression>>, IAsyncQueryable>(ZipAwaitWithCancellation).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond, TResult); public static IAsyncQueryable ZipAwaitWithCancellation(this IAsyncQueryable first, IAsyncEnumerable second, Expression>> selector) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return first.Provider.CreateQuery(Expression.Call(ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector)); } } }