diff --git a/.editorconfig b/.editorconfig index 8ad1e1b8b2..aff572efae 100644 --- a/.editorconfig +++ b/.editorconfig @@ -252,11 +252,3 @@ csharp_space_between_method_declaration_name_and_open_parenthesis = false csharp_space_between_method_declaration_parameter_list_parentheses = false csharp_space_between_parentheses = false csharp_space_between_square_brackets = false - - - - - - - - diff --git a/Ix.NET/Source/AsyncQueryableGenerator.t4 b/Ix.NET/Source/AsyncQueryableGenerator.t4 index c15e5b382b..c618619b66 100644 --- a/Ix.NET/Source/AsyncQueryableGenerator.t4 +++ b/Ix.NET/Source/AsyncQueryableGenerator.t4 @@ -174,7 +174,7 @@ foreach (var m in asyncEnumerableType.GetMethods() { infoName += "__" + string.Join("_", genArgs.Select(a => a.Name)); infoTypeArgs = "(" + string.Join(", ", genArgs.Select(a => "Type " + a.Name)) + ")"; - infoToGeneric = ".GetGenericMethodDefinition()"; + infoToGeneric = "!.GetGenericMethodDefinition()"; infoMakeGeneric = ".MakeGenericMethod(" + string.Join(", ", genArgs.Select(a => a.Name)) + ")"; infoGenArgs = "<" + string.Join(", ", genArgs.Select(_ => "object")) + ">"; } @@ -281,14 +281,16 @@ foreach (var m in asyncEnumerableType.GetMethods() } var expr = "Expression.Call(" + mtd + ", " + string.Join(", ", quotedArgs) + ")"; + + var cons = name.StartsWith("ToDictionary") ? " where TKey : notnull" : ""; #> - private static MethodInfo s_<#=infoName#>; + private static MethodInfo? s_<#=infoName#>; private static MethodInfo <#=infoName#><#=infoTypeArgs#> => (s_<#=infoName#> ?? (s_<#=infoName#> = new Func<<#=infoSignature#>>(<#=m.Name#><#=infoGenArgs#>).GetMethodInfo()<#=infoToGeneric#>))<#=infoMakeGeneric#>; - public static <#=ret#> <#=name#>(<#=pars#>) + public static <#=ret#> <#=name#>(<#=pars#>)<#=cons#> { <# var any = false; diff --git a/Ix.NET/Source/FasterLinq/Program.cs b/Ix.NET/Source/FasterLinq/Program.cs index 51e2b79999..006181aca0 100644 --- a/Ix.NET/Source/FasterLinq/Program.cs +++ b/Ix.NET/Source/FasterLinq/Program.cs @@ -1,7 +1,9 @@ -// Licensed to the .NET Foundation under one or more agreements. +// 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. +#nullable disable + using System; using System.Collections; using System.Collections.Generic; diff --git a/Ix.NET/Source/System.Interactive.Async.Providers.Tests/System.Interactive.Async.Providers.Tests.csproj b/Ix.NET/Source/System.Interactive.Async.Providers.Tests/System.Interactive.Async.Providers.Tests.csproj index 987fe13919..19f200585a 100644 --- a/Ix.NET/Source/System.Interactive.Async.Providers.Tests/System.Interactive.Async.Providers.Tests.csproj +++ b/Ix.NET/Source/System.Interactive.Async.Providers.Tests/System.Interactive.Async.Providers.Tests.csproj @@ -5,7 +5,6 @@ $(NoWarn);CS0618 - PreserveNewest @@ -24,7 +23,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.Generated.cs b/Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.Generated.cs index b557013e19..4deb6ca3bc 100644 --- a/Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.Generated.cs +++ b/Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.Generated.cs @@ -14,11 +14,11 @@ namespace System.Linq { public static partial class AsyncQueryableEx { - private static MethodInfo s_Amb__TSource__2__0; + private static MethodInfo? s_Amb__TSource__2__0; - private static MethodInfo Amb__TSource__2__0(Type TSource) => + private static MethodInfo? Amb__TSource__2__0(Type TSource) => (s_Amb__TSource__2__0 ?? - (s_Amb__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Amb).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Amb__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Amb).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Amb(this IAsyncQueryable first, IAsyncEnumerable second) { @@ -30,11 +30,11 @@ public static IAsyncQueryable Amb(this IAsyncQueryable(Expression.Call(Amb__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } - private static MethodInfo s_Buffer__TSource__2__0; + private static MethodInfo? s_Buffer__TSource__2__0; - private static MethodInfo Buffer__TSource__2__0(Type TSource) => + private static MethodInfo? Buffer__TSource__2__0(Type TSource) => (s_Buffer__TSource__2__0 ?? - (s_Buffer__TSource__2__0 = new Func, int, IAsyncQueryable>>(Buffer).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Buffer__TSource__2__0 = new Func, int, IAsyncQueryable>>(Buffer).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable> Buffer(this IAsyncQueryable source, int count) { @@ -44,11 +44,11 @@ public static IAsyncQueryable> Buffer(this IAsyncQueryab return source.Provider.CreateQuery>(Expression.Call(Buffer__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } - private static MethodInfo s_Buffer__TSource__3__0; + private static MethodInfo? s_Buffer__TSource__3__0; - private static MethodInfo Buffer__TSource__3__0(Type TSource) => + private static MethodInfo? Buffer__TSource__3__0(Type TSource) => (s_Buffer__TSource__3__0 ?? - (s_Buffer__TSource__3__0 = new Func, int, int, IAsyncQueryable>>(Buffer).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Buffer__TSource__3__0 = new Func, int, int, IAsyncQueryable>>(Buffer).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable> Buffer(this IAsyncQueryable source, int count, int skip) { @@ -58,11 +58,11 @@ public static IAsyncQueryable> Buffer(this IAsyncQueryab return source.Provider.CreateQuery>(Expression.Call(Buffer__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)), Expression.Constant(skip, typeof(int)))); } - private static MethodInfo s_Catch__TSource__2__0; + private static MethodInfo? s_Catch__TSource__2__0; - private static MethodInfo Catch__TSource__2__0(Type TSource) => + private static MethodInfo? Catch__TSource__2__0(Type TSource) => (s_Catch__TSource__2__0 ?? - (s_Catch__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Catch__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Catch).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Catch(this IAsyncQueryable first, IAsyncEnumerable second) { @@ -74,11 +74,11 @@ public static IAsyncQueryable Catch(this IAsyncQueryable(Expression.Call(Catch__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } - private static MethodInfo s_Catch__TSource_TException__2__0; + private static MethodInfo? s_Catch__TSource_TException__2__0; - private static MethodInfo Catch__TSource_TException__2__0(Type TSource, Type TException) => + private static MethodInfo? Catch__TSource_TException__2__0(Type TSource, Type TException) => (s_Catch__TSource_TException__2__0 ?? - (s_Catch__TSource_TException__2__0 = new Func, Expression>>>, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); + (s_Catch__TSource_TException__2__0 = new Func, Expression>>>, IAsyncQueryable>(Catch).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); public static IAsyncQueryable Catch(this IAsyncQueryable source, Expression>>> handler) { @@ -90,11 +90,11 @@ public static IAsyncQueryable Catch(this IAsyncQueryable(Expression.Call(Catch__TSource_TException__2__0(typeof(TSource), typeof(TException)), source.Expression, handler)); } - private static MethodInfo s_Catch__TSource_TException__2__1; + private static MethodInfo? s_Catch__TSource_TException__2__1; - private static MethodInfo Catch__TSource_TException__2__1(Type TSource, Type TException) => + private static MethodInfo? Catch__TSource_TException__2__1(Type TSource, Type TException) => (s_Catch__TSource_TException__2__1 ?? - (s_Catch__TSource_TException__2__1 = new Func, Expression>>, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); + (s_Catch__TSource_TException__2__1 = new Func, Expression>>, IAsyncQueryable>(Catch).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); public static IAsyncQueryable Catch(this IAsyncQueryable source, Expression>> handler) { @@ -106,11 +106,11 @@ public static IAsyncQueryable Catch(this IAsyncQueryable(Expression.Call(Catch__TSource_TException__2__1(typeof(TSource), typeof(TException)), source.Expression, handler)); } - private static MethodInfo s_Catch__TSource_TException__2__2; + private static MethodInfo? s_Catch__TSource_TException__2__2; - private static MethodInfo Catch__TSource_TException__2__2(Type TSource, Type TException) => + private static MethodInfo? Catch__TSource_TException__2__2(Type TSource, Type TException) => (s_Catch__TSource_TException__2__2 ?? - (s_Catch__TSource_TException__2__2 = new Func, Expression>>>, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); + (s_Catch__TSource_TException__2__2 = new Func, Expression>>>, IAsyncQueryable>(Catch).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); public static IAsyncQueryable Catch(this IAsyncQueryable source, Expression>>> handler) { @@ -122,11 +122,11 @@ public static IAsyncQueryable Catch(this IAsyncQueryable(Expression.Call(Catch__TSource_TException__2__2(typeof(TSource), typeof(TException)), source.Expression, handler)); } - private static MethodInfo s_Concat__TSource__1__0; + private static MethodInfo? s_Concat__TSource__1__0; - private static MethodInfo Concat__TSource__1__0(Type TSource) => + private static MethodInfo? Concat__TSource__1__0(Type TSource) => (s_Concat__TSource__1__0 ?? - (s_Concat__TSource__1__0 = new Func>, IAsyncQueryable>(Concat).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Concat__TSource__1__0 = new Func>, IAsyncQueryable>(Concat).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Concat(this IAsyncQueryable> sources) { @@ -136,11 +136,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Concat__TSource__1__0(typeof(TSource)), sources.Expression)); } - private static MethodInfo s_Distinct__TSource_TKey__2__0; + private static MethodInfo? s_Distinct__TSource_TKey__2__0; - private static MethodInfo Distinct__TSource_TKey__2__0(Type TSource, Type TKey) => + private static MethodInfo? Distinct__TSource_TKey__2__0(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__2__0 ?? - (s_Distinct__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_Distinct__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector) { @@ -152,11 +152,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Distinct__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } - private static MethodInfo s_Distinct__TSource_TKey__2__1; + private static MethodInfo? s_Distinct__TSource_TKey__2__1; - private static MethodInfo Distinct__TSource_TKey__2__1(Type TSource, Type TKey) => + private static MethodInfo? Distinct__TSource_TKey__2__1(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__2__1 ?? - (s_Distinct__TSource_TKey__2__1 = new Func, Expression>, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_Distinct__TSource_TKey__2__1 = new Func, Expression>, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression> keySelector) { @@ -168,11 +168,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Distinct__TSource_TKey__2__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } - private static MethodInfo s_Distinct__TSource_TKey__2__2; + private static MethodInfo? s_Distinct__TSource_TKey__2__2; - private static MethodInfo Distinct__TSource_TKey__2__2(Type TSource, Type TKey) => + private static MethodInfo? Distinct__TSource_TKey__2__2(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__2__2 ?? - (s_Distinct__TSource_TKey__2__2 = new Func, Expression>>, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_Distinct__TSource_TKey__2__2 = new Func, Expression>>, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector) { @@ -184,11 +184,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Distinct__TSource_TKey__2__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } - private static MethodInfo s_Distinct__TSource_TKey__3__0; + private static MethodInfo? s_Distinct__TSource_TKey__3__0; - private static MethodInfo Distinct__TSource_TKey__3__0(Type TSource, Type TKey) => + private static MethodInfo? Distinct__TSource_TKey__3__0(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__3__0 ?? - (s_Distinct__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_Distinct__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { @@ -200,11 +200,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Distinct__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } - private static MethodInfo s_Distinct__TSource_TKey__3__1; + private static MethodInfo? s_Distinct__TSource_TKey__3__1; - private static MethodInfo Distinct__TSource_TKey__3__1(Type TSource, Type TKey) => + private static MethodInfo? Distinct__TSource_TKey__3__1(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__3__1 ?? - (s_Distinct__TSource_TKey__3__1 = new Func, Expression>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_Distinct__TSource_TKey__3__1 = new Func, Expression>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer) { @@ -216,11 +216,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Distinct__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } - private static MethodInfo s_Distinct__TSource_TKey__3__2; + private static MethodInfo? s_Distinct__TSource_TKey__3__2; - private static MethodInfo Distinct__TSource_TKey__3__2(Type TSource, Type TKey) => + private static MethodInfo? Distinct__TSource_TKey__3__2(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__3__2 ?? - (s_Distinct__TSource_TKey__3__2 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_Distinct__TSource_TKey__3__2 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { @@ -232,11 +232,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Distinct__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } - private static MethodInfo s_DistinctUntilChanged__TSource__1__0; + private static MethodInfo? s_DistinctUntilChanged__TSource__1__0; - private static MethodInfo DistinctUntilChanged__TSource__1__0(Type TSource) => + private static MethodInfo? DistinctUntilChanged__TSource__1__0(Type TSource) => (s_DistinctUntilChanged__TSource__1__0 ?? - (s_DistinctUntilChanged__TSource__1__0 = new Func, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_DistinctUntilChanged__TSource__1__0 = new Func, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source) { @@ -246,11 +246,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource__1__0(typeof(TSource)), source.Expression)); } - private static MethodInfo s_DistinctUntilChanged__TSource__2__0; + private static MethodInfo? s_DistinctUntilChanged__TSource__2__0; - private static MethodInfo DistinctUntilChanged__TSource__2__0(Type TSource) => + private static MethodInfo? DistinctUntilChanged__TSource__2__0(Type TSource) => (s_DistinctUntilChanged__TSource__2__0 ?? - (s_DistinctUntilChanged__TSource__2__0 = new Func, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_DistinctUntilChanged__TSource__2__0 = new Func, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, IEqualityComparer? comparer) { @@ -260,11 +260,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IEqualityComparer)))); } - private static MethodInfo s_DistinctUntilChanged__TSource_TKey__2__0; + private static MethodInfo? s_DistinctUntilChanged__TSource_TKey__2__0; - private static MethodInfo DistinctUntilChanged__TSource_TKey__2__0(Type TSource, Type TKey) => + private static MethodInfo? DistinctUntilChanged__TSource_TKey__2__0(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__2__0 ?? - (s_DistinctUntilChanged__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_DistinctUntilChanged__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector) { @@ -276,11 +276,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } - private static MethodInfo s_DistinctUntilChanged__TSource_TKey__2__1; + private static MethodInfo? s_DistinctUntilChanged__TSource_TKey__2__1; - private static MethodInfo DistinctUntilChanged__TSource_TKey__2__1(Type TSource, Type TKey) => + private static MethodInfo? DistinctUntilChanged__TSource_TKey__2__1(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__2__1 ?? - (s_DistinctUntilChanged__TSource_TKey__2__1 = new Func, Expression>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_DistinctUntilChanged__TSource_TKey__2__1 = new Func, Expression>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression> keySelector) { @@ -292,11 +292,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__2__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } - private static MethodInfo s_DistinctUntilChanged__TSource_TKey__2__2; + private static MethodInfo? s_DistinctUntilChanged__TSource_TKey__2__2; - private static MethodInfo DistinctUntilChanged__TSource_TKey__2__2(Type TSource, Type TKey) => + private static MethodInfo? DistinctUntilChanged__TSource_TKey__2__2(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__2__2 ?? - (s_DistinctUntilChanged__TSource_TKey__2__2 = new Func, Expression>>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_DistinctUntilChanged__TSource_TKey__2__2 = new Func, Expression>>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector) { @@ -308,11 +308,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__2__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } - private static MethodInfo s_DistinctUntilChanged__TSource_TKey__3__0; + private static MethodInfo? s_DistinctUntilChanged__TSource_TKey__3__0; - private static MethodInfo DistinctUntilChanged__TSource_TKey__3__0(Type TSource, Type TKey) => + private static MethodInfo? DistinctUntilChanged__TSource_TKey__3__0(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__3__0 ?? - (s_DistinctUntilChanged__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_DistinctUntilChanged__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { @@ -324,11 +324,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } - private static MethodInfo s_DistinctUntilChanged__TSource_TKey__3__1; + private static MethodInfo? s_DistinctUntilChanged__TSource_TKey__3__1; - private static MethodInfo DistinctUntilChanged__TSource_TKey__3__1(Type TSource, Type TKey) => + private static MethodInfo? DistinctUntilChanged__TSource_TKey__3__1(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__3__1 ?? - (s_DistinctUntilChanged__TSource_TKey__3__1 = new Func, Expression>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_DistinctUntilChanged__TSource_TKey__3__1 = new Func, Expression>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer) { @@ -340,11 +340,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } - private static MethodInfo s_DistinctUntilChanged__TSource_TKey__3__2; + private static MethodInfo? s_DistinctUntilChanged__TSource_TKey__3__2; - private static MethodInfo DistinctUntilChanged__TSource_TKey__3__2(Type TSource, Type TKey) => + private static MethodInfo? DistinctUntilChanged__TSource_TKey__3__2(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__3__2 ?? - (s_DistinctUntilChanged__TSource_TKey__3__2 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_DistinctUntilChanged__TSource_TKey__3__2 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { @@ -356,11 +356,11 @@ public static IAsyncQueryable DistinctUntilChanged(this IAsync return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } - private static MethodInfo s_Do__TSource__2__0; + private static MethodInfo? s_Do__TSource__2__0; - private static MethodInfo Do__TSource__2__0(Type TSource) => + private static MethodInfo? Do__TSource__2__0(Type TSource) => (s_Do__TSource__2__0 ?? - (s_Do__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext) { @@ -372,11 +372,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__0(typeof(TSource)), source.Expression, onNext)); } - private static MethodInfo s_Do__TSource__2__1; + private static MethodInfo? s_Do__TSource__2__1; - private static MethodInfo Do__TSource__2__1(Type TSource) => + private static MethodInfo? Do__TSource__2__1(Type TSource) => (s_Do__TSource__2__1 ?? - (s_Do__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext) { @@ -388,11 +388,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__1(typeof(TSource)), source.Expression, onNext)); } - private static MethodInfo s_Do__TSource__2__2; + private static MethodInfo? s_Do__TSource__2__2; - private static MethodInfo Do__TSource__2__2(Type TSource) => + private static MethodInfo? Do__TSource__2__2(Type TSource) => (s_Do__TSource__2__2 ?? - (s_Do__TSource__2__2 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__2__2 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext) { @@ -404,11 +404,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__2(typeof(TSource)), source.Expression, onNext)); } - private static MethodInfo s_Do__TSource__2__3; + private static MethodInfo? s_Do__TSource__2__3; - private static MethodInfo Do__TSource__2__3(Type TSource) => + private static MethodInfo? Do__TSource__2__3(Type TSource) => (s_Do__TSource__2__3 ?? - (s_Do__TSource__2__3 = new Func, IObserver, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__2__3 = new Func, IObserver, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, IObserver observer) { @@ -420,11 +420,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__3(typeof(TSource)), source.Expression, Expression.Constant(observer, typeof(IObserver)))); } - private static MethodInfo s_Do__TSource__3__0; + private static MethodInfo? s_Do__TSource__3__0; - private static MethodInfo Do__TSource__3__0(Type TSource) => + private static MethodInfo? Do__TSource__3__0(Type TSource) => (s_Do__TSource__3__0 ?? - (s_Do__TSource__3__0 = new Func, Expression>, Action, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__3__0 = new Func, Expression>, Action, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Action onCompleted) { @@ -438,11 +438,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__0(typeof(TSource)), source.Expression, onNext, Expression.Constant(onCompleted, typeof(Action)))); } - private static MethodInfo s_Do__TSource__3__1; + private static MethodInfo? s_Do__TSource__3__1; - private static MethodInfo Do__TSource__3__1(Type TSource) => + private static MethodInfo? Do__TSource__3__1(Type TSource) => (s_Do__TSource__3__1 ?? - (s_Do__TSource__3__1 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__3__1 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError) { @@ -456,11 +456,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__1(typeof(TSource)), source.Expression, onNext, onError)); } - private static MethodInfo s_Do__TSource__3__2; + private static MethodInfo? s_Do__TSource__3__2; - private static MethodInfo Do__TSource__3__2(Type TSource) => + private static MethodInfo? Do__TSource__3__2(Type TSource) => (s_Do__TSource__3__2 ?? - (s_Do__TSource__3__2 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__3__2 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onCompleted) { @@ -474,11 +474,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__2(typeof(TSource)), source.Expression, onNext, onCompleted)); } - private static MethodInfo s_Do__TSource__3__3; + private static MethodInfo? s_Do__TSource__3__3; - private static MethodInfo Do__TSource__3__3(Type TSource) => + private static MethodInfo? Do__TSource__3__3(Type TSource) => (s_Do__TSource__3__3 ?? - (s_Do__TSource__3__3 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__3__3 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError) { @@ -492,11 +492,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__3(typeof(TSource)), source.Expression, onNext, onError)); } - private static MethodInfo s_Do__TSource__3__4; + private static MethodInfo? s_Do__TSource__3__4; - private static MethodInfo Do__TSource__3__4(Type TSource) => + private static MethodInfo? Do__TSource__3__4(Type TSource) => (s_Do__TSource__3__4 ?? - (s_Do__TSource__3__4 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__3__4 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError) { @@ -510,11 +510,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__4(typeof(TSource)), source.Expression, onNext, onError)); } - private static MethodInfo s_Do__TSource__3__5; + private static MethodInfo? s_Do__TSource__3__5; - private static MethodInfo Do__TSource__3__5(Type TSource) => + private static MethodInfo? Do__TSource__3__5(Type TSource) => (s_Do__TSource__3__5 ?? - (s_Do__TSource__3__5 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__3__5 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onCompleted) { @@ -528,11 +528,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__5(typeof(TSource)), source.Expression, onNext, onCompleted)); } - private static MethodInfo s_Do__TSource__4__0; + private static MethodInfo? s_Do__TSource__4__0; - private static MethodInfo Do__TSource__4__0(Type TSource) => + private static MethodInfo? Do__TSource__4__0(Type TSource) => (s_Do__TSource__4__0 ?? - (s_Do__TSource__4__0 = new Func, Expression>, Expression>, Action, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__4__0 = new Func, Expression>, Expression>, Action, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError, Action onCompleted) { @@ -548,11 +548,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__4__0(typeof(TSource)), source.Expression, onNext, onError, Expression.Constant(onCompleted, typeof(Action)))); } - private static MethodInfo s_Do__TSource__4__1; + private static MethodInfo? s_Do__TSource__4__1; - private static MethodInfo Do__TSource__4__1(Type TSource) => + private static MethodInfo? Do__TSource__4__1(Type TSource) => (s_Do__TSource__4__1 ?? - (s_Do__TSource__4__1 = new Func, Expression>, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__4__1 = new Func, Expression>, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError, Expression> onCompleted) { @@ -568,11 +568,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__4__1(typeof(TSource)), source.Expression, onNext, onError, onCompleted)); } - private static MethodInfo s_Do__TSource__4__2; + private static MethodInfo? s_Do__TSource__4__2; - private static MethodInfo Do__TSource__4__2(Type TSource) => + private static MethodInfo? Do__TSource__4__2(Type TSource) => (s_Do__TSource__4__2 ?? - (s_Do__TSource__4__2 = new Func, Expression>, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Do__TSource__4__2 = new Func, Expression>, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError, Expression> onCompleted) { @@ -588,11 +588,11 @@ public static IAsyncQueryable Do(this IAsyncQueryable return source.Provider.CreateQuery(Expression.Call(Do__TSource__4__2(typeof(TSource)), source.Expression, onNext, onError, onCompleted)); } - private static MethodInfo s_Expand__TSource__2__0; + private static MethodInfo? s_Expand__TSource__2__0; - private static MethodInfo Expand__TSource__2__0(Type TSource) => + private static MethodInfo? Expand__TSource__2__0(Type TSource) => (s_Expand__TSource__2__0 ?? - (s_Expand__TSource__2__0 = new Func, Expression>>>, IAsyncQueryable>(Expand).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Expand__TSource__2__0 = new Func, Expression>>>, IAsyncQueryable>(Expand).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Expand(this IAsyncQueryable source, Expression>>> selector) { @@ -604,11 +604,11 @@ public static IAsyncQueryable Expand(this IAsyncQueryable(Expression.Call(Expand__TSource__2__0(typeof(TSource)), source.Expression, selector)); } - private static MethodInfo s_Expand__TSource__2__1; + private static MethodInfo? s_Expand__TSource__2__1; - private static MethodInfo Expand__TSource__2__1(Type TSource) => + private static MethodInfo? Expand__TSource__2__1(Type TSource) => (s_Expand__TSource__2__1 ?? - (s_Expand__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(Expand).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Expand__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(Expand).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Expand(this IAsyncQueryable source, Expression>> selector) { @@ -620,11 +620,11 @@ public static IAsyncQueryable Expand(this IAsyncQueryable(Expression.Call(Expand__TSource__2__1(typeof(TSource)), source.Expression, selector)); } - private static MethodInfo s_Expand__TSource__2__2; + private static MethodInfo? s_Expand__TSource__2__2; - private static MethodInfo Expand__TSource__2__2(Type TSource) => + private static MethodInfo? Expand__TSource__2__2(Type TSource) => (s_Expand__TSource__2__2 ?? - (s_Expand__TSource__2__2 = new Func, Expression>>>, IAsyncQueryable>(Expand).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Expand__TSource__2__2 = new Func, Expression>>>, IAsyncQueryable>(Expand).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Expand(this IAsyncQueryable source, Expression>>> selector) { @@ -636,11 +636,11 @@ public static IAsyncQueryable Expand(this IAsyncQueryable(Expression.Call(Expand__TSource__2__2(typeof(TSource)), source.Expression, selector)); } - private static MethodInfo s_Finally__TSource__2__0; + private static MethodInfo? s_Finally__TSource__2__0; - private static MethodInfo Finally__TSource__2__0(Type TSource) => + private static MethodInfo? Finally__TSource__2__0(Type TSource) => (s_Finally__TSource__2__0 ?? - (s_Finally__TSource__2__0 = new Func, Action, IAsyncQueryable>(Finally).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Finally__TSource__2__0 = new Func, Action, IAsyncQueryable>(Finally).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Finally(this IAsyncQueryable source, Action finallyAction) { @@ -652,11 +652,11 @@ public static IAsyncQueryable Finally(this IAsyncQueryable(Expression.Call(Finally__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(finallyAction, typeof(Action)))); } - private static MethodInfo s_Finally__TSource__2__1; + private static MethodInfo? s_Finally__TSource__2__1; - private static MethodInfo Finally__TSource__2__1(Type TSource) => + private static MethodInfo? Finally__TSource__2__1(Type TSource) => (s_Finally__TSource__2__1 ?? - (s_Finally__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Finally).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Finally__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Finally).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Finally(this IAsyncQueryable source, Expression> finallyAction) { @@ -668,11 +668,11 @@ public static IAsyncQueryable Finally(this IAsyncQueryable(Expression.Call(Finally__TSource__2__1(typeof(TSource)), source.Expression, finallyAction)); } - private static MethodInfo s_IgnoreElements__TSource__1__0; + private static MethodInfo? s_IgnoreElements__TSource__1__0; - private static MethodInfo IgnoreElements__TSource__1__0(Type TSource) => + private static MethodInfo? IgnoreElements__TSource__1__0(Type TSource) => (s_IgnoreElements__TSource__1__0 ?? - (s_IgnoreElements__TSource__1__0 = new Func, IAsyncQueryable>(IgnoreElements).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_IgnoreElements__TSource__1__0 = new Func, IAsyncQueryable>(IgnoreElements).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable IgnoreElements(this IAsyncQueryable source) { @@ -682,11 +682,11 @@ public static IAsyncQueryable IgnoreElements(this IAsyncQuerya return source.Provider.CreateQuery(Expression.Call(IgnoreElements__TSource__1__0(typeof(TSource)), source.Expression)); } - private static MethodInfo s_IsEmptyAsync__TSource__2__0; + private static MethodInfo? s_IsEmptyAsync__TSource__2__0; - private static MethodInfo IsEmptyAsync__TSource__2__0(Type TSource) => + private static MethodInfo? IsEmptyAsync__TSource__2__0(Type TSource) => (s_IsEmptyAsync__TSource__2__0 ?? - (s_IsEmptyAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(IsEmptyAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_IsEmptyAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(IsEmptyAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask IsEmptyAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -696,11 +696,11 @@ public static ValueTask IsEmptyAsync(this IAsyncQueryable(Expression.Call(IsEmptyAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MaxAsync__TSource__3__0; + private static MethodInfo? s_MaxAsync__TSource__3__0; - private static MethodInfo MaxAsync__TSource__3__0(Type TSource) => + private static MethodInfo? MaxAsync__TSource__3__0(Type TSource) => (s_MaxAsync__TSource__3__0 ?? - (s_MaxAsync__TSource__3__0 = new Func, IComparer, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_MaxAsync__TSource__3__0 = new Func, IComparer, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -710,11 +710,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MaxByAsync__TSource_TKey__3__0; + private static MethodInfo? s_MaxByAsync__TSource_TKey__3__0; - private static MethodInfo MaxByAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + private static MethodInfo? MaxByAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__3__0 ?? - (s_MaxByAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MaxByAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { @@ -726,11 +726,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MaxByAsync__TSource_TKey__3__1; + private static MethodInfo? s_MaxByAsync__TSource_TKey__3__1; - private static MethodInfo MaxByAsync__TSource_TKey__3__1(Type TSource, Type TKey) => + private static MethodInfo? MaxByAsync__TSource_TKey__3__1(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__3__1 ?? - (s_MaxByAsync__TSource_TKey__3__1 = new Func, Expression>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MaxByAsync__TSource_TKey__3__1 = new Func, Expression>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression> keySelector, CancellationToken cancellationToken = default) { @@ -742,11 +742,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MaxByAsync__TSource_TKey__3__2; + private static MethodInfo? s_MaxByAsync__TSource_TKey__3__2; - private static MethodInfo MaxByAsync__TSource_TKey__3__2(Type TSource, Type TKey) => + private static MethodInfo? MaxByAsync__TSource_TKey__3__2(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__3__2 ?? - (s_MaxByAsync__TSource_TKey__3__2 = new Func, Expression>>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MaxByAsync__TSource_TKey__3__2 = new Func, Expression>>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { @@ -758,11 +758,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MaxByAsync__TSource_TKey__4__0; + private static MethodInfo? s_MaxByAsync__TSource_TKey__4__0; - private static MethodInfo MaxByAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + private static MethodInfo? MaxByAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__4__0 ?? - (s_MaxByAsync__TSource_TKey__4__0 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MaxByAsync__TSource_TKey__4__0 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -774,11 +774,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MaxByAsync__TSource_TKey__4__1; + private static MethodInfo? s_MaxByAsync__TSource_TKey__4__1; - private static MethodInfo MaxByAsync__TSource_TKey__4__1(Type TSource, Type TKey) => + private static MethodInfo? MaxByAsync__TSource_TKey__4__1(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__4__1 ?? - (s_MaxByAsync__TSource_TKey__4__1 = new Func, Expression>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MaxByAsync__TSource_TKey__4__1 = new Func, Expression>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -790,11 +790,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__4__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MaxByAsync__TSource_TKey__4__2; + private static MethodInfo? s_MaxByAsync__TSource_TKey__4__2; - private static MethodInfo MaxByAsync__TSource_TKey__4__2(Type TSource, Type TKey) => + private static MethodInfo? MaxByAsync__TSource_TKey__4__2(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__4__2 ?? - (s_MaxByAsync__TSource_TKey__4__2 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MaxByAsync__TSource_TKey__4__2 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -806,11 +806,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__4__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_Merge__TSource__1__0; + private static MethodInfo? s_Merge__TSource__1__0; - private static MethodInfo Merge__TSource__1__0(Type TSource) => + private static MethodInfo? Merge__TSource__1__0(Type TSource) => (s_Merge__TSource__1__0 ?? - (s_Merge__TSource__1__0 = new Func>, IAsyncQueryable>(Merge).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Merge__TSource__1__0 = new Func>, IAsyncQueryable>(Merge).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Merge(this IAsyncQueryable> sources) { @@ -820,11 +820,11 @@ public static IAsyncQueryable Merge(this IAsyncQueryable(Expression.Call(Merge__TSource__1__0(typeof(TSource)), sources.Expression)); } - private static MethodInfo s_MinAsync__TSource__3__0; + private static MethodInfo? s_MinAsync__TSource__3__0; - private static MethodInfo MinAsync__TSource__3__0(Type TSource) => + private static MethodInfo? MinAsync__TSource__3__0(Type TSource) => (s_MinAsync__TSource__3__0 ?? - (s_MinAsync__TSource__3__0 = new Func, IComparer, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_MinAsync__TSource__3__0 = new Func, IComparer, CancellationToken, ValueTask>(MinAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -834,11 +834,11 @@ public static ValueTask MinAsync(this IAsyncQueryable return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MinByAsync__TSource_TKey__3__0; + private static MethodInfo? s_MinByAsync__TSource_TKey__3__0; - private static MethodInfo MinByAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + private static MethodInfo? MinByAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__3__0 ?? - (s_MinByAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MinByAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { @@ -850,11 +850,11 @@ public static ValueTask MinAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MinByAsync__TSource_TKey__3__1; + private static MethodInfo? s_MinByAsync__TSource_TKey__3__1; - private static MethodInfo MinByAsync__TSource_TKey__3__1(Type TSource, Type TKey) => + private static MethodInfo? MinByAsync__TSource_TKey__3__1(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__3__1 ?? - (s_MinByAsync__TSource_TKey__3__1 = new Func, Expression>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MinByAsync__TSource_TKey__3__1 = new Func, Expression>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression> keySelector, CancellationToken cancellationToken = default) { @@ -866,11 +866,11 @@ public static ValueTask MinAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MinByAsync__TSource_TKey__3__2; + private static MethodInfo? s_MinByAsync__TSource_TKey__3__2; - private static MethodInfo MinByAsync__TSource_TKey__3__2(Type TSource, Type TKey) => + private static MethodInfo? MinByAsync__TSource_TKey__3__2(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__3__2 ?? - (s_MinByAsync__TSource_TKey__3__2 = new Func, Expression>>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MinByAsync__TSource_TKey__3__2 = new Func, Expression>>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { @@ -882,11 +882,11 @@ public static ValueTask MinAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MinByAsync__TSource_TKey__4__0; + private static MethodInfo? s_MinByAsync__TSource_TKey__4__0; - private static MethodInfo MinByAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + private static MethodInfo? MinByAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__4__0 ?? - (s_MinByAsync__TSource_TKey__4__0 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MinByAsync__TSource_TKey__4__0 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -898,11 +898,11 @@ public static ValueTask MinAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MinByAsync__TSource_TKey__4__1; + private static MethodInfo? s_MinByAsync__TSource_TKey__4__1; - private static MethodInfo MinByAsync__TSource_TKey__4__1(Type TSource, Type TKey) => + private static MethodInfo? MinByAsync__TSource_TKey__4__1(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__4__1 ?? - (s_MinByAsync__TSource_TKey__4__1 = new Func, Expression>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MinByAsync__TSource_TKey__4__1 = new Func, Expression>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -914,11 +914,11 @@ public static ValueTask MinAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__4__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_MinByAsync__TSource_TKey__4__2; + private static MethodInfo? s_MinByAsync__TSource_TKey__4__2; - private static MethodInfo MinByAsync__TSource_TKey__4__2(Type TSource, Type TKey) => + private static MethodInfo? MinByAsync__TSource_TKey__4__2(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__4__2 ?? - (s_MinByAsync__TSource_TKey__4__2 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); + (s_MinByAsync__TSource_TKey__4__2 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { @@ -930,11 +930,11 @@ public static ValueTask MinAsync(this IAsyncQueryable return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__4__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_OnErrorResumeNext__TSource__2__0; + private static MethodInfo? s_OnErrorResumeNext__TSource__2__0; - private static MethodInfo OnErrorResumeNext__TSource__2__0(Type TSource) => + private static MethodInfo? OnErrorResumeNext__TSource__2__0(Type TSource) => (s_OnErrorResumeNext__TSource__2__0 ?? - (s_OnErrorResumeNext__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(OnErrorResumeNext).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_OnErrorResumeNext__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(OnErrorResumeNext).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable OnErrorResumeNext(this IAsyncQueryable first, IAsyncEnumerable second) { @@ -946,11 +946,11 @@ public static IAsyncQueryable OnErrorResumeNext(this IAsyncQue return first.Provider.CreateQuery(Expression.Call(OnErrorResumeNext__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } - private static MethodInfo s_Repeat__TSource__1__0; + private static MethodInfo? s_Repeat__TSource__1__0; - private static MethodInfo Repeat__TSource__1__0(Type TSource) => + private static MethodInfo? Repeat__TSource__1__0(Type TSource) => (s_Repeat__TSource__1__0 ?? - (s_Repeat__TSource__1__0 = new Func, IAsyncQueryable>(Repeat).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Repeat__TSource__1__0 = new Func, IAsyncQueryable>(Repeat).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Repeat(this IAsyncQueryable source) { @@ -960,11 +960,11 @@ public static IAsyncQueryable Repeat(this IAsyncQueryable(Expression.Call(Repeat__TSource__1__0(typeof(TSource)), source.Expression)); } - private static MethodInfo s_Repeat__TSource__2__0; + private static MethodInfo? s_Repeat__TSource__2__0; - private static MethodInfo Repeat__TSource__2__0(Type TSource) => + private static MethodInfo? Repeat__TSource__2__0(Type TSource) => (s_Repeat__TSource__2__0 ?? - (s_Repeat__TSource__2__0 = new Func, int, IAsyncQueryable>(Repeat).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Repeat__TSource__2__0 = new Func, int, IAsyncQueryable>(Repeat).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Repeat(this IAsyncQueryable source, int count) { @@ -974,11 +974,11 @@ public static IAsyncQueryable Repeat(this IAsyncQueryable(Expression.Call(Repeat__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } - private static MethodInfo s_Retry__TSource__1__0; + private static MethodInfo? s_Retry__TSource__1__0; - private static MethodInfo Retry__TSource__1__0(Type TSource) => + private static MethodInfo? Retry__TSource__1__0(Type TSource) => (s_Retry__TSource__1__0 ?? - (s_Retry__TSource__1__0 = new Func, IAsyncQueryable>(Retry).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Retry__TSource__1__0 = new Func, IAsyncQueryable>(Retry).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Retry(this IAsyncQueryable source) { @@ -988,11 +988,11 @@ public static IAsyncQueryable Retry(this IAsyncQueryable(Expression.Call(Retry__TSource__1__0(typeof(TSource)), source.Expression)); } - private static MethodInfo s_Retry__TSource__2__0; + private static MethodInfo? s_Retry__TSource__2__0; - private static MethodInfo Retry__TSource__2__0(Type TSource) => + private static MethodInfo? Retry__TSource__2__0(Type TSource) => (s_Retry__TSource__2__0 ?? - (s_Retry__TSource__2__0 = new Func, int, IAsyncQueryable>(Retry).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Retry__TSource__2__0 = new Func, int, IAsyncQueryable>(Retry).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Retry(this IAsyncQueryable source, int retryCount) { @@ -1002,11 +1002,11 @@ public static IAsyncQueryable Retry(this IAsyncQueryable(Expression.Call(Retry__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(retryCount, typeof(int)))); } - private static MethodInfo s_Scan__TSource__2__0; + private static MethodInfo? s_Scan__TSource__2__0; - private static MethodInfo Scan__TSource__2__0(Type TSource) => + private static MethodInfo? Scan__TSource__2__0(Type TSource) => (s_Scan__TSource__2__0 ?? - (s_Scan__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Scan__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Scan(this IAsyncQueryable source, Expression>> accumulator) { @@ -1018,11 +1018,11 @@ public static IAsyncQueryable Scan(this IAsyncQueryable(Expression.Call(Scan__TSource__2__0(typeof(TSource)), source.Expression, accumulator)); } - private static MethodInfo s_Scan__TSource__2__1; + private static MethodInfo? s_Scan__TSource__2__1; - private static MethodInfo Scan__TSource__2__1(Type TSource) => + private static MethodInfo? Scan__TSource__2__1(Type TSource) => (s_Scan__TSource__2__1 ?? - (s_Scan__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Scan__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Scan).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Scan(this IAsyncQueryable source, Expression> accumulator) { @@ -1034,11 +1034,11 @@ public static IAsyncQueryable Scan(this IAsyncQueryable(Expression.Call(Scan__TSource__2__1(typeof(TSource)), source.Expression, accumulator)); } - private static MethodInfo s_Scan__TSource__2__2; + private static MethodInfo? s_Scan__TSource__2__2; - private static MethodInfo Scan__TSource__2__2(Type TSource) => + private static MethodInfo? Scan__TSource__2__2(Type TSource) => (s_Scan__TSource__2__2 ?? - (s_Scan__TSource__2__2 = new Func, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Scan__TSource__2__2 = new Func, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Scan(this IAsyncQueryable source, Expression>> accumulator) { @@ -1050,11 +1050,11 @@ public static IAsyncQueryable Scan(this IAsyncQueryable(Expression.Call(Scan__TSource__2__2(typeof(TSource)), source.Expression, accumulator)); } - private static MethodInfo s_Scan__TSource_TAccumulate__3__0; + private static MethodInfo? s_Scan__TSource_TAccumulate__3__0; - private static MethodInfo Scan__TSource_TAccumulate__3__0(Type TSource, Type TAccumulate) => + private static MethodInfo? Scan__TSource_TAccumulate__3__0(Type TSource, Type TAccumulate) => (s_Scan__TSource_TAccumulate__3__0 ?? - (s_Scan__TSource_TAccumulate__3__0 = new Func, object, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); + (s_Scan__TSource_TAccumulate__3__0 = new Func, object, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static IAsyncQueryable Scan(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator) { @@ -1066,11 +1066,11 @@ public static IAsyncQueryable Scan(this IAsyncQueryable(Expression.Call(Scan__TSource_TAccumulate__3__0(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator)); } - private static MethodInfo s_Scan__TSource_TAccumulate__3__1; + private static MethodInfo? s_Scan__TSource_TAccumulate__3__1; - private static MethodInfo Scan__TSource_TAccumulate__3__1(Type TSource, Type TAccumulate) => + private static MethodInfo? Scan__TSource_TAccumulate__3__1(Type TSource, Type TAccumulate) => (s_Scan__TSource_TAccumulate__3__1 ?? - (s_Scan__TSource_TAccumulate__3__1 = new Func, object, Expression>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); + (s_Scan__TSource_TAccumulate__3__1 = new Func, object, Expression>, IAsyncQueryable>(Scan).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static IAsyncQueryable Scan(this IAsyncQueryable source, TAccumulate seed, Expression> accumulator) { @@ -1082,11 +1082,11 @@ public static IAsyncQueryable Scan(this IAsyncQueryable(Expression.Call(Scan__TSource_TAccumulate__3__1(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator)); } - private static MethodInfo s_Scan__TSource_TAccumulate__3__2; + private static MethodInfo? s_Scan__TSource_TAccumulate__3__2; - private static MethodInfo Scan__TSource_TAccumulate__3__2(Type TSource, Type TAccumulate) => + private static MethodInfo? Scan__TSource_TAccumulate__3__2(Type TSource, Type TAccumulate) => (s_Scan__TSource_TAccumulate__3__2 ?? - (s_Scan__TSource_TAccumulate__3__2 = new Func, object, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); + (s_Scan__TSource_TAccumulate__3__2 = new Func, object, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static IAsyncQueryable Scan(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator) { @@ -1098,11 +1098,11 @@ public static IAsyncQueryable Scan(this IAsyncQueryable(Expression.Call(Scan__TSource_TAccumulate__3__2(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator)); } - private static MethodInfo s_SelectMany__TSource_TOther__2__0; + private static MethodInfo? s_SelectMany__TSource_TOther__2__0; - private static MethodInfo SelectMany__TSource_TOther__2__0(Type TSource, Type TOther) => + private static MethodInfo? SelectMany__TSource_TOther__2__0(Type TSource, Type TOther) => (s_SelectMany__TSource_TOther__2__0 ?? - (s_SelectMany__TSource_TOther__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(SelectMany).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TOther); + (s_SelectMany__TSource_TOther__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(SelectMany).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TOther); public static IAsyncQueryable SelectMany(this IAsyncQueryable source, IAsyncEnumerable other) { @@ -1114,11 +1114,11 @@ public static IAsyncQueryable Scan(this IAsyncQueryable(Expression.Call(SelectMany__TSource_TOther__2__0(typeof(TSource), typeof(TOther)), source.Expression, GetSourceExpression(other))); } - private static MethodInfo s_StartWith__TSource__2__0; + private static MethodInfo? s_StartWith__TSource__2__0; - private static MethodInfo StartWith__TSource__2__0(Type TSource) => + private static MethodInfo? StartWith__TSource__2__0(Type TSource) => (s_StartWith__TSource__2__0 ?? - (s_StartWith__TSource__2__0 = new Func, object[], IAsyncQueryable>(StartWith).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_StartWith__TSource__2__0 = new Func, object[], IAsyncQueryable>(StartWith).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable StartWith(this IAsyncQueryable source, params TSource[] values) { @@ -1130,11 +1130,11 @@ public static IAsyncQueryable StartWith(this IAsyncQueryable(Expression.Call(StartWith__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(values, typeof(TSource[])))); } - private static MethodInfo s_Timeout__TSource__2__0; + private static MethodInfo? s_Timeout__TSource__2__0; - private static MethodInfo Timeout__TSource__2__0(Type TSource) => + private static MethodInfo? Timeout__TSource__2__0(Type TSource) => (s_Timeout__TSource__2__0 ?? - (s_Timeout__TSource__2__0 = new Func, TimeSpan, IAsyncQueryable>(Timeout).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); + (s_Timeout__TSource__2__0 = new Func, TimeSpan, IAsyncQueryable>(Timeout).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Timeout(this IAsyncQueryable source, TimeSpan timeout) { diff --git a/Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Bugs.cs b/Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Bugs.cs index be27a01d9b..943fa62d84 100644 --- a/Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Bugs.cs +++ b/Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Bugs.cs @@ -113,16 +113,16 @@ public void DisposeAfterCreation() enumerable?.Dispose(); } - private class DisposeCounter : IAsyncEnumerable + private class DisposeCounter : IAsyncEnumerable { public int DisposeCount { get; private set; } - public IAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken) + public IAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken) { return new Enumerator(this); } - private class Enumerator : IAsyncEnumerator + private class Enumerator : IAsyncEnumerator { private readonly DisposeCounter _disposeCounter; @@ -142,7 +142,7 @@ public ValueTask MoveNextAsync() return new ValueTask(Task.Factory.StartNew(() => false)); } - public object Current { get; private set; } + public object? Current { get; private set; } } } } diff --git a/Ix.NET/Source/System.Interactive.Async.Tests/System.Interactive.Async.Tests.csproj b/Ix.NET/Source/System.Interactive.Async.Tests/System.Interactive.Async.Tests.csproj index 96c37bb4d7..114821acf0 100644 --- a/Ix.NET/Source/System.Interactive.Async.Tests/System.Interactive.Async.Tests.csproj +++ b/Ix.NET/Source/System.Interactive.Async.Tests/System.Interactive.Async.Tests.csproj @@ -2,10 +2,9 @@ netcoreapp2.1;net461;netcoreapp3.0 - $(NoWarn);CS0618 + $(NoWarn);CS0618;CS8603;CS8625 - PreserveNewest @@ -22,7 +21,6 @@ - diff --git a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs index aad57802b0..28f623481a 100644 --- a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs +++ b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -103,9 +102,6 @@ private sealed class DistinctAsyncIterator : AsyncIterator source, Func keySelector, IEqualityComparer? comparer) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - _source = source; _keySelector = keySelector; _comparer = comparer; @@ -251,9 +247,6 @@ private sealed class DistinctAsyncIteratorWithTask : AsyncIterato public DistinctAsyncIteratorWithTask(IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - _source = source; _keySelector = keySelector; _comparer = comparer; @@ -400,9 +393,6 @@ private sealed class DistinctAsyncIteratorWithTaskAndCancellation public DistinctAsyncIteratorWithTaskAndCancellation(IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - _source = source; _keySelector = keySelector; _comparer = comparer; diff --git a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Never.cs b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Never.cs index cdc81ba038..66efb62596 100644 --- a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Never.cs +++ b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Never.cs @@ -49,7 +49,7 @@ public ValueTask MoveNextAsync() _once = true; var task = new TaskCompletionSource(); - _registration = _token.Register(state => ((TaskCompletionSource)state).SetCanceled(), task); + _registration = _token.Register(state => ((TaskCompletionSource)state!).SetCanceled(), task); return new ValueTask(task.Task); } } diff --git a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/OnErrorResumeNext.cs b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/OnErrorResumeNext.cs index 6a3825e689..00ac599fb5 100644 --- a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/OnErrorResumeNext.cs +++ b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/OnErrorResumeNext.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Diagnostics; using System.Threading.Tasks; namespace System.Linq @@ -50,8 +49,6 @@ private sealed class OnErrorResumeNextAsyncIterator : AsyncIterator> sources) { - Debug.Assert(sources != null); - _sources = sources; } diff --git a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Timeout.cs b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Timeout.cs index 717db0c564..f7f4f3640c 100644 --- a/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Timeout.cs +++ b/Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Timeout.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -34,8 +33,6 @@ private sealed class TimeoutAsyncIterator : AsyncIterator public TimeoutAsyncIterator(IAsyncEnumerable source, TimeSpan timeout) { - Debug.Assert(source != null); - _source = source; _timeout = timeout; } @@ -99,7 +96,7 @@ protected override async ValueTask MoveNextCore() // REVIEW: Should exceptions reported by a timed out MoveNextAsync operation come out // when attempting to call DisposeAsync? - _loserTask = next.ContinueWith((_, state) => ((IAsyncDisposable)state).DisposeAsync().AsTask(), _enumerator); + _loserTask = next.ContinueWith((_, state) => ((IAsyncDisposable)state!).DisposeAsync().AsTask(), _enumerator); throw new TimeoutException(); } diff --git a/Ix.NET/Source/System.Interactive.Tests/System.Interactive.Tests.csproj b/Ix.NET/Source/System.Interactive.Tests/System.Interactive.Tests.csproj index ca1b572b85..8a1afbaf60 100644 --- a/Ix.NET/Source/System.Interactive.Tests/System.Interactive.Tests.csproj +++ b/Ix.NET/Source/System.Interactive.Tests/System.Interactive.Tests.csproj @@ -2,10 +2,9 @@ netcoreapp2.1;net461 - $(NoWarn);CS0618 + $(NoWarn);CS0618;CS8603;CS8625 - PreserveNewest @@ -23,7 +22,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/Ix.NET/Source/System.Interactive.Tests/System/Linq/Operators/Using.cs b/Ix.NET/Source/System.Interactive.Tests/System/Linq/Operators/Using.cs index aad907693f..cb4465097b 100644 --- a/Ix.NET/Source/System.Interactive.Tests/System/Linq/Operators/Using.cs +++ b/Ix.NET/Source/System.Interactive.Tests/System/Linq/Operators/Using.cs @@ -26,12 +26,12 @@ public void Using1() Assert.Null(d); var d1 = default(MyDisposable); - xs.ForEach(_ => { d1 = d; Assert.NotNull(d1); Assert.False(d1.Done); }); - Assert.True(d1.Done); + xs.ForEach(_ => { d1 = d; Assert.NotNull(d1); Assert.False(d1!.Done); }); + Assert.True(d1!.Done); var d2 = default(MyDisposable); - xs.ForEach(_ => { d2 = d; Assert.NotNull(d2); Assert.False(d2.Done); }); - Assert.True(d2.Done); + xs.ForEach(_ => { d2 = d; Assert.NotNull(d2); Assert.False(d2!.Done); }); + Assert.True(d2!.Done); Assert.NotSame(d1, d2); } @@ -45,7 +45,7 @@ public void Using2() Assert.Null(d); AssertThrows(() => xs.ForEach(_ => { })); - Assert.True(d.Done); + Assert.True(d!.Done); } [Fact] @@ -57,7 +57,7 @@ public void Using3() Assert.Null(d); AssertThrows(() => xs.ForEach(_ => { })); - Assert.True(d.Done); + Assert.True(d!.Done); } private sealed class MyDisposable : IDisposable diff --git a/Ix.NET/Source/System.Interactive/System/Linq/Operators/Catch.cs b/Ix.NET/Source/System.Interactive/System/Linq/Operators/Catch.cs index 5790b79415..1d4e0e24eb 100644 --- a/Ix.NET/Source/System.Interactive/System/Linq/Operators/Catch.cs +++ b/Ix.NET/Source/System.Interactive/System/Linq/Operators/Catch.cs @@ -82,7 +82,7 @@ public static IEnumerable Catch(this IEnumerable firs { while (true) { - var c = default(TSource); + TSource c; try { @@ -121,7 +121,7 @@ private static IEnumerable CatchCore(IEnumerable : IBuffer { private IRefCountList _buffer; private bool _disposed; - private Exception _error; + private Exception? _error; private IEnumerator _source; private bool _stopped; diff --git a/Ix.NET/Source/System.Interactive/System/Linq/Operators/Publish.cs b/Ix.NET/Source/System.Interactive/System/Linq/Operators/Publish.cs index 5ff6a3ca92..3d1a6765cf 100644 --- a/Ix.NET/Source/System.Interactive/System/Linq/Operators/Publish.cs +++ b/Ix.NET/Source/System.Interactive/System/Linq/Operators/Publish.cs @@ -61,9 +61,11 @@ public static IBuffer Publish(this IEnumerable source private sealed class PublishedBuffer : IBuffer { + private readonly object _gate = new object(); + private RefCountList _buffer; private bool _disposed; - private Exception _error; + private Exception? _error; private IEnumerator _source; private bool _stopped; @@ -81,7 +83,7 @@ public IEnumerator GetEnumerator() } var i = default(int); - lock (_source) + lock (_gate) { i = _buffer.Count; _buffer.ReaderCount++; @@ -102,7 +104,7 @@ IEnumerator IEnumerable.GetEnumerator() public void Dispose() { - lock (_source) + lock (_gate) { if (!_disposed) { @@ -131,7 +133,7 @@ private IEnumerator GetEnumeratorCore(int i) var hasValue = default(bool); var current = default(T); - lock (_source) + lock (_gate) { if (i >= _buffer.Count) { diff --git a/Ix.NET/Source/System.Interactive/System/Linq/Yielder.cs b/Ix.NET/Source/System.Interactive/System/Linq/Yielder.cs index 27ab634375..9ee8f225b7 100644 --- a/Ix.NET/Source/System.Interactive/System/Linq/Yielder.cs +++ b/Ix.NET/Source/System.Interactive/System/Linq/Yielder.cs @@ -9,7 +9,7 @@ namespace System.Linq internal sealed class Yielder : IYielder, IAwaitable, IAwaiter { private readonly Action> _create; - private Action _continuation; + private Action? _continuation; private bool _hasValue; private bool _running; private bool _stopped; @@ -62,7 +62,7 @@ public bool MoveNext() else { _hasValue = false; - _continuation(); + _continuation!(); } return !_stopped && _hasValue; diff --git a/Ix.NET/Source/System.Linq.Async.Queryable.Tests/System.Linq.Async.Queryable.Tests.csproj b/Ix.NET/Source/System.Linq.Async.Queryable.Tests/System.Linq.Async.Queryable.Tests.csproj index ea8f935276..c5f72b9073 100644 --- a/Ix.NET/Source/System.Linq.Async.Queryable.Tests/System.Linq.Async.Queryable.Tests.csproj +++ b/Ix.NET/Source/System.Linq.Async.Queryable.Tests/System.Linq.Async.Queryable.Tests.csproj @@ -5,7 +5,6 @@ $(NoWarn);CS0618 - PreserveNewest diff --git a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs index b8a7fd0dd8..0ad886d800 100644 --- a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs +++ b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs @@ -133,7 +133,7 @@ public IAsyncEnumerator GetAsyncEnumerator(CancellationToken token) /// Gets a string representation of the enumerable sequence. /// /// String representation of the enumerable sequence. - public override string ToString() + public override string? ToString() { if (!(_expression is ConstantExpression ce) || ce.Value != this) { diff --git a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs index 49fd486168..17bbeb8f4b 100644 --- a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs +++ b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs @@ -15,7 +15,7 @@ namespace System.Linq /// internal class AsyncEnumerableRewriter : ExpressionVisitor { - private static volatile ILookup _methods; + private static volatile ILookup? _methods; protected override Expression VisitConstant(ConstantExpression node) { @@ -215,7 +215,7 @@ private static bool ArgsMatch(MethodInfo method, ReadOnlyCollection // if (type.IsByRef) { - type = type.GetElementType(); + type = type.GetElementType()!; } var expression = args[i]; @@ -328,7 +328,7 @@ private static Expression FixupQuotedExpression(Type type, Expression expression var newArrayExpression = (NewArrayExpression)res; var count = newArrayExpression.Expressions.Count; - var elementType = type.GetElementType(); + var elementType = type.GetElementType()!; var list = new List(count); for (var i = 0; i < count; i++) @@ -357,7 +357,7 @@ private static Type StripExpression(Type type) // // Array of quotes need to be stripped, so extract the element type. // - var elemType = type.IsArray ? type.GetElementType() : type; + var elemType = type.IsArray ? type.GetElementType()! : type; // // Try to find Expression and obtain T. @@ -454,7 +454,7 @@ private static MethodInfo FindMethod(Type type, string name, ReadOnlyCollection< return method; } - private static Type? FindGenericType(Type definition, Type type) + private static Type? FindGenericType(Type definition, Type? type) { while (type != null && type != typeof(object)) { diff --git a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.Generated.cs b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.Generated.cs index de162c047d..66773c00ed 100644 --- a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.Generated.cs +++ b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.Generated.cs @@ -14,11 +14,11 @@ namespace System.Linq { public static partial class AsyncQueryable { - private static MethodInfo s_AggregateAsync__TSource__3__0; + private static MethodInfo? s_AggregateAsync__TSource__3__0; - private static MethodInfo AggregateAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -30,11 +30,11 @@ public static ValueTask AggregateAsync(this IAsyncQueryable(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? s_AggregateAsync__TSource_TAccumulate__4__0; - private static MethodInfo AggregateAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) => + 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); + (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) { @@ -46,11 +46,11 @@ public static ValueTask AggregateAsync(this IAsyncQueryable(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? s_AggregateAsync__TSource_TAccumulate_TResult__5__0; - private static MethodInfo AggregateAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) => + 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); + (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) { @@ -64,11 +64,11 @@ public static ValueTask AggregateAsync(this IAsyncQueryable(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? s_AggregateAwaitAsync__TSource__3__0; - private static MethodInfo AggregateAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -80,11 +80,11 @@ public static ValueTask AggregateAwaitAsync(this IAsyncQueryab 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? s_AggregateAwaitAsync__TSource_TAccumulate__4__0; - private static MethodInfo AggregateAwaitAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) => + 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); + (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) { @@ -96,11 +96,11 @@ public static ValueTask AggregateAwaitAsync(this IAsyncQueryab 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? s_AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0; - private static MethodInfo AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) => + 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); + (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) { @@ -114,11 +114,11 @@ public static ValueTask AggregateAwaitAsync(this IAsyncQueryab 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? s_AggregateAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo AggregateAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -130,11 +130,11 @@ public static ValueTask AggregateAwaitWithCancellationAsync(th 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? s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0; - private static MethodInfo AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) => + 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); + (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) { @@ -146,11 +146,11 @@ public static ValueTask AggregateAwaitWithCancellationAsync(th 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? s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0; - private static MethodInfo AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) => + 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); + (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) { @@ -164,11 +164,11 @@ public static ValueTask AggregateAwaitWithCancellationAsync(th 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? s_AllAsync__TSource__3__0; - private static MethodInfo AllAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -180,11 +180,11 @@ public static ValueTask AllAsync(this IAsyncQueryable so 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? s_AllAwaitAsync__TSource__3__0; - private static MethodInfo AllAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -196,11 +196,11 @@ public static ValueTask AllAwaitAsync(this IAsyncQueryable(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? s_AllAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo AllAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -212,11 +212,11 @@ public static ValueTask AllAwaitWithCancellationAsync(this IAsync 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? s_AnyAsync__TSource__2__0; - private static MethodInfo AnyAsync__TSource__2__0(Type TSource) => + 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); + (s_AnyAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(AnyAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask AnyAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -226,11 +226,11 @@ public static ValueTask AnyAsync(this IAsyncQueryable so 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? s_AnyAsync__TSource__3__0; - private static MethodInfo AnyAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -242,11 +242,11 @@ public static ValueTask AnyAsync(this IAsyncQueryable so 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? s_AnyAwaitAsync__TSource__3__0; - private static MethodInfo AnyAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -258,11 +258,11 @@ public static ValueTask AnyAwaitAsync(this IAsyncQueryable(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? s_AnyAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo AnyAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -274,11 +274,11 @@ public static ValueTask AnyAwaitWithCancellationAsync(this IAsync 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? s_Append__TSource__2__0; - private static MethodInfo Append__TSource__2__0(Type TSource) => + 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); + (s_Append__TSource__2__0 = new Func, object, IAsyncQueryable>(Append).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Append(this IAsyncQueryable source, TSource element) { @@ -288,9 +288,9 @@ public static IAsyncQueryable Append(this IAsyncQueryable(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? s_AverageAsync__2__0; - private static MethodInfo AverageAsync__2__0 => + private static MethodInfo? AverageAsync__2__0 => (s_AverageAsync__2__0 ?? (s_AverageAsync__2__0 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -302,9 +302,9 @@ public static IAsyncQueryable Append(this IAsyncQueryable(Expression.Call(AverageAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } - private static MethodInfo s_AverageAsync__2__1; + private static MethodInfo? s_AverageAsync__2__1; - private static MethodInfo AverageAsync__2__1 => + private static MethodInfo? AverageAsync__2__1 => (s_AverageAsync__2__1 ?? (s_AverageAsync__2__1 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -316,9 +316,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable sour 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? s_AverageAsync__2__2; - private static MethodInfo AverageAsync__2__2 => + private static MethodInfo? AverageAsync__2__2 => (s_AverageAsync__2__2 ?? (s_AverageAsync__2__2 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -330,9 +330,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable sour 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? s_AverageAsync__2__3; - private static MethodInfo AverageAsync__2__3 => + private static MethodInfo? AverageAsync__2__3 => (s_AverageAsync__2__3 ?? (s_AverageAsync__2__3 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -344,9 +344,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable 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? s_AverageAsync__2__4; - private static MethodInfo AverageAsync__2__4 => + private static MethodInfo? AverageAsync__2__4 => (s_AverageAsync__2__4 ?? (s_AverageAsync__2__4 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -358,9 +358,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable 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? s_AverageAsync__2__5; - private static MethodInfo AverageAsync__2__5 => + private static MethodInfo? AverageAsync__2__5 => (s_AverageAsync__2__5 ?? (s_AverageAsync__2__5 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -372,9 +372,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable 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? s_AverageAsync__2__6; - private static MethodInfo AverageAsync__2__6 => + private static MethodInfo? AverageAsync__2__6 => (s_AverageAsync__2__6 ?? (s_AverageAsync__2__6 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -386,9 +386,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable 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? s_AverageAsync__2__7; - private static MethodInfo AverageAsync__2__7 => + private static MethodInfo? AverageAsync__2__7 => (s_AverageAsync__2__7 ?? (s_AverageAsync__2__7 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -400,9 +400,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable source, C 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? s_AverageAsync__2__8; - private static MethodInfo AverageAsync__2__8 => + private static MethodInfo? AverageAsync__2__8 => (s_AverageAsync__2__8 ?? (s_AverageAsync__2__8 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -414,9 +414,9 @@ public static ValueTask AverageAsync(this IAsyncQueryable source, C 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? s_AverageAsync__2__9; - private static MethodInfo AverageAsync__2__9 => + private static MethodInfo? AverageAsync__2__9 => (s_AverageAsync__2__9 ?? (s_AverageAsync__2__9 = new Func, CancellationToken, ValueTask>(AverageAsync).GetMethodInfo())); @@ -428,11 +428,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable 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? s_AverageAsync__TSource__3__0; - private static MethodInfo AverageAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -444,11 +444,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable source, 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? s_AverageAsync__TSource__3__1; - private static MethodInfo AverageAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -460,11 +460,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__2; - private static MethodInfo AverageAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -476,11 +476,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__3; - private static MethodInfo AverageAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -492,11 +492,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__4; - private static MethodInfo AverageAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -508,11 +508,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__5; - private static MethodInfo AverageAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -524,11 +524,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__6; - private static MethodInfo AverageAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -540,11 +540,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__7; - private static MethodInfo AverageAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -556,11 +556,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__8; - private static MethodInfo AverageAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -572,11 +572,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAsync__TSource__3__9; - private static MethodInfo AverageAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -588,11 +588,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAwaitAsync__TSource__3__0; - private static MethodInfo AverageAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -604,11 +604,11 @@ public static ValueTask AverageAsync(this IAsyncQueryable(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? s_AverageAwaitAsync__TSource__3__1; - private static MethodInfo AverageAwaitAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -620,11 +620,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable 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? s_AverageAwaitAsync__TSource__3__2; - private static MethodInfo AverageAwaitAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -636,11 +636,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable 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? s_AverageAwaitAsync__TSource__3__3; - private static MethodInfo AverageAwaitAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -652,11 +652,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable< 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? s_AverageAwaitAsync__TSource__3__4; - private static MethodInfo AverageAwaitAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -668,11 +668,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable< 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? s_AverageAwaitAsync__TSource__3__5; - private static MethodInfo AverageAwaitAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -684,11 +684,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable(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? s_AverageAwaitAsync__TSource__3__6; - private static MethodInfo AverageAwaitAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -700,11 +700,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable(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? s_AverageAwaitAsync__TSource__3__7; - private static MethodInfo AverageAwaitAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -716,11 +716,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable< 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? s_AverageAwaitAsync__TSource__3__8; - private static MethodInfo AverageAwaitAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -732,11 +732,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable< 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? s_AverageAwaitAsync__TSource__3__9; - private static MethodInfo AverageAwaitAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -748,11 +748,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable< 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? s_AverageAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -764,11 +764,11 @@ public static ValueTask AverageAwaitAsync(this IAsyncQueryable< 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? s_AverageAwaitWithCancellationAsync__TSource__3__1; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -780,11 +780,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this 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? s_AverageAwaitWithCancellationAsync__TSource__3__2; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -796,11 +796,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this 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? s_AverageAwaitWithCancellationAsync__TSource__3__3; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -812,11 +812,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this 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? s_AverageAwaitWithCancellationAsync__TSource__3__4; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -828,11 +828,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this 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? s_AverageAwaitWithCancellationAsync__TSource__3__5; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -844,11 +844,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this I 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? s_AverageAwaitWithCancellationAsync__TSource__3__6; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -860,11 +860,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this I 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? s_AverageAwaitWithCancellationAsync__TSource__3__7; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -876,11 +876,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this 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? s_AverageAwaitWithCancellationAsync__TSource__3__8; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -892,11 +892,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this 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? s_AverageAwaitWithCancellationAsync__TSource__3__9; - private static MethodInfo AverageAwaitWithCancellationAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -908,11 +908,11 @@ public static ValueTask AverageAwaitWithCancellationAsync(this 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? s_Cast__TResult__1__0; - private static MethodInfo Cast__TResult__1__0(Type TResult) => + 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); + (s_Cast__TResult__1__0 = new Func, IAsyncQueryable>(Cast).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TResult); public static IAsyncQueryable Cast(this IAsyncQueryable source) { @@ -922,11 +922,11 @@ public static IAsyncQueryable Cast(this IAsyncQueryable(Expression.Call(Cast__TResult__1__0(typeof(TResult)), source.Expression)); } - private static MethodInfo s_Concat__TSource__2__0; + private static MethodInfo? s_Concat__TSource__2__0; - private static MethodInfo Concat__TSource__2__0(Type TSource) => + 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); + (s_Concat__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Concat).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Concat(this IAsyncQueryable first, IAsyncEnumerable second) { @@ -938,11 +938,11 @@ public static IAsyncQueryable Concat(this IAsyncQueryable(Expression.Call(Concat__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } - private static MethodInfo s_ContainsAsync__TSource__3__0; + private static MethodInfo? s_ContainsAsync__TSource__3__0; - private static MethodInfo ContainsAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -952,11 +952,11 @@ public static ValueTask ContainsAsync(this IAsyncQueryable(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? s_ContainsAsync__TSource__4__0; - private static MethodInfo ContainsAsync__TSource__4__0(Type TSource) => + 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); + (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) { @@ -966,11 +966,11 @@ public static ValueTask ContainsAsync(this IAsyncQueryable(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? s_CountAsync__TSource__2__0; - private static MethodInfo CountAsync__TSource__2__0(Type TSource) => + 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); + (s_CountAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(CountAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask CountAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -980,11 +980,11 @@ public static ValueTask CountAsync(this IAsyncQueryable s 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? s_CountAsync__TSource__3__0; - private static MethodInfo CountAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -996,11 +996,11 @@ public static ValueTask CountAsync(this IAsyncQueryable s 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? s_CountAwaitAsync__TSource__3__0; - private static MethodInfo CountAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1012,11 +1012,11 @@ public static ValueTask CountAwaitAsync(this IAsyncQueryable(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? s_CountAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo CountAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1028,11 +1028,11 @@ public static ValueTask CountAwaitWithCancellationAsync(this IAsyn 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? s_DefaultIfEmpty__TSource__1__0; - private static MethodInfo DefaultIfEmpty__TSource__1__0(Type TSource) => + 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); + (s_DefaultIfEmpty__TSource__1__0 = new Func, IAsyncQueryable>(DefaultIfEmpty).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DefaultIfEmpty(this IAsyncQueryable source) { @@ -1042,11 +1042,11 @@ public static IAsyncQueryable DefaultIfEmpty(this IAsyncQuerya 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? s_DefaultIfEmpty__TSource__2__0; - private static MethodInfo DefaultIfEmpty__TSource__2__0(Type TSource) => + 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); + (s_DefaultIfEmpty__TSource__2__0 = new Func, object, IAsyncQueryable>(DefaultIfEmpty).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DefaultIfEmpty(this IAsyncQueryable source, TSource defaultValue) { @@ -1056,11 +1056,11 @@ public static IAsyncQueryable DefaultIfEmpty(this IAsyncQuerya 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? s_Distinct__TSource__1__0; - private static MethodInfo Distinct__TSource__1__0(Type TSource) => + 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); + (s_Distinct__TSource__1__0 = new Func, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Distinct(this IAsyncQueryable source) { @@ -1070,11 +1070,11 @@ public static IAsyncQueryable Distinct(this IAsyncQueryable(Expression.Call(Distinct__TSource__1__0(typeof(TSource)), source.Expression)); } - private static MethodInfo s_Distinct__TSource__2__0; + private static MethodInfo? s_Distinct__TSource__2__0; - private static MethodInfo Distinct__TSource__2__0(Type TSource) => + 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); + (s_Distinct__TSource__2__0 = new Func, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Distinct(this IAsyncQueryable source, IEqualityComparer? comparer) { @@ -1084,11 +1084,11 @@ public static IAsyncQueryable Distinct(this IAsyncQueryable(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? s_ElementAtAsync__TSource__3__0; - private static MethodInfo ElementAtAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1098,11 +1098,11 @@ public static ValueTask ElementAtAsync(this IAsyncQueryable(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? s_ElementAtOrDefaultAsync__TSource__3__0; - private static MethodInfo ElementAtOrDefaultAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1112,11 +1112,11 @@ public static ValueTask ElementAtOrDefaultAsync(this IAsyncQue 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? s_Except__TSource__2__0; - private static MethodInfo Except__TSource__2__0(Type TSource) => + 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); + (s_Except__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Except).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Except(this IAsyncQueryable first, IAsyncEnumerable second) { @@ -1128,11 +1128,11 @@ public static IAsyncQueryable Except(this IAsyncQueryable(Expression.Call(Except__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } - private static MethodInfo s_Except__TSource__3__0; + private static MethodInfo? s_Except__TSource__3__0; - private static MethodInfo Except__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1144,11 +1144,11 @@ public static IAsyncQueryable Except(this IAsyncQueryable(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? s_FirstAsync__TSource__2__0; - private static MethodInfo FirstAsync__TSource__2__0(Type TSource) => + 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); + (s_FirstAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(FirstAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -1158,11 +1158,11 @@ public static ValueTask FirstAsync(this IAsyncQueryable(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? s_FirstAsync__TSource__3__0; - private static MethodInfo FirstAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1174,11 +1174,11 @@ public static ValueTask FirstAsync(this IAsyncQueryable(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? s_FirstAwaitAsync__TSource__3__0; - private static MethodInfo FirstAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1190,11 +1190,11 @@ public static ValueTask FirstAwaitAsync(this IAsyncQueryable(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? s_FirstAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo FirstAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1206,11 +1206,11 @@ public static ValueTask FirstAwaitWithCancellationAsync(this I 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? s_FirstOrDefaultAsync__TSource__2__0; - private static MethodInfo FirstOrDefaultAsync__TSource__2__0(Type TSource) => + 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); + (s_FirstOrDefaultAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(FirstOrDefaultAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask FirstOrDefaultAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -1220,11 +1220,11 @@ public static ValueTask FirstOrDefaultAsync(this IAsyncQueryab 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? s_FirstOrDefaultAsync__TSource__3__0; - private static MethodInfo FirstOrDefaultAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1236,11 +1236,11 @@ public static ValueTask FirstOrDefaultAsync(this IAsyncQueryab 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? s_FirstOrDefaultAwaitAsync__TSource__3__0; - private static MethodInfo FirstOrDefaultAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1252,11 +1252,11 @@ public static ValueTask FirstOrDefaultAwaitAsync(this IAsyncQu 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? s_FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1268,11 +1268,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupBy__TSource_TKey__2__0; - private static MethodInfo GroupBy__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -1284,11 +1284,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupBy__TSource_TKey__3__0; - private static MethodInfo GroupBy__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -1300,11 +1300,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupBy__TSource_TKey_TResult__3__0; - private static MethodInfo GroupBy__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) => + 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); + (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) { @@ -1318,11 +1318,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupBy__TSource_TKey_TElement__3__0; - private static MethodInfo GroupBy__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -1336,11 +1336,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupBy__TSource_TKey_TResult__4__0; - private static MethodInfo GroupBy__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) => + 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); + (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) { @@ -1354,11 +1354,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupBy__TSource_TKey_TElement__4__0; - private static MethodInfo GroupBy__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -1372,11 +1372,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? 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) => + 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); + (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) { @@ -1392,11 +1392,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1412,11 +1412,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupByAwait__TSource_TKey__2__0; - private static MethodInfo GroupByAwait__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -1428,11 +1428,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupByAwait__TSource_TKey__3__0; - private static MethodInfo GroupByAwait__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -1444,11 +1444,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupByAwait__TSource_TKey_TResult__3__0; - private static MethodInfo GroupByAwait__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) => + 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); + (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) { @@ -1462,11 +1462,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupByAwait__TSource_TKey_TElement__3__0; - private static MethodInfo GroupByAwait__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -1480,11 +1480,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupByAwait__TSource_TKey_TResult__4__0; - private static MethodInfo GroupByAwait__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) => + 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); + (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) { @@ -1498,11 +1498,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupByAwait__TSource_TKey_TElement__4__0; - private static MethodInfo GroupByAwait__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -1516,11 +1516,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? 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) => + 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); + (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) { @@ -1536,11 +1536,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1556,11 +1556,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupByAwaitWithCancellation__TSource_TKey__2__0; - private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -1572,11 +1572,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupByAwaitWithCancellation__TSource_TKey__3__0; - private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -1588,11 +1588,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0; - private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) => + 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); + (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) { @@ -1606,11 +1606,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0; - private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -1624,11 +1624,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? s_GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0; - private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) => + 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); + (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) { @@ -1642,11 +1642,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0; - private static MethodInfo GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -1660,11 +1660,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync>(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? 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) => + 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); + (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) { @@ -1680,11 +1680,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1700,11 +1700,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1722,11 +1722,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1744,11 +1744,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1766,11 +1766,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1788,11 +1788,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1810,11 +1810,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? 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) => + 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); + (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) { @@ -1832,11 +1832,11 @@ public static ValueTask FirstOrDefaultAwaitWithCancellationAsync(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? s_Intersect__TSource__2__0; - private static MethodInfo Intersect__TSource__2__0(Type TSource) => + 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); + (s_Intersect__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Intersect).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Intersect(this IAsyncQueryable first, IAsyncEnumerable second) { @@ -1848,11 +1848,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(Expression.Call(Intersect__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } - private static MethodInfo s_Intersect__TSource__3__0; + private static MethodInfo? s_Intersect__TSource__3__0; - private static MethodInfo Intersect__TSource__3__0(Type TSource) => + 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); + (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) { @@ -1864,11 +1864,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(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? 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) => + 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); + (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) { @@ -1886,11 +1886,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(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? 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) => + 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); + (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) { @@ -1908,11 +1908,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(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? 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) => + 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); + (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) { @@ -1930,11 +1930,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(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? 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) => + 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); + (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) { @@ -1952,11 +1952,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(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? 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) => + 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); + (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) { @@ -1974,11 +1974,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(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? 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) => + 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); + (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) { @@ -1996,11 +1996,11 @@ public static IAsyncQueryable Intersect(this IAsyncQueryable(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? s_LastAsync__TSource__2__0; - private static MethodInfo LastAsync__TSource__2__0(Type TSource) => + 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); + (s_LastAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(LastAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -2010,11 +2010,11 @@ public static ValueTask LastAsync(this IAsyncQueryable(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? s_LastAsync__TSource__3__0; - private static MethodInfo LastAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2026,11 +2026,11 @@ public static ValueTask LastAsync(this IAsyncQueryable(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? s_LastAwaitAsync__TSource__3__0; - private static MethodInfo LastAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2042,11 +2042,11 @@ public static ValueTask LastAwaitAsync(this IAsyncQueryable(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? s_LastAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo LastAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2058,11 +2058,11 @@ public static ValueTask LastAwaitWithCancellationAsync(this IA 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? s_LastOrDefaultAsync__TSource__2__0; - private static MethodInfo LastOrDefaultAsync__TSource__2__0(Type TSource) => + 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); + (s_LastOrDefaultAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(LastOrDefaultAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LastOrDefaultAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -2072,11 +2072,11 @@ public static ValueTask LastOrDefaultAsync(this IAsyncQueryabl 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? s_LastOrDefaultAsync__TSource__3__0; - private static MethodInfo LastOrDefaultAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2088,11 +2088,11 @@ public static ValueTask LastOrDefaultAsync(this IAsyncQueryabl 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? s_LastOrDefaultAwaitAsync__TSource__3__0; - private static MethodInfo LastOrDefaultAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2104,11 +2104,11 @@ public static ValueTask LastOrDefaultAwaitAsync(this IAsyncQue 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? s_LastOrDefaultAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo LastOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2120,11 +2120,11 @@ public static ValueTask LastOrDefaultAwaitWithCancellationAsync(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? s_LongCountAsync__TSource__2__0; - private static MethodInfo LongCountAsync__TSource__2__0(Type TSource) => + 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); + (s_LongCountAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(LongCountAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask LongCountAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -2134,11 +2134,11 @@ public static ValueTask LongCountAsync(this IAsyncQueryable(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? s_LongCountAsync__TSource__3__0; - private static MethodInfo LongCountAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2150,11 +2150,11 @@ public static ValueTask LongCountAsync(this IAsyncQueryable(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? s_LongCountAwaitAsync__TSource__3__0; - private static MethodInfo LongCountAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2166,11 +2166,11 @@ public static ValueTask LongCountAwaitAsync(this IAsyncQueryable< 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? s_LongCountAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo LongCountAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2182,9 +2182,9 @@ public static ValueTask LongCountAwaitWithCancellationAsync(this 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? s_MaxAsync__2__0; - private static MethodInfo MaxAsync__2__0 => + private static MethodInfo? MaxAsync__2__0 => (s_MaxAsync__2__0 ?? (s_MaxAsync__2__0 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2196,9 +2196,9 @@ public static ValueTask LongCountAwaitWithCancellationAsync(this 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? s_MaxAsync__2__1; - private static MethodInfo MaxAsync__2__1 => + private static MethodInfo? MaxAsync__2__1 => (s_MaxAsync__2__1 ?? (s_MaxAsync__2__1 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2210,9 +2210,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__2__2; - private static MethodInfo MaxAsync__2__2 => + private static MethodInfo? MaxAsync__2__2 => (s_MaxAsync__2__2 ?? (s_MaxAsync__2__2 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2224,9 +2224,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__2__3; - private static MethodInfo MaxAsync__2__3 => + private static MethodInfo? MaxAsync__2__3 => (s_MaxAsync__2__3 ?? (s_MaxAsync__2__3 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2238,9 +2238,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable source, Ca 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? s_MaxAsync__2__4; - private static MethodInfo MaxAsync__2__4 => + private static MethodInfo? MaxAsync__2__4 => (s_MaxAsync__2__4 ?? (s_MaxAsync__2__4 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2252,9 +2252,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable source, Ca 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? s_MaxAsync__2__5; - private static MethodInfo MaxAsync__2__5 => + private static MethodInfo? MaxAsync__2__5 => (s_MaxAsync__2__5 ?? (s_MaxAsync__2__5 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2266,9 +2266,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable source, Canc 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? s_MaxAsync__2__6; - private static MethodInfo MaxAsync__2__6 => + private static MethodInfo? MaxAsync__2__6 => (s_MaxAsync__2__6 ?? (s_MaxAsync__2__6 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2280,9 +2280,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable source, Canc 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? s_MaxAsync__2__7; - private static MethodInfo MaxAsync__2__7 => + private static MethodInfo? MaxAsync__2__7 => (s_MaxAsync__2__7 ?? (s_MaxAsync__2__7 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2294,9 +2294,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable source, Cancella 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? s_MaxAsync__2__8; - private static MethodInfo MaxAsync__2__8 => + private static MethodInfo? MaxAsync__2__8 => (s_MaxAsync__2__8 ?? (s_MaxAsync__2__8 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2308,9 +2308,9 @@ public static ValueTask MaxAsync(this IAsyncQueryable source, Cancella 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? s_MaxAsync__2__9; - private static MethodInfo MaxAsync__2__9 => + private static MethodInfo? MaxAsync__2__9 => (s_MaxAsync__2__9 ?? (s_MaxAsync__2__9 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo())); @@ -2322,11 +2322,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable source, Cancel 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? s_MaxAsync__TSource__2__0; - private static MethodInfo MaxAsync__TSource__2__0(Type TSource) => + 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); + (s_MaxAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -2336,11 +2336,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__TSource__3__0; - private static MethodInfo MaxAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2352,11 +2352,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__TSource__3__1; - private static MethodInfo MaxAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -2368,11 +2368,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__TSource__3__2; - private static MethodInfo MaxAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -2384,11 +2384,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__TSource__3__3; - private static MethodInfo MaxAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -2400,11 +2400,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__TSource__3__4; - private static MethodInfo MaxAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -2416,11 +2416,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable 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? s_MaxAsync__TSource__3__5; - private static MethodInfo MaxAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -2432,11 +2432,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable s 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? s_MaxAsync__TSource__3__6; - private static MethodInfo MaxAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -2448,11 +2448,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable s 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? s_MaxAsync__TSource__3__7; - private static MethodInfo MaxAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -2464,11 +2464,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable sou 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? s_MaxAsync__TSource__3__8; - private static MethodInfo MaxAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -2480,11 +2480,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable sou 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? s_MaxAsync__TSource__3__9; - private static MethodInfo MaxAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -2496,11 +2496,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable so 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? s_MaxAsync__TSource_TResult__3__0; - private static MethodInfo MaxAsync__TSource_TResult__3__0(Type TSource, Type TResult) => + 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); + (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) { @@ -2512,11 +2512,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable so 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? s_MaxAwaitAsync__TSource__3__0; - private static MethodInfo MaxAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2528,11 +2528,11 @@ public static ValueTask MaxAsync(this IAsyncQueryable so 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? s_MaxAwaitAsync__TSource__3__1; - private static MethodInfo MaxAwaitAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -2544,11 +2544,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__2; - private static MethodInfo MaxAwaitAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -2560,11 +2560,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__3; - private static MethodInfo MaxAwaitAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -2576,11 +2576,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__4; - private static MethodInfo MaxAwaitAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -2592,11 +2592,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__5; - private static MethodInfo MaxAwaitAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -2608,11 +2608,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__6; - private static MethodInfo MaxAwaitAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -2624,11 +2624,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__7; - private static MethodInfo MaxAwaitAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -2640,11 +2640,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__8; - private static MethodInfo MaxAwaitAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -2656,11 +2656,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource__3__9; - private static MethodInfo MaxAwaitAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -2672,11 +2672,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitAsync__TSource_TResult__3__0; - private static MethodInfo MaxAwaitAsync__TSource_TResult__3__0(Type TSource, Type TResult) => + 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); + (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) { @@ -2688,11 +2688,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -2704,11 +2704,11 @@ public static ValueTask MaxAwaitAsync(this IAsyncQueryable(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? s_MaxAwaitWithCancellationAsync__TSource__3__1; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -2720,11 +2720,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAs 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? s_MaxAwaitWithCancellationAsync__TSource__3__2; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -2736,11 +2736,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAs 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? s_MaxAwaitWithCancellationAsync__TSource__3__3; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -2752,11 +2752,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsy 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? s_MaxAwaitWithCancellationAsync__TSource__3__4; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -2768,11 +2768,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsy 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? s_MaxAwaitWithCancellationAsync__TSource__3__5; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -2784,11 +2784,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsyn 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? s_MaxAwaitWithCancellationAsync__TSource__3__6; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -2800,11 +2800,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsyn 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? s_MaxAwaitWithCancellationAsync__TSource__3__7; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -2816,11 +2816,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQ 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? s_MaxAwaitWithCancellationAsync__TSource__3__8; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -2832,11 +2832,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsyncQ 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? s_MaxAwaitWithCancellationAsync__TSource__3__9; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -2848,11 +2848,11 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsync 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? s_MaxAwaitWithCancellationAsync__TSource_TResult__3__0; - private static MethodInfo MaxAwaitWithCancellationAsync__TSource_TResult__3__0(Type TSource, Type TResult) => + 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); + (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) { @@ -2864,9 +2864,9 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsync 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? s_MinAsync__2__0; - private static MethodInfo MinAsync__2__0 => + private static MethodInfo? MinAsync__2__0 => (s_MinAsync__2__0 ?? (s_MinAsync__2__0 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2878,9 +2878,9 @@ public static ValueTask MaxAwaitWithCancellationAsync(this IAsync 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? s_MinAsync__2__1; - private static MethodInfo MinAsync__2__1 => + private static MethodInfo? MinAsync__2__1 => (s_MinAsync__2__1 ?? (s_MinAsync__2__1 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2892,9 +2892,9 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__2__2; - private static MethodInfo MinAsync__2__2 => + private static MethodInfo? MinAsync__2__2 => (s_MinAsync__2__2 ?? (s_MinAsync__2__2 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2906,9 +2906,9 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__2__3; - private static MethodInfo MinAsync__2__3 => + private static MethodInfo? MinAsync__2__3 => (s_MinAsync__2__3 ?? (s_MinAsync__2__3 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2920,9 +2920,9 @@ public static ValueTask MinAsync(this IAsyncQueryable source, Ca 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? s_MinAsync__2__4; - private static MethodInfo MinAsync__2__4 => + private static MethodInfo? MinAsync__2__4 => (s_MinAsync__2__4 ?? (s_MinAsync__2__4 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2934,9 +2934,9 @@ public static ValueTask MinAsync(this IAsyncQueryable source, Ca 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? s_MinAsync__2__5; - private static MethodInfo MinAsync__2__5 => + private static MethodInfo? MinAsync__2__5 => (s_MinAsync__2__5 ?? (s_MinAsync__2__5 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2948,9 +2948,9 @@ public static ValueTask MinAsync(this IAsyncQueryable source, Canc 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? s_MinAsync__2__6; - private static MethodInfo MinAsync__2__6 => + private static MethodInfo? MinAsync__2__6 => (s_MinAsync__2__6 ?? (s_MinAsync__2__6 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2962,9 +2962,9 @@ public static ValueTask MinAsync(this IAsyncQueryable source, Canc 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? s_MinAsync__2__7; - private static MethodInfo MinAsync__2__7 => + private static MethodInfo? MinAsync__2__7 => (s_MinAsync__2__7 ?? (s_MinAsync__2__7 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2976,9 +2976,9 @@ public static ValueTask MinAsync(this IAsyncQueryable source, Cancella 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? s_MinAsync__2__8; - private static MethodInfo MinAsync__2__8 => + private static MethodInfo? MinAsync__2__8 => (s_MinAsync__2__8 ?? (s_MinAsync__2__8 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -2990,9 +2990,9 @@ public static ValueTask MinAsync(this IAsyncQueryable source, Cancella 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? s_MinAsync__2__9; - private static MethodInfo MinAsync__2__9 => + private static MethodInfo? MinAsync__2__9 => (s_MinAsync__2__9 ?? (s_MinAsync__2__9 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo())); @@ -3004,11 +3004,11 @@ public static ValueTask MinAsync(this IAsyncQueryable source, Cancel 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? s_MinAsync__TSource__2__0; - private static MethodInfo MinAsync__TSource__2__0(Type TSource) => + 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); + (s_MinAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(MinAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -3018,11 +3018,11 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__TSource__3__0; - private static MethodInfo MinAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -3034,11 +3034,11 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__TSource__3__1; - private static MethodInfo MinAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -3050,11 +3050,11 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__TSource__3__2; - private static MethodInfo MinAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -3066,11 +3066,11 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__TSource__3__3; - private static MethodInfo MinAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -3082,11 +3082,11 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__TSource__3__4; - private static MethodInfo MinAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -3098,11 +3098,11 @@ public static ValueTask MinAsync(this IAsyncQueryable 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? s_MinAsync__TSource__3__5; - private static MethodInfo MinAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -3114,11 +3114,11 @@ public static ValueTask MinAsync(this IAsyncQueryable s 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? s_MinAsync__TSource__3__6; - private static MethodInfo MinAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -3130,11 +3130,11 @@ public static ValueTask MinAsync(this IAsyncQueryable s 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? s_MinAsync__TSource__3__7; - private static MethodInfo MinAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -3146,11 +3146,11 @@ public static ValueTask MinAsync(this IAsyncQueryable sou 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? s_MinAsync__TSource__3__8; - private static MethodInfo MinAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -3162,11 +3162,11 @@ public static ValueTask MinAsync(this IAsyncQueryable sou 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? s_MinAsync__TSource__3__9; - private static MethodInfo MinAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -3178,11 +3178,11 @@ public static ValueTask MinAsync(this IAsyncQueryable so 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? s_MinAsync__TSource_TResult__3__0; - private static MethodInfo MinAsync__TSource_TResult__3__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3194,11 +3194,11 @@ public static ValueTask MinAsync(this IAsyncQueryable so 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? s_MinAwaitAsync__TSource__3__0; - private static MethodInfo MinAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -3210,11 +3210,11 @@ public static ValueTask MinAsync(this IAsyncQueryable so 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? s_MinAwaitAsync__TSource__3__1; - private static MethodInfo MinAwaitAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -3226,11 +3226,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__2; - private static MethodInfo MinAwaitAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -3242,11 +3242,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__3; - private static MethodInfo MinAwaitAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -3258,11 +3258,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__4; - private static MethodInfo MinAwaitAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -3274,11 +3274,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__5; - private static MethodInfo MinAwaitAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -3290,11 +3290,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__6; - private static MethodInfo MinAwaitAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -3306,11 +3306,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__7; - private static MethodInfo MinAwaitAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -3322,11 +3322,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__8; - private static MethodInfo MinAwaitAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -3338,11 +3338,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource__3__9; - private static MethodInfo MinAwaitAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -3354,11 +3354,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitAsync__TSource_TResult__3__0; - private static MethodInfo MinAwaitAsync__TSource_TResult__3__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3370,11 +3370,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -3386,11 +3386,11 @@ public static ValueTask MinAwaitAsync(this IAsyncQueryable(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? s_MinAwaitWithCancellationAsync__TSource__3__1; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -3402,11 +3402,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAs 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? s_MinAwaitWithCancellationAsync__TSource__3__2; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -3418,11 +3418,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAs 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? s_MinAwaitWithCancellationAsync__TSource__3__3; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -3434,11 +3434,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsy 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? s_MinAwaitWithCancellationAsync__TSource__3__4; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -3450,11 +3450,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsy 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? s_MinAwaitWithCancellationAsync__TSource__3__5; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -3466,11 +3466,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsyn 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? s_MinAwaitWithCancellationAsync__TSource__3__6; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -3482,11 +3482,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsyn 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? s_MinAwaitWithCancellationAsync__TSource__3__7; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -3498,11 +3498,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQ 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? s_MinAwaitWithCancellationAsync__TSource__3__8; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -3514,11 +3514,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsyncQ 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? s_MinAwaitWithCancellationAsync__TSource__3__9; - private static MethodInfo MinAwaitWithCancellationAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -3530,11 +3530,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsync 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? s_MinAwaitWithCancellationAsync__TSource_TResult__3__0; - private static MethodInfo MinAwaitWithCancellationAsync__TSource_TResult__3__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3546,11 +3546,11 @@ public static ValueTask MinAwaitWithCancellationAsync(this IAsync 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? s_OfType__TResult__1__0; - private static MethodInfo OfType__TResult__1__0(Type TResult) => + 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); + (s_OfType__TResult__1__0 = new Func, IAsyncQueryable>(OfType).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TResult); public static IAsyncQueryable OfType(this IAsyncQueryable source) { @@ -3560,11 +3560,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable(Expression.Call(OfType__TResult__1__0(typeof(TResult)), source.Expression)); } - private static MethodInfo s_OrderBy__TSource_TKey__2__0; + private static MethodInfo? s_OrderBy__TSource_TKey__2__0; - private static MethodInfo OrderBy__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3576,11 +3576,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderBy__TSource_TKey__3__0; - private static MethodInfo OrderBy__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3592,11 +3592,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByAwait__TSource_TKey__2__0; - private static MethodInfo OrderByAwait__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3608,11 +3608,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByAwait__TSource_TKey__3__0; - private static MethodInfo OrderByAwait__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3624,11 +3624,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByAwaitWithCancellation__TSource_TKey__2__0; - private static MethodInfo OrderByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3640,11 +3640,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByAwaitWithCancellation__TSource_TKey__3__0; - private static MethodInfo OrderByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3656,11 +3656,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByDescending__TSource_TKey__2__0; - private static MethodInfo OrderByDescending__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3672,11 +3672,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByDescending__TSource_TKey__3__0; - private static MethodInfo OrderByDescending__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3688,11 +3688,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByDescendingAwait__TSource_TKey__2__0; - private static MethodInfo OrderByDescendingAwait__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3704,11 +3704,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByDescendingAwait__TSource_TKey__3__0; - private static MethodInfo OrderByDescendingAwait__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3720,11 +3720,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0; - private static MethodInfo OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3736,11 +3736,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0; - private static MethodInfo OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -3752,11 +3752,11 @@ public static IAsyncQueryable OfType(this IAsyncQueryable)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? s_Prepend__TSource__2__0; - private static MethodInfo Prepend__TSource__2__0(Type TSource) => + 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); + (s_Prepend__TSource__2__0 = new Func, object, IAsyncQueryable>(Prepend).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Prepend(this IAsyncQueryable source, TSource element) { @@ -3766,11 +3766,11 @@ public static IAsyncQueryable Prepend(this IAsyncQueryable(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? s_Reverse__TSource__1__0; - private static MethodInfo Reverse__TSource__1__0(Type TSource) => + 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); + (s_Reverse__TSource__1__0 = new Func, IAsyncQueryable>(Reverse).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Reverse(this IAsyncQueryable source) { @@ -3780,11 +3780,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(Expression.Call(Reverse__TSource__1__0(typeof(TSource)), source.Expression)); } - private static MethodInfo s_Select__TSource_TResult__2__0; + private static MethodInfo? s_Select__TSource_TResult__2__0; - private static MethodInfo Select__TSource_TResult__2__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3796,11 +3796,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_Select__TSource_TResult__2__1; - private static MethodInfo Select__TSource_TResult__2__1(Type TSource, Type TResult) => + 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); + (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) { @@ -3812,11 +3812,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectAwait__TSource_TResult__2__0; - private static MethodInfo SelectAwait__TSource_TResult__2__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3828,11 +3828,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectAwait__TSource_TResult__2__1; - private static MethodInfo SelectAwait__TSource_TResult__2__1(Type TSource, Type TResult) => + 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); + (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) { @@ -3844,11 +3844,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectAwaitWithCancellation__TSource_TResult__2__0; - private static MethodInfo SelectAwaitWithCancellation__TSource_TResult__2__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3860,11 +3860,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectAwaitWithCancellation__TSource_TResult__2__1; - private static MethodInfo SelectAwaitWithCancellation__TSource_TResult__2__1(Type TSource, Type TResult) => + 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); + (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) { @@ -3876,11 +3876,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectMany__TSource_TResult__2__0; - private static MethodInfo SelectMany__TSource_TResult__2__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3892,11 +3892,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectMany__TSource_TResult__2__1; - private static MethodInfo SelectMany__TSource_TResult__2__1(Type TSource, Type TResult) => + 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); + (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) { @@ -3908,11 +3908,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectMany__TSource_TCollection_TResult__3__0; - private static MethodInfo SelectMany__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) => + 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); + (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) { @@ -3926,11 +3926,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectMany__TSource_TCollection_TResult__3__1; - private static MethodInfo SelectMany__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) => + 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); + (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) { @@ -3944,11 +3944,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwait__TSource_TResult__2__0; - private static MethodInfo SelectManyAwait__TSource_TResult__2__0(Type TSource, Type TResult) => + 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); + (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) { @@ -3960,11 +3960,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwait__TSource_TResult__2__1; - private static MethodInfo SelectManyAwait__TSource_TResult__2__1(Type TSource, Type TResult) => + 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); + (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) { @@ -3976,11 +3976,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwait__TSource_TCollection_TResult__3__0; - private static MethodInfo SelectManyAwait__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) => + 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); + (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) { @@ -3994,11 +3994,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwait__TSource_TCollection_TResult__3__1; - private static MethodInfo SelectManyAwait__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) => + 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); + (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) { @@ -4012,11 +4012,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwaitWithCancellation__TSource_TResult__2__0; - private static MethodInfo SelectManyAwaitWithCancellation__TSource_TResult__2__0(Type TSource, Type TResult) => + 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); + (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) { @@ -4028,11 +4028,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwaitWithCancellation__TSource_TResult__2__1; - private static MethodInfo SelectManyAwaitWithCancellation__TSource_TResult__2__1(Type TSource, Type TResult) => + 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); + (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) { @@ -4044,11 +4044,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0; - private static MethodInfo SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) => + 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); + (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) { @@ -4062,11 +4062,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1; - private static MethodInfo SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) => + 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); + (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) { @@ -4080,11 +4080,11 @@ public static IAsyncQueryable Reverse(this IAsyncQueryable(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? s_SequenceEqualAsync__TSource__3__0; - private static MethodInfo SequenceEqualAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4096,11 +4096,11 @@ public static ValueTask SequenceEqualAsync(this IAsyncQueryable(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? s_SequenceEqualAsync__TSource__4__0; - private static MethodInfo SequenceEqualAsync__TSource__4__0(Type TSource) => + 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); + (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) { @@ -4112,11 +4112,11 @@ public static ValueTask SequenceEqualAsync(this IAsyncQueryable(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? s_SingleAsync__TSource__2__0; - private static MethodInfo SingleAsync__TSource__2__0(Type TSource) => + 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); + (s_SingleAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(SingleAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -4126,11 +4126,11 @@ public static ValueTask SingleAsync(this IAsyncQueryable(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? s_SingleAsync__TSource__3__0; - private static MethodInfo SingleAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4142,11 +4142,11 @@ public static ValueTask SingleAsync(this IAsyncQueryable(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? s_SingleAwaitAsync__TSource__3__0; - private static MethodInfo SingleAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4158,11 +4158,11 @@ public static ValueTask SingleAwaitAsync(this IAsyncQueryable< 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? s_SingleAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo SingleAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4174,11 +4174,11 @@ public static ValueTask SingleAwaitWithCancellationAsync(this 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? s_SingleOrDefaultAsync__TSource__2__0; - private static MethodInfo SingleOrDefaultAsync__TSource__2__0(Type TSource) => + 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); + (s_SingleOrDefaultAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(SingleOrDefaultAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask SingleOrDefaultAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -4188,11 +4188,11 @@ public static ValueTask SingleOrDefaultAsync(this IAsyncQuerya 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? s_SingleOrDefaultAsync__TSource__3__0; - private static MethodInfo SingleOrDefaultAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4204,11 +4204,11 @@ public static ValueTask SingleOrDefaultAsync(this IAsyncQuerya 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? s_SingleOrDefaultAwaitAsync__TSource__3__0; - private static MethodInfo SingleOrDefaultAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4220,11 +4220,11 @@ public static ValueTask SingleOrDefaultAwaitAsync(this IAsyncQ 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? s_SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4236,11 +4236,11 @@ public static ValueTask SingleOrDefaultAwaitWithCancellationAsync(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? s_Skip__TSource__2__0; - private static MethodInfo Skip__TSource__2__0(Type TSource) => + 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); + (s_Skip__TSource__2__0 = new Func, int, IAsyncQueryable>(Skip).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Skip(this IAsyncQueryable source, int count) { @@ -4250,11 +4250,11 @@ public static IAsyncQueryable Skip(this IAsyncQueryable(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? s_SkipLast__TSource__2__0; - private static MethodInfo SkipLast__TSource__2__0(Type TSource) => + 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); + (s_SkipLast__TSource__2__0 = new Func, int, IAsyncQueryable>(SkipLast).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipLast(this IAsyncQueryable source, int count) { @@ -4264,11 +4264,11 @@ public static IAsyncQueryable SkipLast(this IAsyncQueryable(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? s_SkipWhile__TSource__2__0; - private static MethodInfo SkipWhile__TSource__2__0(Type TSource) => + 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); + (s_SkipWhile__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(SkipWhile).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhile(this IAsyncQueryable source, Expression> predicate) { @@ -4280,11 +4280,11 @@ public static IAsyncQueryable SkipWhile(this IAsyncQueryable(Expression.Call(SkipWhile__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } - private static MethodInfo s_SkipWhile__TSource__2__1; + private static MethodInfo? s_SkipWhile__TSource__2__1; - private static MethodInfo SkipWhile__TSource__2__1(Type TSource) => + 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); + (s_SkipWhile__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(SkipWhile).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhile(this IAsyncQueryable source, Expression> predicate) { @@ -4296,11 +4296,11 @@ public static IAsyncQueryable SkipWhile(this IAsyncQueryable(Expression.Call(SkipWhile__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } - private static MethodInfo s_SkipWhileAwait__TSource__2__0; + private static MethodInfo? s_SkipWhileAwait__TSource__2__0; - private static MethodInfo SkipWhileAwait__TSource__2__0(Type TSource) => + 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); + (s_SkipWhileAwait__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwait).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwait(this IAsyncQueryable source, Expression>> predicate) { @@ -4312,11 +4312,11 @@ public static IAsyncQueryable SkipWhileAwait(this IAsyncQuerya 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? s_SkipWhileAwait__TSource__2__1; - private static MethodInfo SkipWhileAwait__TSource__2__1(Type TSource) => + 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); + (s_SkipWhileAwait__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwait).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwait(this IAsyncQueryable source, Expression>> predicate) { @@ -4328,11 +4328,11 @@ public static IAsyncQueryable SkipWhileAwait(this IAsyncQuerya 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? s_SkipWhileAwaitWithCancellation__TSource__2__0; - private static MethodInfo SkipWhileAwaitWithCancellation__TSource__2__0(Type TSource) => + 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); + (s_SkipWhileAwaitWithCancellation__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwaitWithCancellation).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { @@ -4344,11 +4344,11 @@ public static IAsyncQueryable SkipWhileAwaitWithCancellation(t 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? s_SkipWhileAwaitWithCancellation__TSource__2__1; - private static MethodInfo SkipWhileAwaitWithCancellation__TSource__2__1(Type TSource) => + 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); + (s_SkipWhileAwaitWithCancellation__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(SkipWhileAwaitWithCancellation).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable SkipWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { @@ -4360,9 +4360,9 @@ public static IAsyncQueryable SkipWhileAwaitWithCancellation(t 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? s_SumAsync__2__0; - private static MethodInfo SumAsync__2__0 => + private static MethodInfo? SumAsync__2__0 => (s_SumAsync__2__0 ?? (s_SumAsync__2__0 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4374,9 +4374,9 @@ public static IAsyncQueryable SkipWhileAwaitWithCancellation(t 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? s_SumAsync__2__1; - private static MethodInfo SumAsync__2__1 => + private static MethodInfo? SumAsync__2__1 => (s_SumAsync__2__1 ?? (s_SumAsync__2__1 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4388,9 +4388,9 @@ public static ValueTask SumAsync(this IAsyncQueryable 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? s_SumAsync__2__2; - private static MethodInfo SumAsync__2__2 => + private static MethodInfo? SumAsync__2__2 => (s_SumAsync__2__2 ?? (s_SumAsync__2__2 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4402,9 +4402,9 @@ public static ValueTask SumAsync(this IAsyncQueryable 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? s_SumAsync__2__3; - private static MethodInfo SumAsync__2__3 => + private static MethodInfo? SumAsync__2__3 => (s_SumAsync__2__3 ?? (s_SumAsync__2__3 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4416,9 +4416,9 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Ca 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? s_SumAsync__2__4; - private static MethodInfo SumAsync__2__4 => + private static MethodInfo? SumAsync__2__4 => (s_SumAsync__2__4 ?? (s_SumAsync__2__4 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4430,9 +4430,9 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Ca 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? s_SumAsync__2__5; - private static MethodInfo SumAsync__2__5 => + private static MethodInfo? SumAsync__2__5 => (s_SumAsync__2__5 ?? (s_SumAsync__2__5 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4444,9 +4444,9 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Canc 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? s_SumAsync__2__6; - private static MethodInfo SumAsync__2__6 => + private static MethodInfo? SumAsync__2__6 => (s_SumAsync__2__6 ?? (s_SumAsync__2__6 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4458,9 +4458,9 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Canc 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? s_SumAsync__2__7; - private static MethodInfo SumAsync__2__7 => + private static MethodInfo? SumAsync__2__7 => (s_SumAsync__2__7 ?? (s_SumAsync__2__7 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4472,9 +4472,9 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Cancella 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? s_SumAsync__2__8; - private static MethodInfo SumAsync__2__8 => + private static MethodInfo? SumAsync__2__8 => (s_SumAsync__2__8 ?? (s_SumAsync__2__8 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4486,9 +4486,9 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Cancella 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? s_SumAsync__2__9; - private static MethodInfo SumAsync__2__9 => + private static MethodInfo? SumAsync__2__9 => (s_SumAsync__2__9 ?? (s_SumAsync__2__9 = new Func, CancellationToken, ValueTask>(SumAsync).GetMethodInfo())); @@ -4500,11 +4500,11 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Cancel 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? s_SumAsync__TSource__3__0; - private static MethodInfo SumAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4516,11 +4516,11 @@ public static ValueTask SumAsync(this IAsyncQueryable source, Cancel 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? s_SumAsync__TSource__3__1; - private static MethodInfo SumAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -4532,11 +4532,11 @@ public static ValueTask SumAsync(this IAsyncQueryable 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? s_SumAsync__TSource__3__2; - private static MethodInfo SumAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -4548,11 +4548,11 @@ public static ValueTask SumAsync(this IAsyncQueryable 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? s_SumAsync__TSource__3__3; - private static MethodInfo SumAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -4564,11 +4564,11 @@ public static ValueTask SumAsync(this IAsyncQueryable 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? s_SumAsync__TSource__3__4; - private static MethodInfo SumAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -4580,11 +4580,11 @@ public static ValueTask SumAsync(this IAsyncQueryable 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? s_SumAsync__TSource__3__5; - private static MethodInfo SumAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -4596,11 +4596,11 @@ public static ValueTask SumAsync(this IAsyncQueryable s 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? s_SumAsync__TSource__3__6; - private static MethodInfo SumAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -4612,11 +4612,11 @@ public static ValueTask SumAsync(this IAsyncQueryable s 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? s_SumAsync__TSource__3__7; - private static MethodInfo SumAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -4628,11 +4628,11 @@ public static ValueTask SumAsync(this IAsyncQueryable sou 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? s_SumAsync__TSource__3__8; - private static MethodInfo SumAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -4644,11 +4644,11 @@ public static ValueTask SumAsync(this IAsyncQueryable sou 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? s_SumAsync__TSource__3__9; - private static MethodInfo SumAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -4660,11 +4660,11 @@ public static ValueTask SumAsync(this IAsyncQueryable so 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? s_SumAwaitAsync__TSource__3__0; - private static MethodInfo SumAwaitAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4676,11 +4676,11 @@ public static ValueTask SumAsync(this IAsyncQueryable so 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? s_SumAwaitAsync__TSource__3__1; - private static MethodInfo SumAwaitAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -4692,11 +4692,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__2; - private static MethodInfo SumAwaitAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -4708,11 +4708,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__3; - private static MethodInfo SumAwaitAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -4724,11 +4724,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__4; - private static MethodInfo SumAwaitAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -4740,11 +4740,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__5; - private static MethodInfo SumAwaitAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -4756,11 +4756,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__6; - private static MethodInfo SumAwaitAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -4772,11 +4772,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__7; - private static MethodInfo SumAwaitAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -4788,11 +4788,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__8; - private static MethodInfo SumAwaitAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -4804,11 +4804,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitAsync__TSource__3__9; - private static MethodInfo SumAwaitAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -4820,11 +4820,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitWithCancellationAsync__TSource__3__0; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -4836,11 +4836,11 @@ public static ValueTask SumAwaitAsync(this IAsyncQueryable(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? s_SumAwaitWithCancellationAsync__TSource__3__1; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__1(Type TSource) => + 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); + (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) { @@ -4852,11 +4852,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAs 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? s_SumAwaitWithCancellationAsync__TSource__3__2; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__2(Type TSource) => + 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); + (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) { @@ -4868,11 +4868,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAs 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? s_SumAwaitWithCancellationAsync__TSource__3__3; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__3(Type TSource) => + 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); + (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) { @@ -4884,11 +4884,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAsy 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? s_SumAwaitWithCancellationAsync__TSource__3__4; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__4(Type TSource) => + 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); + (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) { @@ -4900,11 +4900,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAsy 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? s_SumAwaitWithCancellationAsync__TSource__3__5; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__5(Type TSource) => + 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); + (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) { @@ -4916,11 +4916,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAsyn 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? s_SumAwaitWithCancellationAsync__TSource__3__6; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__6(Type TSource) => + 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); + (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) { @@ -4932,11 +4932,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAsyn 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? s_SumAwaitWithCancellationAsync__TSource__3__7; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__7(Type TSource) => + 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); + (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) { @@ -4948,11 +4948,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQ 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? s_SumAwaitWithCancellationAsync__TSource__3__8; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__8(Type TSource) => + 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); + (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) { @@ -4964,11 +4964,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAsyncQ 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? s_SumAwaitWithCancellationAsync__TSource__3__9; - private static MethodInfo SumAwaitWithCancellationAsync__TSource__3__9(Type TSource) => + 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); + (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) { @@ -4980,11 +4980,11 @@ public static ValueTask SumAwaitWithCancellationAsync(this IAsync 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? s_Take__TSource__2__0; - private static MethodInfo Take__TSource__2__0(Type TSource) => + 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); + (s_Take__TSource__2__0 = new Func, int, IAsyncQueryable>(Take).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Take(this IAsyncQueryable source, int count) { @@ -4994,11 +4994,11 @@ public static IAsyncQueryable Take(this IAsyncQueryable(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? s_TakeLast__TSource__2__0; - private static MethodInfo TakeLast__TSource__2__0(Type TSource) => + 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); + (s_TakeLast__TSource__2__0 = new Func, int, IAsyncQueryable>(TakeLast).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeLast(this IAsyncQueryable source, int count) { @@ -5008,11 +5008,11 @@ public static IAsyncQueryable TakeLast(this IAsyncQueryable(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? s_TakeWhile__TSource__2__0; - private static MethodInfo TakeWhile__TSource__2__0(Type TSource) => + 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); + (s_TakeWhile__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(TakeWhile).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhile(this IAsyncQueryable source, Expression> predicate) { @@ -5024,11 +5024,11 @@ public static IAsyncQueryable TakeWhile(this IAsyncQueryable(Expression.Call(TakeWhile__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } - private static MethodInfo s_TakeWhile__TSource__2__1; + private static MethodInfo? s_TakeWhile__TSource__2__1; - private static MethodInfo TakeWhile__TSource__2__1(Type TSource) => + 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); + (s_TakeWhile__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(TakeWhile).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhile(this IAsyncQueryable source, Expression> predicate) { @@ -5040,11 +5040,11 @@ public static IAsyncQueryable TakeWhile(this IAsyncQueryable(Expression.Call(TakeWhile__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } - private static MethodInfo s_TakeWhileAwait__TSource__2__0; + private static MethodInfo? s_TakeWhileAwait__TSource__2__0; - private static MethodInfo TakeWhileAwait__TSource__2__0(Type TSource) => + 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); + (s_TakeWhileAwait__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwait).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwait(this IAsyncQueryable source, Expression>> predicate) { @@ -5056,11 +5056,11 @@ public static IAsyncQueryable TakeWhileAwait(this IAsyncQuerya 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? s_TakeWhileAwait__TSource__2__1; - private static MethodInfo TakeWhileAwait__TSource__2__1(Type TSource) => + 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); + (s_TakeWhileAwait__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwait).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwait(this IAsyncQueryable source, Expression>> predicate) { @@ -5072,11 +5072,11 @@ public static IAsyncQueryable TakeWhileAwait(this IAsyncQuerya 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? s_TakeWhileAwaitWithCancellation__TSource__2__0; - private static MethodInfo TakeWhileAwaitWithCancellation__TSource__2__0(Type TSource) => + 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); + (s_TakeWhileAwaitWithCancellation__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwaitWithCancellation).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { @@ -5088,11 +5088,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_TakeWhileAwaitWithCancellation__TSource__2__1; - private static MethodInfo TakeWhileAwaitWithCancellation__TSource__2__1(Type TSource) => + 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); + (s_TakeWhileAwaitWithCancellation__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(TakeWhileAwaitWithCancellation).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable TakeWhileAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { @@ -5104,11 +5104,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenBy__TSource_TKey__2__0; - private static MethodInfo ThenBy__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5120,11 +5120,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenBy__TSource_TKey__3__0; - private static MethodInfo ThenBy__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5136,11 +5136,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByAwait__TSource_TKey__2__0; - private static MethodInfo ThenByAwait__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5152,11 +5152,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByAwait__TSource_TKey__3__0; - private static MethodInfo ThenByAwait__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5168,11 +5168,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByAwaitWithCancellation__TSource_TKey__2__0; - private static MethodInfo ThenByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5184,11 +5184,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByAwaitWithCancellation__TSource_TKey__3__0; - private static MethodInfo ThenByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5200,11 +5200,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByDescending__TSource_TKey__2__0; - private static MethodInfo ThenByDescending__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5216,11 +5216,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByDescending__TSource_TKey__3__0; - private static MethodInfo ThenByDescending__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5232,11 +5232,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByDescendingAwait__TSource_TKey__2__0; - private static MethodInfo ThenByDescendingAwait__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5248,11 +5248,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByDescendingAwait__TSource_TKey__3__0; - private static MethodInfo ThenByDescendingAwait__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5264,11 +5264,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0; - private static MethodInfo ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5280,11 +5280,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0; - private static MethodInfo ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5296,11 +5296,11 @@ public static IAsyncQueryable TakeWhileAwaitWithCancellation(t 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? s_ToArrayAsync__TSource__2__0; - private static MethodInfo ToArrayAsync__TSource__2__0(Type TSource) => + 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); + (s_ToArrayAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(ToArrayAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask ToArrayAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -5310,13 +5310,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable(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? s_ToDictionaryAsync__TSource_TKey__3__0; - private static MethodInfo ToDictionaryAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) + public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5326,13 +5326,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAsync__TSource_TKey__4__0; - private static MethodInfo ToDictionaryAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + 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); + (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) + public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5342,13 +5342,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAsync__TSource_TKey_TElement__4__0; - private static MethodInfo ToDictionaryAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) + public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5360,13 +5360,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAsync__TSource_TKey_TElement__5__0; - private static MethodInfo ToDictionaryAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) + public static ValueTask> ToDictionaryAsync(this IAsyncQueryable source, Expression> keySelector, Expression> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5378,13 +5378,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitAsync__TSource_TKey__3__0; - private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5394,13 +5394,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitAsync__TSource_TKey__4__0; - private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5410,13 +5410,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0; - private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5428,13 +5428,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0; - private static MethodInfo ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5446,13 +5446,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0; - private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5462,13 +5462,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0; - private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5478,13 +5478,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0; - private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5496,13 +5496,13 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0; - private static MethodInfo ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncQueryable source, Expression>> keySelector, Expression>> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw new ArgumentNullException(nameof(source)); @@ -5514,11 +5514,11 @@ public static ValueTask ToArrayAsync(this IAsyncQueryable>(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? s_ToHashSetAsync__TSource__2__0; - private static MethodInfo ToHashSetAsync__TSource__2__0(Type TSource) => + 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); + (s_ToHashSetAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>>(ToHashSetAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask> ToHashSetAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -5528,11 +5528,11 @@ public static ValueTask> ToHashSetAsync(this IAsyncQue 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? s_ToHashSetAsync__TSource__3__0; - private static MethodInfo ToHashSetAsync__TSource__3__0(Type TSource) => + 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); + (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) { @@ -5542,11 +5542,11 @@ public static ValueTask> ToHashSetAsync(this IAsyncQue 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? s_ToListAsync__TSource__2__0; - private static MethodInfo ToListAsync__TSource__2__0(Type TSource) => + 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); + (s_ToListAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>>(ToListAsync).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask> ToListAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { @@ -5556,11 +5556,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAsync__TSource_TKey__3__0; - private static MethodInfo ToLookupAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5572,11 +5572,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAsync__TSource_TKey__4__0; - private static MethodInfo ToLookupAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5588,11 +5588,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAsync__TSource_TKey_TElement__4__0; - private static MethodInfo ToLookupAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -5606,11 +5606,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAsync__TSource_TKey_TElement__5__0; - private static MethodInfo ToLookupAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -5624,11 +5624,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitAsync__TSource_TKey__3__0; - private static MethodInfo ToLookupAwaitAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5640,11 +5640,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitAsync__TSource_TKey__4__0; - private static MethodInfo ToLookupAwaitAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5656,11 +5656,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitAsync__TSource_TKey_TElement__4__0; - private static MethodInfo ToLookupAwaitAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -5674,11 +5674,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitAsync__TSource_TKey_TElement__5__0; - private static MethodInfo ToLookupAwaitAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -5692,11 +5692,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0; - private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5708,11 +5708,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0; - private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0(Type TSource, Type TKey) => + 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); + (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) { @@ -5724,11 +5724,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0; - private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -5742,11 +5742,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0; - private static MethodInfo ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) => + 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); + (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) { @@ -5760,11 +5760,11 @@ public static ValueTask> ToListAsync(this IAsyncQueryable 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? s_Union__TSource__2__0; - private static MethodInfo Union__TSource__2__0(Type TSource) => + 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); + (s_Union__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Union).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Union(this IAsyncQueryable first, IAsyncEnumerable second) { @@ -5776,11 +5776,11 @@ public static IAsyncQueryable Union(this IAsyncQueryable(Expression.Call(Union__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } - private static MethodInfo s_Union__TSource__3__0; + private static MethodInfo? s_Union__TSource__3__0; - private static MethodInfo Union__TSource__3__0(Type TSource) => + 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); + (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) { @@ -5792,11 +5792,11 @@ public static IAsyncQueryable Union(this IAsyncQueryable(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? s_Where__TSource__2__0; - private static MethodInfo Where__TSource__2__0(Type TSource) => + 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); + (s_Where__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(Where).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Where(this IAsyncQueryable source, Expression> predicate) { @@ -5808,11 +5808,11 @@ public static IAsyncQueryable Where(this IAsyncQueryable(Expression.Call(Where__TSource__2__0(typeof(TSource)), source.Expression, predicate)); } - private static MethodInfo s_Where__TSource__2__1; + private static MethodInfo? s_Where__TSource__2__1; - private static MethodInfo Where__TSource__2__1(Type TSource) => + 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); + (s_Where__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Where).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Where(this IAsyncQueryable source, Expression> predicate) { @@ -5824,11 +5824,11 @@ public static IAsyncQueryable Where(this IAsyncQueryable(Expression.Call(Where__TSource__2__1(typeof(TSource)), source.Expression, predicate)); } - private static MethodInfo s_WhereAwait__TSource__2__0; + private static MethodInfo? s_WhereAwait__TSource__2__0; - private static MethodInfo WhereAwait__TSource__2__0(Type TSource) => + 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); + (s_WhereAwait__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(WhereAwait).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwait(this IAsyncQueryable source, Expression>> predicate) { @@ -5840,11 +5840,11 @@ public static IAsyncQueryable WhereAwait(this IAsyncQueryable< 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? s_WhereAwait__TSource__2__1; - private static MethodInfo WhereAwait__TSource__2__1(Type TSource) => + 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); + (s_WhereAwait__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(WhereAwait).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwait(this IAsyncQueryable source, Expression>> predicate) { @@ -5856,11 +5856,11 @@ public static IAsyncQueryable WhereAwait(this IAsyncQueryable< 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? s_WhereAwaitWithCancellation__TSource__2__0; - private static MethodInfo WhereAwaitWithCancellation__TSource__2__0(Type TSource) => + 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); + (s_WhereAwaitWithCancellation__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(WhereAwaitWithCancellation).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { @@ -5872,11 +5872,11 @@ public static IAsyncQueryable WhereAwaitWithCancellation(this 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? s_WhereAwaitWithCancellation__TSource__2__1; - private static MethodInfo WhereAwaitWithCancellation__TSource__2__1(Type TSource) => + 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); + (s_WhereAwaitWithCancellation__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(WhereAwaitWithCancellation).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable WhereAwaitWithCancellation(this IAsyncQueryable source, Expression>> predicate) { @@ -5888,11 +5888,11 @@ public static IAsyncQueryable WhereAwaitWithCancellation(this 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? s_Zip__TFirst_TSecond_TResult__3__0; - private static MethodInfo Zip__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) => + 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); + (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) { @@ -5906,11 +5906,11 @@ public static IAsyncQueryable WhereAwaitWithCancellation(this 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? s_ZipAwait__TFirst_TSecond_TResult__3__0; - private static MethodInfo ZipAwait__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) => + 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); + (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) { @@ -5924,11 +5924,11 @@ public static IAsyncQueryable WhereAwaitWithCancellation(this 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? s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0; - private static MethodInfo ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) => + 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); + (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) { diff --git a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.cs b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.cs index a0aeac1b26..f0a0107bcb 100644 --- a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.cs +++ b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.cs @@ -35,11 +35,11 @@ public static IAsyncQueryable AsAsyncQueryable(this IAsyncEn } #if HAS_VALUETUPLE - private static MethodInfo s_Zip__TFirst_TSecond__2__0; + private static MethodInfo? s_Zip__TFirst_TSecond__2__0; private static MethodInfo Zip__TFirst_TSecond__2__0(Type TFirst, Type TSecond) => (s_Zip__TFirst_TSecond__2__0 ?? - (s_Zip__TFirst_TSecond__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>>(Zip).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond); + (s_Zip__TFirst_TSecond__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>>(Zip).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond); public static IAsyncQueryable<(TFirst First, TSecond Second)> Zip(this IAsyncQueryable first, IAsyncEnumerable second) { diff --git a/Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj b/Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj index 2c26aab8ad..b9e3d86ed8 100644 --- a/Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj +++ b/Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj @@ -2,17 +2,15 @@ netcoreapp2.1;net461;netcoreapp3.0 - $(NoWarn);CS0618 + $(NoWarn);CS0618;CS8603;CS8625 - PreserveNewest - True @@ -44,7 +42,6 @@ - diff --git a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/GroupBy.cs b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/GroupBy.cs index c3249c3221..cbe3ab5365 100644 --- a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/GroupBy.cs +++ b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/GroupBy.cs @@ -833,7 +833,7 @@ public bool Equals(Kvp other) return string.Equals(Key, other.Key) && Item == other.Item; } - public override bool Equals(object obj) + public override bool Equals(object? obj) { if (obj is null) return false; if (ReferenceEquals(this, obj)) return true; diff --git a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/Join.cs b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/Join.cs index affd94d1c7..72bbbefe4d 100644 --- a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/Join.cs +++ b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/Join.cs @@ -231,19 +231,19 @@ public async Task Join12() public class Customer { - public string CustomerId { get; set; } + public string? CustomerId { get; set; } } public class Order { public int OrderId { get; set; } - public string CustomerId { get; set; } + public string? CustomerId { get; set; } } public class CustomerOrder : IEquatable { public int OrderId { get; set; } - public string CustomerId { get; set; } + public string? CustomerId { get; set; } public bool Equals(CustomerOrder other) { @@ -252,7 +252,7 @@ public bool Equals(CustomerOrder other) return OrderId == other.OrderId && string.Equals(CustomerId, other.CustomerId); } - public override bool Equals(object obj) + public override bool Equals(object? obj) { if (obj is null) return false; if (ReferenceEquals(this, obj)) return true; diff --git a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToAsyncEnumerable.cs b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToAsyncEnumerable.cs index 793046d5e6..f1673e41df 100644 --- a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToAsyncEnumerable.cs +++ b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToAsyncEnumerable.cs @@ -177,7 +177,7 @@ public void ToAsyncEnumerable_Enumerable_HashSet_ICollection() Assert.NotNull(xc); - Assert.False(xc.IsReadOnly); + Assert.False(xc!.IsReadOnly); xc.Add(5); @@ -202,7 +202,7 @@ public void ToAsyncEnumerable_Enumerable_List_IList() Assert.NotNull(xl); - Assert.False(xl.IsReadOnly); + Assert.False(xl!.IsReadOnly); xl.Add(5); diff --git a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToLookup.cs b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToLookup.cs index f7b2cd86ea..bd821fa50f 100644 --- a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToLookup.cs +++ b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToLookup.cs @@ -136,8 +136,11 @@ public async Task ToLookup8Async() var xs = new[] { 1, 4, 2 }.ToAsyncEnumerable(); var res = await xs.ToLookupAsync(x => x % 2); #pragma warning disable IDE0007 // Use implicit type - foreach (IGrouping g in (IEnumerable)res) - Assert.True(g.Key == 0 || g.Key == 1); + foreach (IGrouping? g in (IEnumerable)res) + { + Assert.NotNull(g); + Assert.True(g!.Key == 0 || g!.Key == 1); + } #pragma warning restore IDE0007 // Use implicit type } diff --git a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToObservable.cs b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToObservable.cs index 27dc41a24f..57c717feb5 100644 --- a/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToObservable.cs +++ b/Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToObservable.cs @@ -194,7 +194,8 @@ public void ToObservable_DisposesEnumeratorWhenSubscriptionIsDisposed() .Subscribe(new MyObserver( x => { - subscription.Dispose(); + Assert.NotNull(subscription); + subscription!.Dispose(); }, ex => { @@ -242,7 +243,8 @@ public void ToObservable_DesNotCallMoveNextAgainWhenSubscriptionIsDisposed() .Subscribe(new MyObserver( x => { - subscription.Dispose(); + Assert.NotNull(subscription); + subscription!.Dispose(); }, ex => { diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.cs index e16e5c343d..fb8e34cae9 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.cs @@ -98,10 +98,10 @@ partial class AsyncEnumerable public static IOrderedAsyncEnumerable ThenBy(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByAwaitCore(source, keySelector, comparer); public static IOrderedAsyncEnumerable ThenByDescending(this IOrderedAsyncEnumerable source, Func> keySelector) => ThenByDescendingAwaitCore(source, keySelector); public static IOrderedAsyncEnumerable ThenByDescending(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByDescendingAwaitCore(source, keySelector, comparer); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, comparer, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); public static ValueTask> ToLookupAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToLookupAwaitAsyncCore(source, keySelector, cancellationToken); public static ValueTask> ToLookupAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToLookupAwaitAsyncCore(source, keySelector, elementSelector, cancellationToken); public static ValueTask> ToLookupAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToLookupAwaitAsyncCore(source, keySelector, comparer, cancellationToken); @@ -198,10 +198,10 @@ partial class AsyncEnumerable public static IOrderedAsyncEnumerable ThenBy(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByAwaitWithCancellationCore(source, keySelector, comparer); public static IOrderedAsyncEnumerable ThenByDescending(this IOrderedAsyncEnumerable source, Func> keySelector) => ThenByDescendingAwaitWithCancellationCore(source, keySelector); public static IOrderedAsyncEnumerable ThenByDescending(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByDescendingAwaitWithCancellationCore(source, keySelector, comparer); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, comparer, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, cancellationToken); + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); public static ValueTask> ToLookupAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToLookupAwaitWithCancellationAsyncCore(source, keySelector, cancellationToken); public static ValueTask> ToLookupAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToLookupAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, cancellationToken); public static ValueTask> ToLookupAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToLookupAwaitWithCancellationAsyncCore(source, keySelector, comparer, cancellationToken); @@ -298,10 +298,10 @@ partial class AsyncEnumerable public static IOrderedAsyncEnumerable ThenByAwait(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByAwaitCore(source, keySelector, comparer); public static IOrderedAsyncEnumerable ThenByDescendingAwait(this IOrderedAsyncEnumerable source, Func> keySelector) => ThenByDescendingAwaitCore(source, keySelector); public static IOrderedAsyncEnumerable ThenByDescendingAwait(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByDescendingAwaitCore(source, keySelector, comparer); - public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, cancellationToken); - public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, comparer, cancellationToken); - public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, cancellationToken); - public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, cancellationToken); + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, cancellationToken); + public static ValueTask> ToDictionaryAwaitAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); public static ValueTask> ToLookupAwaitAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToLookupAwaitAsyncCore(source, keySelector, cancellationToken); public static ValueTask> ToLookupAwaitAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToLookupAwaitAsyncCore(source, keySelector, elementSelector, cancellationToken); public static ValueTask> ToLookupAwaitAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToLookupAwaitAsyncCore(source, keySelector, comparer, cancellationToken); @@ -398,10 +398,10 @@ partial class AsyncEnumerable public static IOrderedAsyncEnumerable ThenByAwaitWithCancellation(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByAwaitWithCancellationCore(source, keySelector, comparer); public static IOrderedAsyncEnumerable ThenByDescendingAwaitWithCancellation(this IOrderedAsyncEnumerable source, Func> keySelector) => ThenByDescendingAwaitWithCancellationCore(source, keySelector); public static IOrderedAsyncEnumerable ThenByDescendingAwaitWithCancellation(this IOrderedAsyncEnumerable source, Func> keySelector, IComparer comparer) => ThenByDescendingAwaitWithCancellationCore(source, keySelector, comparer); - public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, cancellationToken); - public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, comparer, cancellationToken); - public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, cancellationToken); - public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, cancellationToken); + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, comparer, cancellationToken); + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, cancellationToken); + public static ValueTask> ToDictionaryAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, comparer, cancellationToken); public static ValueTask> ToLookupAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => ToLookupAwaitWithCancellationAsyncCore(source, keySelector, cancellationToken); public static ValueTask> ToLookupAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => ToLookupAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, cancellationToken); public static ValueTask> ToLookupAwaitWithCancellationAsync(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer comparer, CancellationToken cancellationToken = default) => ToLookupAwaitWithCancellationAsyncCore(source, keySelector, comparer, cancellationToken); diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.tt b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.tt index ae3cd34e2a..009f74b4a1 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.tt +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerable.AsyncOverloads.tt @@ -109,8 +109,9 @@ foreach (var g in asyncMethods.GroupBy(m => m.Name.Contains("WithCancellation")) var isExtension = m.IsDefined(typeof(System.Runtime.CompilerServices.ExtensionAttribute), true); var pars = (isExtension ? "this " : "") + string.Join(", ", m.GetParameters().Select(p => toCSharp(p.ParameterType) + " " + p.Name + getOptionalSuffix(p))); var args = string.Join(", ", m.GetParameters().Select(p => p.Name)); + var cons = m.Name.StartsWith("ToDictionary") ? " where TKey : notnull" : ""; #> - public static <#=returnType#> <#=shortName#><#=genArgs#>(<#=pars#>) => <#=longName#><#=genArgs#>(<#=args#>); + public static <#=returnType#> <#=shortName#><#=genArgs#>(<#=pars#>)<#=cons#> => <#=longName#><#=genArgs#>(<#=args#>); <# } @@ -143,8 +144,9 @@ foreach (var g in asyncMethods.GroupBy(m => m.Name.Contains("WithCancellation")) var isExtension = m.IsDefined(typeof(System.Runtime.CompilerServices.ExtensionAttribute), true); var pars = (isExtension ? "this " : "") + string.Join(", ", m.GetParameters().Select(p => toCSharp(p.ParameterType) + " " + p.Name + getOptionalSuffix(p))); var args = string.Join(", ", m.GetParameters().Select(p => p.Name)); + var cons = m.Name.StartsWith("ToDictionary") ? " where TKey : notnull" : ""; #> - public static <#=returnType#> <#=shortName#><#=genArgs#>(<#=pars#>) => <#=longName#><#=genArgs#>(<#=args#>); + public static <#=returnType#> <#=shortName#><#=genArgs#>(<#=pars#>)<#=cons#> => <#=longName#><#=genArgs#>(<#=args#>); <# } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs index f6f712422f..895b290168 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs @@ -25,7 +25,6 @@ internal sealed class AsyncEnumerablePartition : AsyncIterator internal AsyncEnumerablePartition(IAsyncEnumerable source, int minIndexInclusive, int maxIndexInclusive) { - Debug.Assert(source != null); Debug.Assert(!(source is IList), $"The caller needs to check for {nameof(IList)}."); Debug.Assert(minIndexInclusive >= 0); Debug.Assert(maxIndexInclusive >= -1); @@ -373,8 +372,6 @@ private static async ValueTask SkipAndCountAsync(int index, IAsyncEnumerato private static async ValueTask SkipAndCountAsync(uint index, IAsyncEnumerator en) { - Debug.Assert(en != null); - for (uint i = 0; i < index; i++) { if (!await en.MoveNextAsync().ConfigureAwait(false)) diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerator.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerator.cs index 42811a7dd0..cb75fc9fa6 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerator.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerator.cs @@ -2,7 +2,6 @@ // 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.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -67,8 +66,6 @@ private sealed class AnonymousAsyncIterator : AsyncIterator public AnonymousAsyncIterator(Func> moveNext, Func currentFunc, Func dispose) { - Debug.Assert(moveNext != null); - _moveNext = moveNext; _currentFunc = currentFunc; _dispose = dispose; diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncListPartition.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncListPartition.cs index 02d9f5c7c1..b4208ff0ad 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncListPartition.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncListPartition.cs @@ -24,9 +24,9 @@ internal sealed class AsyncListPartition : AsyncIterator, IAsy public AsyncListPartition(IList source, int minIndexInclusive, int maxIndexInclusive) { - Debug.Assert(source != null); Debug.Assert(minIndexInclusive >= 0); Debug.Assert(minIndexInclusive <= maxIndexInclusive); + _source = source; _minIndexInclusive = minIndexInclusive; _maxIndexInclusive = maxIndexInclusive; diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs index e7d923b5c6..8b9849adea 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs @@ -18,7 +18,7 @@ public Maybe(T value) public T Value { get; } public bool Equals(Maybe other) => HasValue == other.HasValue && EqualityComparer.Default.Equals(Value, other.Value); - public override bool Equals(object other) => other is Maybe m && Equals(m); + public override bool Equals(object? other) => other is Maybe m && Equals(m); public override int GetHashCode() => HasValue ? EqualityComparer.Default.GetHashCode(Value) : 0; public static bool operator ==(Maybe first, Maybe second) => first.Equals(second); diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs index 42f78b8bf8..a6f856bfed 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs @@ -45,8 +45,6 @@ private abstract class AppendPrependAsyncIterator : AsyncIterator source) { - Debug.Assert(source != null); - _source = source; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Concat.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Concat.cs index 97cb955fd4..b3c9c8a416 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Concat.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Concat.cs @@ -30,9 +30,6 @@ private sealed class Concat2AsyncIterator : ConcatAsyncIterator first, IAsyncEnumerable second) { - Debug.Assert(first != null); - Debug.Assert(second != null); - _first = first; _second = second; } @@ -195,8 +192,6 @@ private sealed class ConcatNAsyncIterator : ConcatAsyncIterator previousConcat, IAsyncEnumerable next, int nextIndex) { - Debug.Assert(previousConcat != null); - Debug.Assert(next != null); Debug.Assert(nextIndex >= 2); _previousConcat = previousConcat; diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/DefaultIfEmpty.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/DefaultIfEmpty.cs index 663aa816a1..ce8beee328 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/DefaultIfEmpty.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/DefaultIfEmpty.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -32,8 +31,6 @@ private sealed class DefaultIfEmptyAsyncIterator : AsyncIterator source, TSource defaultValue) { - Debug.Assert(source != null); - _source = source; _defaultValue = defaultValue; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Distinct.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Distinct.cs index ea2bbf4b3d..3c7585bfb9 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Distinct.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Distinct.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -31,8 +30,6 @@ private sealed class DistinctAsyncIterator : AsyncIterator, IA public DistinctAsyncIterator(IAsyncEnumerable source, IEqualityComparer? comparer) { - Debug.Assert(source != null); - _source = source; _comparer = comparer; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs index e722973dda..7c347abe99 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -85,10 +84,6 @@ public IEnumerable ApplyResultSelector(Func> CreateAsync(IAsyncEnumerable source, Func keySelector, Func elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - Debug.Assert(elementSelector != null); - var lookup = new Lookup(comparer); await foreach (var item in source.WithCancellation(cancellationToken).ConfigureAwait(false)) @@ -105,9 +100,6 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA internal static async Task> CreateAsync(IAsyncEnumerable source, Func keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - var lookup = new Lookup(comparer); await foreach (var item in source.WithCancellation(cancellationToken).ConfigureAwait(false)) @@ -358,10 +350,6 @@ IEnumerator IEnumerable.GetEnumerator() internal static async Task> CreateAsync(IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - Debug.Assert(elementSelector != null); - var lookup = new LookupWithTask(comparer); await foreach (var item in source.WithCancellation(cancellationToken).ConfigureAwait(false)) @@ -379,10 +367,6 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA #if !NO_DEEP_CANCELLATION internal static async Task> CreateAsync(IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - Debug.Assert(elementSelector != null); - var lookup = new LookupWithTask(comparer); await foreach (var item in source.WithCancellation(cancellationToken).ConfigureAwait(false)) @@ -400,9 +384,6 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA internal static async Task> CreateAsync(IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - var lookup = new LookupWithTask(comparer); await foreach (var item in source.WithCancellation(cancellationToken).ConfigureAwait(false)) @@ -417,9 +398,6 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA #if !NO_DEEP_CANCELLATION internal static async Task> CreateAsync(IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken) { - Debug.Assert(source != null); - Debug.Assert(keySelector != null); - var lookup = new LookupWithTask(comparer); await foreach (var item in source.WithCancellation(cancellationToken).ConfigureAwait(false)) diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Reverse.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Reverse.cs index affe7b5848..ad101a1ee3 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Reverse.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Reverse.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -29,8 +28,6 @@ private sealed class ReverseAsyncIterator : AsyncIterator, IAs public ReverseAsyncIterator(IAsyncEnumerable source) { - Debug.Assert(source != null); - _source = source; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs index 9feaf08867..275fa6ae17 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -153,9 +152,6 @@ internal sealed class SelectEnumerableAsyncIterator : AsyncIte public SelectEnumerableAsyncIterator(IAsyncEnumerable source, Func selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } @@ -213,9 +209,6 @@ internal sealed class SelectIListIterator : AsyncIterator source, Func selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } @@ -330,9 +323,6 @@ internal sealed class SelectEnumerableAsyncIteratorWithTask : public SelectEnumerableAsyncIteratorWithTask(IAsyncEnumerable source, Func> selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } @@ -392,9 +382,6 @@ internal sealed class SelectEnumerableAsyncIteratorWithTaskAndCancellation source, Func> selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } @@ -458,9 +445,6 @@ private sealed class SelectIListIteratorWithTask : AsyncIterat public SelectIListIteratorWithTask(IList source, Func> selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } @@ -580,9 +564,6 @@ private sealed class SelectIListIteratorWithTaskAndCancellation source, Func> selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs index ee2f883ae7..821fd872f3 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -326,9 +325,6 @@ private sealed class SelectManyAsyncIterator : AsyncIterator source, Func> selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } @@ -465,9 +461,6 @@ private sealed class SelectManyAsyncIteratorWithTask : AsyncIt public SelectManyAsyncIteratorWithTask(IAsyncEnumerable source, Func>> selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } @@ -607,9 +600,6 @@ private sealed class SelectManyAsyncIteratorWithTaskAndCancellation source, Func>> selector) { - Debug.Assert(source != null); - Debug.Assert(selector != null); - _source = source; _selector = selector; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs index 0f05af5101..996e3f0c95 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs @@ -162,7 +162,7 @@ private void Dispose() private void DisposeSubscription() => Interlocked.Exchange(ref _subscription, null)?.Dispose(); - private void OnCanceled(object state) => Dispose(); + private void OnCanceled(object? state) => Dispose(); private Task Resume() { diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs index 4387d0a362..2f9aa19b5f 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -36,8 +35,6 @@ private sealed class AsyncEnumerableAdapter : AsyncIterator, IAsyncIListPr public AsyncEnumerableAdapter(IEnumerable source) { - Debug.Assert(source != null); - _source = source; } @@ -111,8 +108,6 @@ private sealed class AsyncIListEnumerableAdapter : AsyncIterator, IAsyncIL public AsyncIListEnumerableAdapter(IList source) { - Debug.Assert(source != null); - _source = source; } @@ -218,8 +213,6 @@ private sealed class AsyncICollectionEnumerableAdapter : AsyncIterator, IA public AsyncICollectionEnumerableAdapter(ICollection source) { - Debug.Assert(source != null); - _source = source; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToDictionary.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToDictionary.cs index c12b816f42..e096e3ae12 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToDictionary.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToDictionary.cs @@ -10,10 +10,10 @@ namespace System.Linq { public static partial class AsyncEnumerable { - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, CancellationToken cancellationToken = default) => + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAsync(source, keySelector, comparer: null, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw Error.ArgumentNull(nameof(source)); @@ -37,10 +37,10 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA } } - internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => + internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, comparer: null, cancellationToken); - internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) + internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw Error.ArgumentNull(nameof(source)); @@ -65,10 +65,10 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA } #if !NO_DEEP_CANCELLATION - internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) => + internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, comparer: null, cancellationToken); - internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) + internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw Error.ArgumentNull(nameof(source)); @@ -93,10 +93,10 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA } #endif - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, Func elementSelector, CancellationToken cancellationToken = default) => + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, Func elementSelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAsync(source, keySelector, elementSelector, comparer: null, cancellationToken); - public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, Func elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) + public static ValueTask> ToDictionaryAsync(this IAsyncEnumerable source, Func keySelector, Func elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw Error.ArgumentNull(nameof(source)); @@ -123,10 +123,10 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA } } - internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => + internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitAsyncCore(source, keySelector, elementSelector, comparer: null, cancellationToken); - internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) + internal static ValueTask> ToDictionaryAwaitAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw Error.ArgumentNull(nameof(source)); @@ -154,10 +154,10 @@ await foreach (var item in source.WithCancellation(cancellationToken).ConfigureA } #if !NO_DEEP_CANCELLATION - internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) => + internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull => ToDictionaryAwaitWithCancellationAsyncCore(source, keySelector, elementSelector, comparer: null, cancellationToken); - internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) + internal static ValueTask> ToDictionaryAwaitWithCancellationAsyncCore(this IAsyncEnumerable source, Func> keySelector, Func> elementSelector, IEqualityComparer? comparer, CancellationToken cancellationToken = default) where TKey : notnull { if (source == null) throw Error.ArgumentNull(nameof(source)); diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Union.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Union.cs index f042bdc154..57e9dd00bc 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Union.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Union.cs @@ -88,7 +88,7 @@ private async ValueTask GetNextAsync() while (await _enumerator!.MoveNextAsync().ConfigureAwait(false)) { var element = _enumerator.Current; - if (set.Add(element)) + if (set!.Add(element)) { _current = element; return true; @@ -210,8 +210,6 @@ private sealed class UnionAsyncIterator2 : UnionAsyncIterator public UnionAsyncIterator2(IAsyncEnumerable first, IAsyncEnumerable second, IEqualityComparer? comparer) : base(comparer) { - Debug.Assert(first != null); - Debug.Assert(second != null); _first = first; _second = second; } diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs index a5da91edbf..4bbd158906 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; @@ -155,9 +154,6 @@ internal sealed class WhereEnumerableAsyncIterator : AsyncIterator source, Func predicate) { - Debug.Assert(source != null); - Debug.Assert(predicate != null); - _source = source; _predicate = predicate; } @@ -224,9 +220,6 @@ internal sealed class WhereEnumerableAsyncIteratorWithTask : AsyncItera public WhereEnumerableAsyncIteratorWithTask(IAsyncEnumerable source, Func> predicate) { - Debug.Assert(source != null); - Debug.Assert(predicate != null); - _source = source; _predicate = predicate; } @@ -289,9 +282,6 @@ internal sealed class WhereEnumerableAsyncIteratorWithTaskAndCancellation source, Func> predicate) { - Debug.Assert(source != null); - Debug.Assert(predicate != null); - _source = source; _predicate = predicate; } @@ -356,10 +346,6 @@ private sealed class WhereSelectEnumerableAsyncIterator : Asyn public WhereSelectEnumerableAsyncIterator(IAsyncEnumerable source, Func predicate, Func selector) { - Debug.Assert(source != null); - Debug.Assert(predicate != null); - Debug.Assert(selector != null); - _source = source; _predicate = predicate; _selector = selector;