AsyncQueryable.Generated.cs 428 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT License.
  3. // See the LICENSE file in the project root for more information.
  4. #nullable enable
  5. using System.Collections.Generic;
  6. using System.Linq.Expressions;
  7. using System.Reflection;
  8. using System.Threading;
  9. using System.Threading.Tasks;
  10. namespace System.Linq
  11. {
  12. public static partial class AsyncQueryable
  13. {
  14. private static MethodInfo? s_AggregateAsync__TSource__3__0;
  15. private static MethodInfo? AggregateAsync__TSource__3__0(Type TSource) =>
  16. (s_AggregateAsync__TSource__3__0 ??
  17. (s_AggregateAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object, object>>, CancellationToken, ValueTask<object>>(AggregateAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  18. public static ValueTask<TSource> AggregateAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TSource, TSource>> accumulator, CancellationToken cancellationToken = default)
  19. {
  20. if (source == null)
  21. throw new ArgumentNullException(nameof(source));
  22. if (accumulator == null)
  23. throw new ArgumentNullException(nameof(accumulator));
  24. return source.Provider.ExecuteAsync<TSource>(Expression.Call(AggregateAsync__TSource__3__0(typeof(TSource)), source.Expression, accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  25. }
  26. private static MethodInfo? s_AggregateAsync__TSource_TAccumulate__4__0;
  27. private static MethodInfo? AggregateAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) =>
  28. (s_AggregateAsync__TSource_TAccumulate__4__0 ??
  29. (s_AggregateAsync__TSource_TAccumulate__4__0 = new Func<IAsyncQueryable<object>, object, Expression<Func<object, object, object>>, CancellationToken, ValueTask<object>>(AggregateAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate);
  30. public static ValueTask<TAccumulate> AggregateAsync<TSource, TAccumulate>(this IAsyncQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> accumulator, CancellationToken cancellationToken = default)
  31. {
  32. if (source == null)
  33. throw new ArgumentNullException(nameof(source));
  34. if (accumulator == null)
  35. throw new ArgumentNullException(nameof(accumulator));
  36. return source.Provider.ExecuteAsync<TAccumulate>(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);
  37. }
  38. private static MethodInfo? s_AggregateAsync__TSource_TAccumulate_TResult__5__0;
  39. private static MethodInfo? AggregateAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) =>
  40. (s_AggregateAsync__TSource_TAccumulate_TResult__5__0 ??
  41. (s_AggregateAsync__TSource_TAccumulate_TResult__5__0 = new Func<IAsyncQueryable<object>, object, Expression<Func<object, object, object>>, Expression<Func<object, object>>, CancellationToken, ValueTask<object>>(AggregateAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate, TResult);
  42. public static ValueTask<TResult> AggregateAsync<TSource, TAccumulate, TResult>(this IAsyncQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> accumulator, Expression<Func<TAccumulate, TResult>> resultSelector, CancellationToken cancellationToken = default)
  43. {
  44. if (source == null)
  45. throw new ArgumentNullException(nameof(source));
  46. if (accumulator == null)
  47. throw new ArgumentNullException(nameof(accumulator));
  48. if (resultSelector == null)
  49. throw new ArgumentNullException(nameof(resultSelector));
  50. return source.Provider.ExecuteAsync<TResult>(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);
  51. }
  52. private static MethodInfo? s_AggregateAwaitAsync__TSource__3__0;
  53. private static MethodInfo? AggregateAwaitAsync__TSource__3__0(Type TSource) =>
  54. (s_AggregateAwaitAsync__TSource__3__0 ??
  55. (s_AggregateAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object, ValueTask<object>>>, CancellationToken, ValueTask<object>>(AggregateAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  56. public static ValueTask<TSource> AggregateAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TSource, ValueTask<TSource>>> accumulator, CancellationToken cancellationToken = default)
  57. {
  58. if (source == null)
  59. throw new ArgumentNullException(nameof(source));
  60. if (accumulator == null)
  61. throw new ArgumentNullException(nameof(accumulator));
  62. return source.Provider.ExecuteAsync<TSource>(Expression.Call(AggregateAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  63. }
  64. private static MethodInfo? s_AggregateAwaitAsync__TSource_TAccumulate__4__0;
  65. private static MethodInfo? AggregateAwaitAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) =>
  66. (s_AggregateAwaitAsync__TSource_TAccumulate__4__0 ??
  67. (s_AggregateAwaitAsync__TSource_TAccumulate__4__0 = new Func<IAsyncQueryable<object>, object, Expression<Func<object, object, ValueTask<object>>>, CancellationToken, ValueTask<object>>(AggregateAwaitAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate);
  68. public static ValueTask<TAccumulate> AggregateAwaitAsync<TSource, TAccumulate>(this IAsyncQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, ValueTask<TAccumulate>>> accumulator, CancellationToken cancellationToken = default)
  69. {
  70. if (source == null)
  71. throw new ArgumentNullException(nameof(source));
  72. if (accumulator == null)
  73. throw new ArgumentNullException(nameof(accumulator));
  74. return source.Provider.ExecuteAsync<TAccumulate>(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);
  75. }
  76. private static MethodInfo? s_AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0;
  77. private static MethodInfo? AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) =>
  78. (s_AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0 ??
  79. (s_AggregateAwaitAsync__TSource_TAccumulate_TResult__5__0 = new Func<IAsyncQueryable<object>, object, Expression<Func<object, object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, CancellationToken, ValueTask<object>>(AggregateAwaitAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate, TResult);
  80. public static ValueTask<TResult> AggregateAwaitAsync<TSource, TAccumulate, TResult>(this IAsyncQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, ValueTask<TAccumulate>>> accumulator, Expression<Func<TAccumulate, ValueTask<TResult>>> resultSelector, CancellationToken cancellationToken = default)
  81. {
  82. if (source == null)
  83. throw new ArgumentNullException(nameof(source));
  84. if (accumulator == null)
  85. throw new ArgumentNullException(nameof(accumulator));
  86. if (resultSelector == null)
  87. throw new ArgumentNullException(nameof(resultSelector));
  88. return source.Provider.ExecuteAsync<TResult>(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);
  89. }
  90. private static MethodInfo? s_AggregateAwaitWithCancellationAsync__TSource__3__0;
  91. private static MethodInfo? AggregateAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  92. (s_AggregateAwaitWithCancellationAsync__TSource__3__0 ??
  93. (s_AggregateAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<object>>(AggregateAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  94. public static ValueTask<TSource> AggregateAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TSource, CancellationToken, ValueTask<TSource>>> accumulator, CancellationToken cancellationToken = default)
  95. {
  96. if (source == null)
  97. throw new ArgumentNullException(nameof(source));
  98. if (accumulator == null)
  99. throw new ArgumentNullException(nameof(accumulator));
  100. return source.Provider.ExecuteAsync<TSource>(Expression.Call(AggregateAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, accumulator, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  101. }
  102. private static MethodInfo? s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0;
  103. private static MethodInfo? AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0(Type TSource, Type TAccumulate) =>
  104. (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0 ??
  105. (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate__4__0 = new Func<IAsyncQueryable<object>, object, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<object>>(AggregateAwaitWithCancellationAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate);
  106. public static ValueTask<TAccumulate> AggregateAwaitWithCancellationAsync<TSource, TAccumulate>(this IAsyncQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>>> accumulator, CancellationToken cancellationToken = default)
  107. {
  108. if (source == null)
  109. throw new ArgumentNullException(nameof(source));
  110. if (accumulator == null)
  111. throw new ArgumentNullException(nameof(accumulator));
  112. return source.Provider.ExecuteAsync<TAccumulate>(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);
  113. }
  114. private static MethodInfo? s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0;
  115. private static MethodInfo? AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0(Type TSource, Type TAccumulate, Type TResult) =>
  116. (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0 ??
  117. (s_AggregateAwaitWithCancellationAsync__TSource_TAccumulate_TResult__5__0 = new Func<IAsyncQueryable<object>, object, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<object>>(AggregateAwaitWithCancellationAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate, TResult);
  118. public static ValueTask<TResult> AggregateAwaitWithCancellationAsync<TSource, TAccumulate, TResult>(this IAsyncQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>>> accumulator, Expression<Func<TAccumulate, CancellationToken, ValueTask<TResult>>> resultSelector, CancellationToken cancellationToken = default)
  119. {
  120. if (source == null)
  121. throw new ArgumentNullException(nameof(source));
  122. if (accumulator == null)
  123. throw new ArgumentNullException(nameof(accumulator));
  124. if (resultSelector == null)
  125. throw new ArgumentNullException(nameof(resultSelector));
  126. return source.Provider.ExecuteAsync<TResult>(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);
  127. }
  128. private static MethodInfo? s_AllAsync__TSource__3__0;
  129. private static MethodInfo? AllAsync__TSource__3__0(Type TSource) =>
  130. (s_AllAsync__TSource__3__0 ??
  131. (s_AllAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<bool>>(AllAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  132. public static ValueTask<bool> AllAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  133. {
  134. if (source == null)
  135. throw new ArgumentNullException(nameof(source));
  136. if (predicate == null)
  137. throw new ArgumentNullException(nameof(predicate));
  138. return source.Provider.ExecuteAsync<bool>(Expression.Call(AllAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  139. }
  140. private static MethodInfo? s_AllAwaitAsync__TSource__3__0;
  141. private static MethodInfo? AllAwaitAsync__TSource__3__0(Type TSource) =>
  142. (s_AllAwaitAsync__TSource__3__0 ??
  143. (s_AllAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<bool>>(AllAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  144. public static ValueTask<bool> AllAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  145. {
  146. if (source == null)
  147. throw new ArgumentNullException(nameof(source));
  148. if (predicate == null)
  149. throw new ArgumentNullException(nameof(predicate));
  150. return source.Provider.ExecuteAsync<bool>(Expression.Call(AllAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  151. }
  152. private static MethodInfo? s_AllAwaitWithCancellationAsync__TSource__3__0;
  153. private static MethodInfo? AllAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  154. (s_AllAwaitWithCancellationAsync__TSource__3__0 ??
  155. (s_AllAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<bool>>(AllAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  156. public static ValueTask<bool> AllAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  157. {
  158. if (source == null)
  159. throw new ArgumentNullException(nameof(source));
  160. if (predicate == null)
  161. throw new ArgumentNullException(nameof(predicate));
  162. return source.Provider.ExecuteAsync<bool>(Expression.Call(AllAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  163. }
  164. private static MethodInfo? s_AnyAsync__TSource__2__0;
  165. private static MethodInfo? AnyAsync__TSource__2__0(Type TSource) =>
  166. (s_AnyAsync__TSource__2__0 ??
  167. (s_AnyAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<bool>>(AnyAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  168. public static ValueTask<bool> AnyAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  169. {
  170. if (source == null)
  171. throw new ArgumentNullException(nameof(source));
  172. return source.Provider.ExecuteAsync<bool>(Expression.Call(AnyAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  173. }
  174. private static MethodInfo? s_AnyAsync__TSource__3__0;
  175. private static MethodInfo? AnyAsync__TSource__3__0(Type TSource) =>
  176. (s_AnyAsync__TSource__3__0 ??
  177. (s_AnyAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<bool>>(AnyAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  178. public static ValueTask<bool> AnyAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  179. {
  180. if (source == null)
  181. throw new ArgumentNullException(nameof(source));
  182. if (predicate == null)
  183. throw new ArgumentNullException(nameof(predicate));
  184. return source.Provider.ExecuteAsync<bool>(Expression.Call(AnyAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  185. }
  186. private static MethodInfo? s_AnyAwaitAsync__TSource__3__0;
  187. private static MethodInfo? AnyAwaitAsync__TSource__3__0(Type TSource) =>
  188. (s_AnyAwaitAsync__TSource__3__0 ??
  189. (s_AnyAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<bool>>(AnyAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  190. public static ValueTask<bool> AnyAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  191. {
  192. if (source == null)
  193. throw new ArgumentNullException(nameof(source));
  194. if (predicate == null)
  195. throw new ArgumentNullException(nameof(predicate));
  196. return source.Provider.ExecuteAsync<bool>(Expression.Call(AnyAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  197. }
  198. private static MethodInfo? s_AnyAwaitWithCancellationAsync__TSource__3__0;
  199. private static MethodInfo? AnyAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  200. (s_AnyAwaitWithCancellationAsync__TSource__3__0 ??
  201. (s_AnyAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<bool>>(AnyAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  202. public static ValueTask<bool> AnyAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  203. {
  204. if (source == null)
  205. throw new ArgumentNullException(nameof(source));
  206. if (predicate == null)
  207. throw new ArgumentNullException(nameof(predicate));
  208. return source.Provider.ExecuteAsync<bool>(Expression.Call(AnyAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  209. }
  210. private static MethodInfo? s_Append__TSource__2__0;
  211. private static MethodInfo? Append__TSource__2__0(Type TSource) =>
  212. (s_Append__TSource__2__0 ??
  213. (s_Append__TSource__2__0 = new Func<IAsyncQueryable<object>, object, IAsyncQueryable<object>>(Append<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  214. public static IAsyncQueryable<TSource> Append<TSource>(this IAsyncQueryable<TSource> source, TSource element)
  215. {
  216. if (source == null)
  217. throw new ArgumentNullException(nameof(source));
  218. return source.Provider.CreateQuery<TSource>(Expression.Call(Append__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(element, typeof(TSource))));
  219. }
  220. private static MethodInfo? s_AverageAsync__2__0;
  221. private static MethodInfo? AverageAsync__2__0 =>
  222. (s_AverageAsync__2__0 ??
  223. (s_AverageAsync__2__0 = new Func<IAsyncQueryable<decimal?>, CancellationToken, ValueTask<decimal?>>(AverageAsync).GetMethodInfo()));
  224. public static ValueTask<decimal?> AverageAsync(this IAsyncQueryable<decimal?> source, CancellationToken cancellationToken = default)
  225. {
  226. if (source == null)
  227. throw new ArgumentNullException(nameof(source));
  228. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(AverageAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  229. }
  230. private static MethodInfo? s_AverageAsync__2__1;
  231. private static MethodInfo? AverageAsync__2__1 =>
  232. (s_AverageAsync__2__1 ??
  233. (s_AverageAsync__2__1 = new Func<IAsyncQueryable<decimal>, CancellationToken, ValueTask<decimal>>(AverageAsync).GetMethodInfo()));
  234. public static ValueTask<decimal> AverageAsync(this IAsyncQueryable<decimal> source, CancellationToken cancellationToken = default)
  235. {
  236. if (source == null)
  237. throw new ArgumentNullException(nameof(source));
  238. return source.Provider.ExecuteAsync<decimal>(Expression.Call(AverageAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  239. }
  240. private static MethodInfo? s_AverageAsync__2__2;
  241. private static MethodInfo? AverageAsync__2__2 =>
  242. (s_AverageAsync__2__2 ??
  243. (s_AverageAsync__2__2 = new Func<IAsyncQueryable<double?>, CancellationToken, ValueTask<double?>>(AverageAsync).GetMethodInfo()));
  244. public static ValueTask<double?> AverageAsync(this IAsyncQueryable<double?> source, CancellationToken cancellationToken = default)
  245. {
  246. if (source == null)
  247. throw new ArgumentNullException(nameof(source));
  248. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  249. }
  250. private static MethodInfo? s_AverageAsync__2__3;
  251. private static MethodInfo? AverageAsync__2__3 =>
  252. (s_AverageAsync__2__3 ??
  253. (s_AverageAsync__2__3 = new Func<IAsyncQueryable<double>, CancellationToken, ValueTask<double>>(AverageAsync).GetMethodInfo()));
  254. public static ValueTask<double> AverageAsync(this IAsyncQueryable<double> source, CancellationToken cancellationToken = default)
  255. {
  256. if (source == null)
  257. throw new ArgumentNullException(nameof(source));
  258. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  259. }
  260. private static MethodInfo? s_AverageAsync__2__4;
  261. private static MethodInfo? AverageAsync__2__4 =>
  262. (s_AverageAsync__2__4 ??
  263. (s_AverageAsync__2__4 = new Func<IAsyncQueryable<float?>, CancellationToken, ValueTask<float?>>(AverageAsync).GetMethodInfo()));
  264. public static ValueTask<float?> AverageAsync(this IAsyncQueryable<float?> source, CancellationToken cancellationToken = default)
  265. {
  266. if (source == null)
  267. throw new ArgumentNullException(nameof(source));
  268. return source.Provider.ExecuteAsync<float?>(Expression.Call(AverageAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  269. }
  270. private static MethodInfo? s_AverageAsync__2__5;
  271. private static MethodInfo? AverageAsync__2__5 =>
  272. (s_AverageAsync__2__5 ??
  273. (s_AverageAsync__2__5 = new Func<IAsyncQueryable<float>, CancellationToken, ValueTask<float>>(AverageAsync).GetMethodInfo()));
  274. public static ValueTask<float> AverageAsync(this IAsyncQueryable<float> source, CancellationToken cancellationToken = default)
  275. {
  276. if (source == null)
  277. throw new ArgumentNullException(nameof(source));
  278. return source.Provider.ExecuteAsync<float>(Expression.Call(AverageAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  279. }
  280. private static MethodInfo? s_AverageAsync__2__6;
  281. private static MethodInfo? AverageAsync__2__6 =>
  282. (s_AverageAsync__2__6 ??
  283. (s_AverageAsync__2__6 = new Func<IAsyncQueryable<int?>, CancellationToken, ValueTask<double?>>(AverageAsync).GetMethodInfo()));
  284. public static ValueTask<double?> AverageAsync(this IAsyncQueryable<int?> source, CancellationToken cancellationToken = default)
  285. {
  286. if (source == null)
  287. throw new ArgumentNullException(nameof(source));
  288. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  289. }
  290. private static MethodInfo? s_AverageAsync__2__7;
  291. private static MethodInfo? AverageAsync__2__7 =>
  292. (s_AverageAsync__2__7 ??
  293. (s_AverageAsync__2__7 = new Func<IAsyncQueryable<int>, CancellationToken, ValueTask<double>>(AverageAsync).GetMethodInfo()));
  294. public static ValueTask<double> AverageAsync(this IAsyncQueryable<int> source, CancellationToken cancellationToken = default)
  295. {
  296. if (source == null)
  297. throw new ArgumentNullException(nameof(source));
  298. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  299. }
  300. private static MethodInfo? s_AverageAsync__2__8;
  301. private static MethodInfo? AverageAsync__2__8 =>
  302. (s_AverageAsync__2__8 ??
  303. (s_AverageAsync__2__8 = new Func<IAsyncQueryable<long?>, CancellationToken, ValueTask<double?>>(AverageAsync).GetMethodInfo()));
  304. public static ValueTask<double?> AverageAsync(this IAsyncQueryable<long?> source, CancellationToken cancellationToken = default)
  305. {
  306. if (source == null)
  307. throw new ArgumentNullException(nameof(source));
  308. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  309. }
  310. private static MethodInfo? s_AverageAsync__2__9;
  311. private static MethodInfo? AverageAsync__2__9 =>
  312. (s_AverageAsync__2__9 ??
  313. (s_AverageAsync__2__9 = new Func<IAsyncQueryable<long>, CancellationToken, ValueTask<double>>(AverageAsync).GetMethodInfo()));
  314. public static ValueTask<double> AverageAsync(this IAsyncQueryable<long> source, CancellationToken cancellationToken = default)
  315. {
  316. if (source == null)
  317. throw new ArgumentNullException(nameof(source));
  318. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  319. }
  320. private static MethodInfo? s_AverageAsync__TSource__3__0;
  321. private static MethodInfo? AverageAsync__TSource__3__0(Type TSource) =>
  322. (s_AverageAsync__TSource__3__0 ??
  323. (s_AverageAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal?>>, CancellationToken, ValueTask<decimal?>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  324. public static ValueTask<decimal?> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken cancellationToken = default)
  325. {
  326. if (source == null)
  327. throw new ArgumentNullException(nameof(source));
  328. if (selector == null)
  329. throw new ArgumentNullException(nameof(selector));
  330. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(AverageAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  331. }
  332. private static MethodInfo? s_AverageAsync__TSource__3__1;
  333. private static MethodInfo? AverageAsync__TSource__3__1(Type TSource) =>
  334. (s_AverageAsync__TSource__3__1 ??
  335. (s_AverageAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal>>, CancellationToken, ValueTask<decimal>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  336. public static ValueTask<decimal> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken cancellationToken = default)
  337. {
  338. if (source == null)
  339. throw new ArgumentNullException(nameof(source));
  340. if (selector == null)
  341. throw new ArgumentNullException(nameof(selector));
  342. return source.Provider.ExecuteAsync<decimal>(Expression.Call(AverageAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  343. }
  344. private static MethodInfo? s_AverageAsync__TSource__3__2;
  345. private static MethodInfo? AverageAsync__TSource__3__2(Type TSource) =>
  346. (s_AverageAsync__TSource__3__2 ??
  347. (s_AverageAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, double?>>, CancellationToken, ValueTask<double?>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  348. public static ValueTask<double?> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken cancellationToken = default)
  349. {
  350. if (source == null)
  351. throw new ArgumentNullException(nameof(source));
  352. if (selector == null)
  353. throw new ArgumentNullException(nameof(selector));
  354. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  355. }
  356. private static MethodInfo? s_AverageAsync__TSource__3__3;
  357. private static MethodInfo? AverageAsync__TSource__3__3(Type TSource) =>
  358. (s_AverageAsync__TSource__3__3 ??
  359. (s_AverageAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, double>>, CancellationToken, ValueTask<double>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  360. public static ValueTask<double> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken cancellationToken = default)
  361. {
  362. if (source == null)
  363. throw new ArgumentNullException(nameof(source));
  364. if (selector == null)
  365. throw new ArgumentNullException(nameof(selector));
  366. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  367. }
  368. private static MethodInfo? s_AverageAsync__TSource__3__4;
  369. private static MethodInfo? AverageAsync__TSource__3__4(Type TSource) =>
  370. (s_AverageAsync__TSource__3__4 ??
  371. (s_AverageAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, float?>>, CancellationToken, ValueTask<float?>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  372. public static ValueTask<float?> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken cancellationToken = default)
  373. {
  374. if (source == null)
  375. throw new ArgumentNullException(nameof(source));
  376. if (selector == null)
  377. throw new ArgumentNullException(nameof(selector));
  378. return source.Provider.ExecuteAsync<float?>(Expression.Call(AverageAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  379. }
  380. private static MethodInfo? s_AverageAsync__TSource__3__5;
  381. private static MethodInfo? AverageAsync__TSource__3__5(Type TSource) =>
  382. (s_AverageAsync__TSource__3__5 ??
  383. (s_AverageAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, float>>, CancellationToken, ValueTask<float>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  384. public static ValueTask<float> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken cancellationToken = default)
  385. {
  386. if (source == null)
  387. throw new ArgumentNullException(nameof(source));
  388. if (selector == null)
  389. throw new ArgumentNullException(nameof(selector));
  390. return source.Provider.ExecuteAsync<float>(Expression.Call(AverageAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  391. }
  392. private static MethodInfo? s_AverageAsync__TSource__3__6;
  393. private static MethodInfo? AverageAsync__TSource__3__6(Type TSource) =>
  394. (s_AverageAsync__TSource__3__6 ??
  395. (s_AverageAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, int?>>, CancellationToken, ValueTask<double?>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  396. public static ValueTask<double?> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken cancellationToken = default)
  397. {
  398. if (source == null)
  399. throw new ArgumentNullException(nameof(source));
  400. if (selector == null)
  401. throw new ArgumentNullException(nameof(selector));
  402. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  403. }
  404. private static MethodInfo? s_AverageAsync__TSource__3__7;
  405. private static MethodInfo? AverageAsync__TSource__3__7(Type TSource) =>
  406. (s_AverageAsync__TSource__3__7 ??
  407. (s_AverageAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, int>>, CancellationToken, ValueTask<double>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  408. public static ValueTask<double> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken cancellationToken = default)
  409. {
  410. if (source == null)
  411. throw new ArgumentNullException(nameof(source));
  412. if (selector == null)
  413. throw new ArgumentNullException(nameof(selector));
  414. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  415. }
  416. private static MethodInfo? s_AverageAsync__TSource__3__8;
  417. private static MethodInfo? AverageAsync__TSource__3__8(Type TSource) =>
  418. (s_AverageAsync__TSource__3__8 ??
  419. (s_AverageAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, long?>>, CancellationToken, ValueTask<double?>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  420. public static ValueTask<double?> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken cancellationToken = default)
  421. {
  422. if (source == null)
  423. throw new ArgumentNullException(nameof(source));
  424. if (selector == null)
  425. throw new ArgumentNullException(nameof(selector));
  426. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  427. }
  428. private static MethodInfo? s_AverageAsync__TSource__3__9;
  429. private static MethodInfo? AverageAsync__TSource__3__9(Type TSource) =>
  430. (s_AverageAsync__TSource__3__9 ??
  431. (s_AverageAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, long>>, CancellationToken, ValueTask<double>>(AverageAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  432. public static ValueTask<double> AverageAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken cancellationToken = default)
  433. {
  434. if (source == null)
  435. throw new ArgumentNullException(nameof(source));
  436. if (selector == null)
  437. throw new ArgumentNullException(nameof(selector));
  438. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  439. }
  440. private static MethodInfo? s_AverageAwaitAsync__TSource__3__0;
  441. private static MethodInfo? AverageAwaitAsync__TSource__3__0(Type TSource) =>
  442. (s_AverageAwaitAsync__TSource__3__0 ??
  443. (s_AverageAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  444. public static ValueTask<decimal?> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  445. {
  446. if (source == null)
  447. throw new ArgumentNullException(nameof(source));
  448. if (selector == null)
  449. throw new ArgumentNullException(nameof(selector));
  450. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(AverageAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  451. }
  452. private static MethodInfo? s_AverageAwaitAsync__TSource__3__1;
  453. private static MethodInfo? AverageAwaitAsync__TSource__3__1(Type TSource) =>
  454. (s_AverageAwaitAsync__TSource__3__1 ??
  455. (s_AverageAwaitAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  456. public static ValueTask<decimal> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  457. {
  458. if (source == null)
  459. throw new ArgumentNullException(nameof(source));
  460. if (selector == null)
  461. throw new ArgumentNullException(nameof(selector));
  462. return source.Provider.ExecuteAsync<decimal>(Expression.Call(AverageAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  463. }
  464. private static MethodInfo? s_AverageAwaitAsync__TSource__3__2;
  465. private static MethodInfo? AverageAwaitAsync__TSource__3__2(Type TSource) =>
  466. (s_AverageAwaitAsync__TSource__3__2 ??
  467. (s_AverageAwaitAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  468. public static ValueTask<double?> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  469. {
  470. if (source == null)
  471. throw new ArgumentNullException(nameof(source));
  472. if (selector == null)
  473. throw new ArgumentNullException(nameof(selector));
  474. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  475. }
  476. private static MethodInfo? s_AverageAwaitAsync__TSource__3__3;
  477. private static MethodInfo? AverageAwaitAsync__TSource__3__3(Type TSource) =>
  478. (s_AverageAwaitAsync__TSource__3__3 ??
  479. (s_AverageAwaitAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double>>>, CancellationToken, ValueTask<double>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  480. public static ValueTask<double> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  481. {
  482. if (source == null)
  483. throw new ArgumentNullException(nameof(source));
  484. if (selector == null)
  485. throw new ArgumentNullException(nameof(selector));
  486. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  487. }
  488. private static MethodInfo? s_AverageAwaitAsync__TSource__3__4;
  489. private static MethodInfo? AverageAwaitAsync__TSource__3__4(Type TSource) =>
  490. (s_AverageAwaitAsync__TSource__3__4 ??
  491. (s_AverageAwaitAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  492. public static ValueTask<float?> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  493. {
  494. if (source == null)
  495. throw new ArgumentNullException(nameof(source));
  496. if (selector == null)
  497. throw new ArgumentNullException(nameof(selector));
  498. return source.Provider.ExecuteAsync<float?>(Expression.Call(AverageAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  499. }
  500. private static MethodInfo? s_AverageAwaitAsync__TSource__3__5;
  501. private static MethodInfo? AverageAwaitAsync__TSource__3__5(Type TSource) =>
  502. (s_AverageAwaitAsync__TSource__3__5 ??
  503. (s_AverageAwaitAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float>>>, CancellationToken, ValueTask<float>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  504. public static ValueTask<float> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  505. {
  506. if (source == null)
  507. throw new ArgumentNullException(nameof(source));
  508. if (selector == null)
  509. throw new ArgumentNullException(nameof(selector));
  510. return source.Provider.ExecuteAsync<float>(Expression.Call(AverageAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  511. }
  512. private static MethodInfo? s_AverageAwaitAsync__TSource__3__6;
  513. private static MethodInfo? AverageAwaitAsync__TSource__3__6(Type TSource) =>
  514. (s_AverageAwaitAsync__TSource__3__6 ??
  515. (s_AverageAwaitAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int?>>>, CancellationToken, ValueTask<double?>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  516. public static ValueTask<double?> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  517. {
  518. if (source == null)
  519. throw new ArgumentNullException(nameof(source));
  520. if (selector == null)
  521. throw new ArgumentNullException(nameof(selector));
  522. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  523. }
  524. private static MethodInfo? s_AverageAwaitAsync__TSource__3__7;
  525. private static MethodInfo? AverageAwaitAsync__TSource__3__7(Type TSource) =>
  526. (s_AverageAwaitAsync__TSource__3__7 ??
  527. (s_AverageAwaitAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int>>>, CancellationToken, ValueTask<double>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  528. public static ValueTask<double> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  529. {
  530. if (source == null)
  531. throw new ArgumentNullException(nameof(source));
  532. if (selector == null)
  533. throw new ArgumentNullException(nameof(selector));
  534. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  535. }
  536. private static MethodInfo? s_AverageAwaitAsync__TSource__3__8;
  537. private static MethodInfo? AverageAwaitAsync__TSource__3__8(Type TSource) =>
  538. (s_AverageAwaitAsync__TSource__3__8 ??
  539. (s_AverageAwaitAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long?>>>, CancellationToken, ValueTask<double?>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  540. public static ValueTask<double?> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  541. {
  542. if (source == null)
  543. throw new ArgumentNullException(nameof(source));
  544. if (selector == null)
  545. throw new ArgumentNullException(nameof(selector));
  546. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  547. }
  548. private static MethodInfo? s_AverageAwaitAsync__TSource__3__9;
  549. private static MethodInfo? AverageAwaitAsync__TSource__3__9(Type TSource) =>
  550. (s_AverageAwaitAsync__TSource__3__9 ??
  551. (s_AverageAwaitAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long>>>, CancellationToken, ValueTask<double>>(AverageAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  552. public static ValueTask<double> AverageAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  553. {
  554. if (source == null)
  555. throw new ArgumentNullException(nameof(source));
  556. if (selector == null)
  557. throw new ArgumentNullException(nameof(selector));
  558. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  559. }
  560. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__0;
  561. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  562. (s_AverageAwaitWithCancellationAsync__TSource__3__0 ??
  563. (s_AverageAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  564. public static ValueTask<decimal?> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  565. {
  566. if (source == null)
  567. throw new ArgumentNullException(nameof(source));
  568. if (selector == null)
  569. throw new ArgumentNullException(nameof(selector));
  570. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  571. }
  572. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__1;
  573. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__1(Type TSource) =>
  574. (s_AverageAwaitWithCancellationAsync__TSource__3__1 ??
  575. (s_AverageAwaitWithCancellationAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  576. public static ValueTask<decimal> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  577. {
  578. if (source == null)
  579. throw new ArgumentNullException(nameof(source));
  580. if (selector == null)
  581. throw new ArgumentNullException(nameof(selector));
  582. return source.Provider.ExecuteAsync<decimal>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  583. }
  584. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__2;
  585. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__2(Type TSource) =>
  586. (s_AverageAwaitWithCancellationAsync__TSource__3__2 ??
  587. (s_AverageAwaitWithCancellationAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  588. public static ValueTask<double?> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  589. {
  590. if (source == null)
  591. throw new ArgumentNullException(nameof(source));
  592. if (selector == null)
  593. throw new ArgumentNullException(nameof(selector));
  594. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  595. }
  596. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__3;
  597. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__3(Type TSource) =>
  598. (s_AverageAwaitWithCancellationAsync__TSource__3__3 ??
  599. (s_AverageAwaitWithCancellationAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double>>>, CancellationToken, ValueTask<double>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  600. public static ValueTask<double> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  601. {
  602. if (source == null)
  603. throw new ArgumentNullException(nameof(source));
  604. if (selector == null)
  605. throw new ArgumentNullException(nameof(selector));
  606. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  607. }
  608. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__4;
  609. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__4(Type TSource) =>
  610. (s_AverageAwaitWithCancellationAsync__TSource__3__4 ??
  611. (s_AverageAwaitWithCancellationAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  612. public static ValueTask<float?> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  613. {
  614. if (source == null)
  615. throw new ArgumentNullException(nameof(source));
  616. if (selector == null)
  617. throw new ArgumentNullException(nameof(selector));
  618. return source.Provider.ExecuteAsync<float?>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  619. }
  620. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__5;
  621. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__5(Type TSource) =>
  622. (s_AverageAwaitWithCancellationAsync__TSource__3__5 ??
  623. (s_AverageAwaitWithCancellationAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float>>>, CancellationToken, ValueTask<float>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  624. public static ValueTask<float> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  625. {
  626. if (source == null)
  627. throw new ArgumentNullException(nameof(source));
  628. if (selector == null)
  629. throw new ArgumentNullException(nameof(selector));
  630. return source.Provider.ExecuteAsync<float>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  631. }
  632. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__6;
  633. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__6(Type TSource) =>
  634. (s_AverageAwaitWithCancellationAsync__TSource__3__6 ??
  635. (s_AverageAwaitWithCancellationAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int?>>>, CancellationToken, ValueTask<double?>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  636. public static ValueTask<double?> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  637. {
  638. if (source == null)
  639. throw new ArgumentNullException(nameof(source));
  640. if (selector == null)
  641. throw new ArgumentNullException(nameof(selector));
  642. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  643. }
  644. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__7;
  645. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__7(Type TSource) =>
  646. (s_AverageAwaitWithCancellationAsync__TSource__3__7 ??
  647. (s_AverageAwaitWithCancellationAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int>>>, CancellationToken, ValueTask<double>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  648. public static ValueTask<double> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  649. {
  650. if (source == null)
  651. throw new ArgumentNullException(nameof(source));
  652. if (selector == null)
  653. throw new ArgumentNullException(nameof(selector));
  654. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  655. }
  656. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__8;
  657. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__8(Type TSource) =>
  658. (s_AverageAwaitWithCancellationAsync__TSource__3__8 ??
  659. (s_AverageAwaitWithCancellationAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long?>>>, CancellationToken, ValueTask<double?>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  660. public static ValueTask<double?> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  661. {
  662. if (source == null)
  663. throw new ArgumentNullException(nameof(source));
  664. if (selector == null)
  665. throw new ArgumentNullException(nameof(selector));
  666. return source.Provider.ExecuteAsync<double?>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  667. }
  668. private static MethodInfo? s_AverageAwaitWithCancellationAsync__TSource__3__9;
  669. private static MethodInfo? AverageAwaitWithCancellationAsync__TSource__3__9(Type TSource) =>
  670. (s_AverageAwaitWithCancellationAsync__TSource__3__9 ??
  671. (s_AverageAwaitWithCancellationAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long>>>, CancellationToken, ValueTask<double>>(AverageAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  672. public static ValueTask<double> AverageAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  673. {
  674. if (source == null)
  675. throw new ArgumentNullException(nameof(source));
  676. if (selector == null)
  677. throw new ArgumentNullException(nameof(selector));
  678. return source.Provider.ExecuteAsync<double>(Expression.Call(AverageAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  679. }
  680. private static MethodInfo? s_Cast__TResult__1__0;
  681. private static MethodInfo? Cast__TResult__1__0(Type TResult) =>
  682. (s_Cast__TResult__1__0 ??
  683. (s_Cast__TResult__1__0 = new Func<IAsyncQueryable<object>, IAsyncQueryable<object>>(Cast<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TResult);
  684. public static IAsyncQueryable<TResult> Cast<TResult>(this IAsyncQueryable<object> source)
  685. {
  686. if (source == null)
  687. throw new ArgumentNullException(nameof(source));
  688. return source.Provider.CreateQuery<TResult>(Expression.Call(Cast__TResult__1__0(typeof(TResult)), source.Expression));
  689. }
  690. private static MethodInfo? s_Concat__TSource__2__0;
  691. private static MethodInfo? Concat__TSource__2__0(Type TSource) =>
  692. (s_Concat__TSource__2__0 ??
  693. (s_Concat__TSource__2__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IAsyncQueryable<object>>(Concat<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  694. public static IAsyncQueryable<TSource> Concat<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second)
  695. {
  696. if (first == null)
  697. throw new ArgumentNullException(nameof(first));
  698. if (second == null)
  699. throw new ArgumentNullException(nameof(second));
  700. return first.Provider.CreateQuery<TSource>(Expression.Call(Concat__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second)));
  701. }
  702. private static MethodInfo? s_ContainsAsync__TSource__3__0;
  703. private static MethodInfo? ContainsAsync__TSource__3__0(Type TSource) =>
  704. (s_ContainsAsync__TSource__3__0 ??
  705. (s_ContainsAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, object, CancellationToken, ValueTask<bool>>(ContainsAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  706. public static ValueTask<bool> ContainsAsync<TSource>(this IAsyncQueryable<TSource> source, TSource value, CancellationToken cancellationToken = default)
  707. {
  708. if (source == null)
  709. throw new ArgumentNullException(nameof(source));
  710. return source.Provider.ExecuteAsync<bool>(Expression.Call(ContainsAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(value, typeof(TSource)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  711. }
  712. private static MethodInfo? s_ContainsAsync__TSource__4__0;
  713. private static MethodInfo? ContainsAsync__TSource__4__0(Type TSource) =>
  714. (s_ContainsAsync__TSource__4__0 ??
  715. (s_ContainsAsync__TSource__4__0 = new Func<IAsyncQueryable<object>, object, IEqualityComparer<object>, CancellationToken, ValueTask<bool>>(ContainsAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  716. public static ValueTask<bool> ContainsAsync<TSource>(this IAsyncQueryable<TSource> source, TSource value, IEqualityComparer<TSource>? comparer, CancellationToken cancellationToken = default)
  717. {
  718. if (source == null)
  719. throw new ArgumentNullException(nameof(source));
  720. return source.Provider.ExecuteAsync<bool>(Expression.Call(ContainsAsync__TSource__4__0(typeof(TSource)), source.Expression, Expression.Constant(value, typeof(TSource)), Expression.Constant(comparer, typeof(IEqualityComparer<TSource>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  721. }
  722. private static MethodInfo? s_CountAsync__TSource__2__0;
  723. private static MethodInfo? CountAsync__TSource__2__0(Type TSource) =>
  724. (s_CountAsync__TSource__2__0 ??
  725. (s_CountAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<int>>(CountAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  726. public static ValueTask<int> CountAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  727. {
  728. if (source == null)
  729. throw new ArgumentNullException(nameof(source));
  730. return source.Provider.ExecuteAsync<int>(Expression.Call(CountAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  731. }
  732. private static MethodInfo? s_CountAsync__TSource__3__0;
  733. private static MethodInfo? CountAsync__TSource__3__0(Type TSource) =>
  734. (s_CountAsync__TSource__3__0 ??
  735. (s_CountAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<int>>(CountAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  736. public static ValueTask<int> CountAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  737. {
  738. if (source == null)
  739. throw new ArgumentNullException(nameof(source));
  740. if (predicate == null)
  741. throw new ArgumentNullException(nameof(predicate));
  742. return source.Provider.ExecuteAsync<int>(Expression.Call(CountAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  743. }
  744. private static MethodInfo? s_CountAwaitAsync__TSource__3__0;
  745. private static MethodInfo? CountAwaitAsync__TSource__3__0(Type TSource) =>
  746. (s_CountAwaitAsync__TSource__3__0 ??
  747. (s_CountAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<int>>(CountAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  748. public static ValueTask<int> CountAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  749. {
  750. if (source == null)
  751. throw new ArgumentNullException(nameof(source));
  752. if (predicate == null)
  753. throw new ArgumentNullException(nameof(predicate));
  754. return source.Provider.ExecuteAsync<int>(Expression.Call(CountAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  755. }
  756. private static MethodInfo? s_CountAwaitWithCancellationAsync__TSource__3__0;
  757. private static MethodInfo? CountAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  758. (s_CountAwaitWithCancellationAsync__TSource__3__0 ??
  759. (s_CountAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<int>>(CountAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  760. public static ValueTask<int> CountAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  761. {
  762. if (source == null)
  763. throw new ArgumentNullException(nameof(source));
  764. if (predicate == null)
  765. throw new ArgumentNullException(nameof(predicate));
  766. return source.Provider.ExecuteAsync<int>(Expression.Call(CountAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  767. }
  768. private static MethodInfo? s_DefaultIfEmpty__TSource__1__0;
  769. private static MethodInfo? DefaultIfEmpty__TSource__1__0(Type TSource) =>
  770. (s_DefaultIfEmpty__TSource__1__0 ??
  771. (s_DefaultIfEmpty__TSource__1__0 = new Func<IAsyncQueryable<object>, IAsyncQueryable<object>>(DefaultIfEmpty<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  772. public static IAsyncQueryable<TSource> DefaultIfEmpty<TSource>(this IAsyncQueryable<TSource> source)
  773. {
  774. if (source == null)
  775. throw new ArgumentNullException(nameof(source));
  776. return source.Provider.CreateQuery<TSource>(Expression.Call(DefaultIfEmpty__TSource__1__0(typeof(TSource)), source.Expression));
  777. }
  778. private static MethodInfo? s_DefaultIfEmpty__TSource__2__0;
  779. private static MethodInfo? DefaultIfEmpty__TSource__2__0(Type TSource) =>
  780. (s_DefaultIfEmpty__TSource__2__0 ??
  781. (s_DefaultIfEmpty__TSource__2__0 = new Func<IAsyncQueryable<object>, object, IAsyncQueryable<object>>(DefaultIfEmpty<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  782. public static IAsyncQueryable<TSource> DefaultIfEmpty<TSource>(this IAsyncQueryable<TSource> source, TSource defaultValue)
  783. {
  784. if (source == null)
  785. throw new ArgumentNullException(nameof(source));
  786. return source.Provider.CreateQuery<TSource>(Expression.Call(DefaultIfEmpty__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(defaultValue, typeof(TSource))));
  787. }
  788. private static MethodInfo? s_Distinct__TSource__1__0;
  789. private static MethodInfo? Distinct__TSource__1__0(Type TSource) =>
  790. (s_Distinct__TSource__1__0 ??
  791. (s_Distinct__TSource__1__0 = new Func<IAsyncQueryable<object>, IAsyncQueryable<object>>(Distinct<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  792. public static IAsyncQueryable<TSource> Distinct<TSource>(this IAsyncQueryable<TSource> source)
  793. {
  794. if (source == null)
  795. throw new ArgumentNullException(nameof(source));
  796. return source.Provider.CreateQuery<TSource>(Expression.Call(Distinct__TSource__1__0(typeof(TSource)), source.Expression));
  797. }
  798. private static MethodInfo? s_Distinct__TSource__2__0;
  799. private static MethodInfo? Distinct__TSource__2__0(Type TSource) =>
  800. (s_Distinct__TSource__2__0 ??
  801. (s_Distinct__TSource__2__0 = new Func<IAsyncQueryable<object>, IEqualityComparer<object>, IAsyncQueryable<object>>(Distinct<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  802. public static IAsyncQueryable<TSource> Distinct<TSource>(this IAsyncQueryable<TSource> source, IEqualityComparer<TSource>? comparer)
  803. {
  804. if (source == null)
  805. throw new ArgumentNullException(nameof(source));
  806. return source.Provider.CreateQuery<TSource>(Expression.Call(Distinct__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IEqualityComparer<TSource>))));
  807. }
  808. private static MethodInfo? s_ElementAtAsync__TSource__3__0;
  809. private static MethodInfo? ElementAtAsync__TSource__3__0(Type TSource) =>
  810. (s_ElementAtAsync__TSource__3__0 ??
  811. (s_ElementAtAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, int, CancellationToken, ValueTask<object>>(ElementAtAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  812. public static ValueTask<TSource> ElementAtAsync<TSource>(this IAsyncQueryable<TSource> source, int index, CancellationToken cancellationToken = default)
  813. {
  814. if (source == null)
  815. throw new ArgumentNullException(nameof(source));
  816. return source.Provider.ExecuteAsync<TSource>(Expression.Call(ElementAtAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(index, typeof(int)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  817. }
  818. private static MethodInfo? s_ElementAtOrDefaultAsync__TSource__3__0;
  819. private static MethodInfo? ElementAtOrDefaultAsync__TSource__3__0(Type TSource) =>
  820. (s_ElementAtOrDefaultAsync__TSource__3__0 ??
  821. (s_ElementAtOrDefaultAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, int, CancellationToken, ValueTask<object?>>(ElementAtOrDefaultAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  822. public static ValueTask<TSource?> ElementAtOrDefaultAsync<TSource>(this IAsyncQueryable<TSource> source, int index, CancellationToken cancellationToken = default)
  823. {
  824. if (source == null)
  825. throw new ArgumentNullException(nameof(source));
  826. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(ElementAtOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(index, typeof(int)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  827. }
  828. private static MethodInfo? s_Except__TSource__2__0;
  829. private static MethodInfo? Except__TSource__2__0(Type TSource) =>
  830. (s_Except__TSource__2__0 ??
  831. (s_Except__TSource__2__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IAsyncQueryable<object>>(Except<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  832. public static IAsyncQueryable<TSource> Except<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second)
  833. {
  834. if (first == null)
  835. throw new ArgumentNullException(nameof(first));
  836. if (second == null)
  837. throw new ArgumentNullException(nameof(second));
  838. return first.Provider.CreateQuery<TSource>(Expression.Call(Except__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second)));
  839. }
  840. private static MethodInfo? s_Except__TSource__3__0;
  841. private static MethodInfo? Except__TSource__3__0(Type TSource) =>
  842. (s_Except__TSource__3__0 ??
  843. (s_Except__TSource__3__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IEqualityComparer<object>, IAsyncQueryable<object>>(Except<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  844. public static IAsyncQueryable<TSource> Except<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource>? comparer)
  845. {
  846. if (first == null)
  847. throw new ArgumentNullException(nameof(first));
  848. if (second == null)
  849. throw new ArgumentNullException(nameof(second));
  850. return first.Provider.CreateQuery<TSource>(Expression.Call(Except__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer<TSource>))));
  851. }
  852. private static MethodInfo? s_FirstAsync__TSource__2__0;
  853. private static MethodInfo? FirstAsync__TSource__2__0(Type TSource) =>
  854. (s_FirstAsync__TSource__2__0 ??
  855. (s_FirstAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object>>(FirstAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  856. public static ValueTask<TSource> FirstAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  857. {
  858. if (source == null)
  859. throw new ArgumentNullException(nameof(source));
  860. return source.Provider.ExecuteAsync<TSource>(Expression.Call(FirstAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  861. }
  862. private static MethodInfo? s_FirstAsync__TSource__3__0;
  863. private static MethodInfo? FirstAsync__TSource__3__0(Type TSource) =>
  864. (s_FirstAsync__TSource__3__0 ??
  865. (s_FirstAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<object>>(FirstAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  866. public static ValueTask<TSource> FirstAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  867. {
  868. if (source == null)
  869. throw new ArgumentNullException(nameof(source));
  870. if (predicate == null)
  871. throw new ArgumentNullException(nameof(predicate));
  872. return source.Provider.ExecuteAsync<TSource>(Expression.Call(FirstAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  873. }
  874. private static MethodInfo? s_FirstAwaitAsync__TSource__3__0;
  875. private static MethodInfo? FirstAwaitAsync__TSource__3__0(Type TSource) =>
  876. (s_FirstAwaitAsync__TSource__3__0 ??
  877. (s_FirstAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<object>>(FirstAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  878. public static ValueTask<TSource> FirstAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  879. {
  880. if (source == null)
  881. throw new ArgumentNullException(nameof(source));
  882. if (predicate == null)
  883. throw new ArgumentNullException(nameof(predicate));
  884. return source.Provider.ExecuteAsync<TSource>(Expression.Call(FirstAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  885. }
  886. private static MethodInfo? s_FirstAwaitWithCancellationAsync__TSource__3__0;
  887. private static MethodInfo? FirstAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  888. (s_FirstAwaitWithCancellationAsync__TSource__3__0 ??
  889. (s_FirstAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<object>>(FirstAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  890. public static ValueTask<TSource> FirstAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  891. {
  892. if (source == null)
  893. throw new ArgumentNullException(nameof(source));
  894. if (predicate == null)
  895. throw new ArgumentNullException(nameof(predicate));
  896. return source.Provider.ExecuteAsync<TSource>(Expression.Call(FirstAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  897. }
  898. private static MethodInfo? s_FirstOrDefaultAsync__TSource__2__0;
  899. private static MethodInfo? FirstOrDefaultAsync__TSource__2__0(Type TSource) =>
  900. (s_FirstOrDefaultAsync__TSource__2__0 ??
  901. (s_FirstOrDefaultAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object?>>(FirstOrDefaultAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  902. public static ValueTask<TSource?> FirstOrDefaultAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  903. {
  904. if (source == null)
  905. throw new ArgumentNullException(nameof(source));
  906. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(FirstOrDefaultAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  907. }
  908. private static MethodInfo? s_FirstOrDefaultAsync__TSource__3__0;
  909. private static MethodInfo? FirstOrDefaultAsync__TSource__3__0(Type TSource) =>
  910. (s_FirstOrDefaultAsync__TSource__3__0 ??
  911. (s_FirstOrDefaultAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<object?>>(FirstOrDefaultAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  912. public static ValueTask<TSource?> FirstOrDefaultAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  913. {
  914. if (source == null)
  915. throw new ArgumentNullException(nameof(source));
  916. if (predicate == null)
  917. throw new ArgumentNullException(nameof(predicate));
  918. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(FirstOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  919. }
  920. private static MethodInfo? s_FirstOrDefaultAwaitAsync__TSource__3__0;
  921. private static MethodInfo? FirstOrDefaultAwaitAsync__TSource__3__0(Type TSource) =>
  922. (s_FirstOrDefaultAwaitAsync__TSource__3__0 ??
  923. (s_FirstOrDefaultAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<object?>>(FirstOrDefaultAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  924. public static ValueTask<TSource?> FirstOrDefaultAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  925. {
  926. if (source == null)
  927. throw new ArgumentNullException(nameof(source));
  928. if (predicate == null)
  929. throw new ArgumentNullException(nameof(predicate));
  930. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(FirstOrDefaultAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  931. }
  932. private static MethodInfo? s_FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0;
  933. private static MethodInfo? FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  934. (s_FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0 ??
  935. (s_FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<object?>>(FirstOrDefaultAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  936. public static ValueTask<TSource?> FirstOrDefaultAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  937. {
  938. if (source == null)
  939. throw new ArgumentNullException(nameof(source));
  940. if (predicate == null)
  941. throw new ArgumentNullException(nameof(predicate));
  942. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(FirstOrDefaultAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  943. }
  944. private static MethodInfo? s_GroupBy__TSource_TKey__2__0;
  945. private static MethodInfo? GroupBy__TSource_TKey__2__0(Type TSource, Type TKey) =>
  946. (s_GroupBy__TSource_TKey__2__0 ??
  947. (s_GroupBy__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupBy<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  948. public static IAsyncQueryable<IAsyncGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
  949. {
  950. if (source == null)
  951. throw new ArgumentNullException(nameof(source));
  952. if (keySelector == null)
  953. throw new ArgumentNullException(nameof(keySelector));
  954. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TSource>>(Expression.Call(GroupBy__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  955. }
  956. private static MethodInfo? s_GroupBy__TSource_TKey__3__0;
  957. private static MethodInfo? GroupBy__TSource_TKey__3__0(Type TSource, Type TKey) =>
  958. (s_GroupBy__TSource_TKey__3__0 ??
  959. (s_GroupBy__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IEqualityComparer<object>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupBy<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  960. public static IAsyncQueryable<IAsyncGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
  961. {
  962. if (source == null)
  963. throw new ArgumentNullException(nameof(source));
  964. if (keySelector == null)
  965. throw new ArgumentNullException(nameof(keySelector));
  966. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TSource>>(Expression.Call(GroupBy__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  967. }
  968. private static MethodInfo? s_GroupBy__TSource_TKey_TResult__3__0;
  969. private static MethodInfo? GroupBy__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) =>
  970. (s_GroupBy__TSource_TKey_TResult__3__0 ??
  971. (s_GroupBy__TSource_TKey_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, IAsyncEnumerable<object>, object>>, IAsyncQueryable<object>>(GroupBy<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult);
  972. public static IAsyncQueryable<TResult> GroupBy<TSource, TKey, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IAsyncEnumerable<TSource>, TResult>> resultSelector)
  973. {
  974. if (source == null)
  975. throw new ArgumentNullException(nameof(source));
  976. if (keySelector == null)
  977. throw new ArgumentNullException(nameof(keySelector));
  978. if (resultSelector == null)
  979. throw new ArgumentNullException(nameof(resultSelector));
  980. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupBy__TSource_TKey_TResult__3__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector));
  981. }
  982. private static MethodInfo? s_GroupBy__TSource_TKey_TElement__3__0;
  983. private static MethodInfo? GroupBy__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) =>
  984. (s_GroupBy__TSource_TKey_TElement__3__0 ??
  985. (s_GroupBy__TSource_TKey_TElement__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupBy<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  986. public static IAsyncQueryable<IAsyncGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector)
  987. {
  988. if (source == null)
  989. throw new ArgumentNullException(nameof(source));
  990. if (keySelector == null)
  991. throw new ArgumentNullException(nameof(keySelector));
  992. if (elementSelector == null)
  993. throw new ArgumentNullException(nameof(elementSelector));
  994. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TElement>>(Expression.Call(GroupBy__TSource_TKey_TElement__3__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector));
  995. }
  996. private static MethodInfo? s_GroupBy__TSource_TKey_TResult__4__0;
  997. private static MethodInfo? GroupBy__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) =>
  998. (s_GroupBy__TSource_TKey_TResult__4__0 ??
  999. (s_GroupBy__TSource_TKey_TResult__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, IAsyncEnumerable<object>, object>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupBy<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult);
  1000. public static IAsyncQueryable<TResult> GroupBy<TSource, TKey, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IAsyncEnumerable<TSource>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
  1001. {
  1002. if (source == null)
  1003. throw new ArgumentNullException(nameof(source));
  1004. if (keySelector == null)
  1005. throw new ArgumentNullException(nameof(keySelector));
  1006. if (resultSelector == null)
  1007. throw new ArgumentNullException(nameof(resultSelector));
  1008. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupBy__TSource_TKey_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1009. }
  1010. private static MethodInfo? s_GroupBy__TSource_TKey_TElement__4__0;
  1011. private static MethodInfo? GroupBy__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  1012. (s_GroupBy__TSource_TKey_TElement__4__0 ??
  1013. (s_GroupBy__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, IEqualityComparer<object>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupBy<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  1014. public static IAsyncQueryable<IAsyncGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, IEqualityComparer<TKey>? comparer)
  1015. {
  1016. if (source == null)
  1017. throw new ArgumentNullException(nameof(source));
  1018. if (keySelector == null)
  1019. throw new ArgumentNullException(nameof(keySelector));
  1020. if (elementSelector == null)
  1021. throw new ArgumentNullException(nameof(elementSelector));
  1022. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TElement>>(Expression.Call(GroupBy__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1023. }
  1024. private static MethodInfo? s_GroupBy__TSource_TKey_TElement_TResult__4__0;
  1025. private static MethodInfo? GroupBy__TSource_TKey_TElement_TResult__4__0(Type TSource, Type TKey, Type TElement, Type TResult) =>
  1026. (s_GroupBy__TSource_TKey_TElement_TResult__4__0 ??
  1027. (s_GroupBy__TSource_TKey_TElement_TResult__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, Expression<Func<object, IAsyncEnumerable<object>, object>>, IAsyncQueryable<object>>(GroupBy<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult);
  1028. public static IAsyncQueryable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IAsyncEnumerable<TElement>, TResult>> resultSelector)
  1029. {
  1030. if (source == null)
  1031. throw new ArgumentNullException(nameof(source));
  1032. if (keySelector == null)
  1033. throw new ArgumentNullException(nameof(keySelector));
  1034. if (elementSelector == null)
  1035. throw new ArgumentNullException(nameof(elementSelector));
  1036. if (resultSelector == null)
  1037. throw new ArgumentNullException(nameof(resultSelector));
  1038. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupBy__TSource_TKey_TElement_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector));
  1039. }
  1040. private static MethodInfo? s_GroupBy__TSource_TKey_TElement_TResult__5__0;
  1041. private static MethodInfo? GroupBy__TSource_TKey_TElement_TResult__5__0(Type TSource, Type TKey, Type TElement, Type TResult) =>
  1042. (s_GroupBy__TSource_TKey_TElement_TResult__5__0 ??
  1043. (s_GroupBy__TSource_TKey_TElement_TResult__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, Expression<Func<object, IAsyncEnumerable<object>, object>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupBy<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult);
  1044. public static IAsyncQueryable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IAsyncEnumerable<TElement>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
  1045. {
  1046. if (source == null)
  1047. throw new ArgumentNullException(nameof(source));
  1048. if (keySelector == null)
  1049. throw new ArgumentNullException(nameof(keySelector));
  1050. if (elementSelector == null)
  1051. throw new ArgumentNullException(nameof(elementSelector));
  1052. if (resultSelector == null)
  1053. throw new ArgumentNullException(nameof(resultSelector));
  1054. return source.Provider.CreateQuery<TResult>(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<TKey>))));
  1055. }
  1056. private static MethodInfo? s_GroupByAwait__TSource_TKey__2__0;
  1057. private static MethodInfo? GroupByAwait__TSource_TKey__2__0(Type TSource, Type TKey) =>
  1058. (s_GroupByAwait__TSource_TKey__2__0 ??
  1059. (s_GroupByAwait__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  1060. public static IAsyncQueryable<IAsyncGrouping<TKey, TSource>> GroupByAwait<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector)
  1061. {
  1062. if (source == null)
  1063. throw new ArgumentNullException(nameof(source));
  1064. if (keySelector == null)
  1065. throw new ArgumentNullException(nameof(keySelector));
  1066. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TSource>>(Expression.Call(GroupByAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  1067. }
  1068. private static MethodInfo? s_GroupByAwait__TSource_TKey__3__0;
  1069. private static MethodInfo? GroupByAwait__TSource_TKey__3__0(Type TSource, Type TKey) =>
  1070. (s_GroupByAwait__TSource_TKey__3__0 ??
  1071. (s_GroupByAwait__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  1072. public static IAsyncQueryable<IAsyncGrouping<TKey, TSource>> GroupByAwait<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, IEqualityComparer<TKey>? comparer)
  1073. {
  1074. if (source == null)
  1075. throw new ArgumentNullException(nameof(source));
  1076. if (keySelector == null)
  1077. throw new ArgumentNullException(nameof(keySelector));
  1078. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TSource>>(Expression.Call(GroupByAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1079. }
  1080. private static MethodInfo? s_GroupByAwait__TSource_TKey_TResult__3__0;
  1081. private static MethodInfo? GroupByAwait__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) =>
  1082. (s_GroupByAwait__TSource_TKey_TResult__3__0 ??
  1083. (s_GroupByAwait__TSource_TKey_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, ValueTask<object>>>, IAsyncQueryable<object>>(GroupByAwait<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult);
  1084. public static IAsyncQueryable<TResult> GroupByAwait<TSource, TKey, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TKey, IAsyncEnumerable<TSource>, ValueTask<TResult>>> resultSelector)
  1085. {
  1086. if (source == null)
  1087. throw new ArgumentNullException(nameof(source));
  1088. if (keySelector == null)
  1089. throw new ArgumentNullException(nameof(keySelector));
  1090. if (resultSelector == null)
  1091. throw new ArgumentNullException(nameof(resultSelector));
  1092. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupByAwait__TSource_TKey_TResult__3__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector));
  1093. }
  1094. private static MethodInfo? s_GroupByAwait__TSource_TKey_TElement__3__0;
  1095. private static MethodInfo? GroupByAwait__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) =>
  1096. (s_GroupByAwait__TSource_TKey_TElement__3__0 ??
  1097. (s_GroupByAwait__TSource_TKey_TElement__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwait<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  1098. public static IAsyncQueryable<IAsyncGrouping<TKey, TElement>> GroupByAwait<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector)
  1099. {
  1100. if (source == null)
  1101. throw new ArgumentNullException(nameof(source));
  1102. if (keySelector == null)
  1103. throw new ArgumentNullException(nameof(keySelector));
  1104. if (elementSelector == null)
  1105. throw new ArgumentNullException(nameof(elementSelector));
  1106. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TElement>>(Expression.Call(GroupByAwait__TSource_TKey_TElement__3__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector));
  1107. }
  1108. private static MethodInfo? s_GroupByAwait__TSource_TKey_TResult__4__0;
  1109. private static MethodInfo? GroupByAwait__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) =>
  1110. (s_GroupByAwait__TSource_TKey_TResult__4__0 ??
  1111. (s_GroupByAwait__TSource_TKey_TResult__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupByAwait<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult);
  1112. public static IAsyncQueryable<TResult> GroupByAwait<TSource, TKey, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TKey, IAsyncEnumerable<TSource>, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1113. {
  1114. if (source == null)
  1115. throw new ArgumentNullException(nameof(source));
  1116. if (keySelector == null)
  1117. throw new ArgumentNullException(nameof(keySelector));
  1118. if (resultSelector == null)
  1119. throw new ArgumentNullException(nameof(resultSelector));
  1120. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupByAwait__TSource_TKey_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1121. }
  1122. private static MethodInfo? s_GroupByAwait__TSource_TKey_TElement__4__0;
  1123. private static MethodInfo? GroupByAwait__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  1124. (s_GroupByAwait__TSource_TKey_TElement__4__0 ??
  1125. (s_GroupByAwait__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwait<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  1126. public static IAsyncQueryable<IAsyncGrouping<TKey, TElement>> GroupByAwait<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector, IEqualityComparer<TKey>? comparer)
  1127. {
  1128. if (source == null)
  1129. throw new ArgumentNullException(nameof(source));
  1130. if (keySelector == null)
  1131. throw new ArgumentNullException(nameof(keySelector));
  1132. if (elementSelector == null)
  1133. throw new ArgumentNullException(nameof(elementSelector));
  1134. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TElement>>(Expression.Call(GroupByAwait__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1135. }
  1136. private static MethodInfo? s_GroupByAwait__TSource_TKey_TElement_TResult__4__0;
  1137. private static MethodInfo? GroupByAwait__TSource_TKey_TElement_TResult__4__0(Type TSource, Type TKey, Type TElement, Type TResult) =>
  1138. (s_GroupByAwait__TSource_TKey_TElement_TResult__4__0 ??
  1139. (s_GroupByAwait__TSource_TKey_TElement_TResult__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, ValueTask<object>>>, IAsyncQueryable<object>>(GroupByAwait<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult);
  1140. public static IAsyncQueryable<TResult> GroupByAwait<TSource, TKey, TElement, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector, Expression<Func<TKey, IAsyncEnumerable<TElement>, ValueTask<TResult>>> resultSelector)
  1141. {
  1142. if (source == null)
  1143. throw new ArgumentNullException(nameof(source));
  1144. if (keySelector == null)
  1145. throw new ArgumentNullException(nameof(keySelector));
  1146. if (elementSelector == null)
  1147. throw new ArgumentNullException(nameof(elementSelector));
  1148. if (resultSelector == null)
  1149. throw new ArgumentNullException(nameof(resultSelector));
  1150. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupByAwait__TSource_TKey_TElement_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector));
  1151. }
  1152. private static MethodInfo? s_GroupByAwait__TSource_TKey_TElement_TResult__5__0;
  1153. private static MethodInfo? GroupByAwait__TSource_TKey_TElement_TResult__5__0(Type TSource, Type TKey, Type TElement, Type TResult) =>
  1154. (s_GroupByAwait__TSource_TKey_TElement_TResult__5__0 ??
  1155. (s_GroupByAwait__TSource_TKey_TElement_TResult__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupByAwait<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult);
  1156. public static IAsyncQueryable<TResult> GroupByAwait<TSource, TKey, TElement, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector, Expression<Func<TKey, IAsyncEnumerable<TElement>, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1157. {
  1158. if (source == null)
  1159. throw new ArgumentNullException(nameof(source));
  1160. if (keySelector == null)
  1161. throw new ArgumentNullException(nameof(keySelector));
  1162. if (elementSelector == null)
  1163. throw new ArgumentNullException(nameof(elementSelector));
  1164. if (resultSelector == null)
  1165. throw new ArgumentNullException(nameof(resultSelector));
  1166. return source.Provider.CreateQuery<TResult>(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<TKey>))));
  1167. }
  1168. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey__2__0;
  1169. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) =>
  1170. (s_GroupByAwaitWithCancellation__TSource_TKey__2__0 ??
  1171. (s_GroupByAwaitWithCancellation__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  1172. public static IAsyncQueryable<IAsyncGrouping<TKey, TSource>> GroupByAwaitWithCancellation<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector)
  1173. {
  1174. if (source == null)
  1175. throw new ArgumentNullException(nameof(source));
  1176. if (keySelector == null)
  1177. throw new ArgumentNullException(nameof(keySelector));
  1178. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TSource>>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  1179. }
  1180. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey__3__0;
  1181. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) =>
  1182. (s_GroupByAwaitWithCancellation__TSource_TKey__3__0 ??
  1183. (s_GroupByAwaitWithCancellation__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  1184. public static IAsyncQueryable<IAsyncGrouping<TKey, TSource>> GroupByAwaitWithCancellation<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, IEqualityComparer<TKey>? comparer)
  1185. {
  1186. if (source == null)
  1187. throw new ArgumentNullException(nameof(source));
  1188. if (keySelector == null)
  1189. throw new ArgumentNullException(nameof(keySelector));
  1190. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TSource>>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1191. }
  1192. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0;
  1193. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0(Type TSource, Type TKey, Type TResult) =>
  1194. (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0 ??
  1195. (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(GroupByAwaitWithCancellation<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult);
  1196. public static IAsyncQueryable<TResult> GroupByAwaitWithCancellation<TSource, TKey, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TKey, IAsyncEnumerable<TSource>, CancellationToken, ValueTask<TResult>>> resultSelector)
  1197. {
  1198. if (source == null)
  1199. throw new ArgumentNullException(nameof(source));
  1200. if (keySelector == null)
  1201. throw new ArgumentNullException(nameof(keySelector));
  1202. if (resultSelector == null)
  1203. throw new ArgumentNullException(nameof(resultSelector));
  1204. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TResult__3__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector));
  1205. }
  1206. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0;
  1207. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0(Type TSource, Type TKey, Type TElement) =>
  1208. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0 ??
  1209. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwaitWithCancellation<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  1210. public static IAsyncQueryable<IAsyncGrouping<TKey, TElement>> GroupByAwaitWithCancellation<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector)
  1211. {
  1212. if (source == null)
  1213. throw new ArgumentNullException(nameof(source));
  1214. if (keySelector == null)
  1215. throw new ArgumentNullException(nameof(keySelector));
  1216. if (elementSelector == null)
  1217. throw new ArgumentNullException(nameof(elementSelector));
  1218. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TElement>>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TElement__3__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector));
  1219. }
  1220. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0;
  1221. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0(Type TSource, Type TKey, Type TResult) =>
  1222. (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0 ??
  1223. (s_GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupByAwaitWithCancellation<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TResult);
  1224. public static IAsyncQueryable<TResult> GroupByAwaitWithCancellation<TSource, TKey, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TKey, IAsyncEnumerable<TSource>, CancellationToken, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1225. {
  1226. if (source == null)
  1227. throw new ArgumentNullException(nameof(source));
  1228. if (keySelector == null)
  1229. throw new ArgumentNullException(nameof(keySelector));
  1230. if (resultSelector == null)
  1231. throw new ArgumentNullException(nameof(resultSelector));
  1232. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, keySelector, resultSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1233. }
  1234. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0;
  1235. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  1236. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0 ??
  1237. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<IAsyncGrouping<object, object>>>(GroupByAwaitWithCancellation<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  1238. public static IAsyncQueryable<IAsyncGrouping<TKey, TElement>> GroupByAwaitWithCancellation<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector, IEqualityComparer<TKey>? comparer)
  1239. {
  1240. if (source == null)
  1241. throw new ArgumentNullException(nameof(source));
  1242. if (keySelector == null)
  1243. throw new ArgumentNullException(nameof(keySelector));
  1244. if (elementSelector == null)
  1245. throw new ArgumentNullException(nameof(elementSelector));
  1246. return source.Provider.CreateQuery<IAsyncGrouping<TKey, TElement>>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>))));
  1247. }
  1248. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0;
  1249. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0(Type TSource, Type TKey, Type TElement, Type TResult) =>
  1250. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0 ??
  1251. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(GroupByAwaitWithCancellation<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult);
  1252. public static IAsyncQueryable<TResult> GroupByAwaitWithCancellation<TSource, TKey, TElement, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector, Expression<Func<TKey, IAsyncEnumerable<TElement>, CancellationToken, ValueTask<TResult>>> resultSelector)
  1253. {
  1254. if (source == null)
  1255. throw new ArgumentNullException(nameof(source));
  1256. if (keySelector == null)
  1257. throw new ArgumentNullException(nameof(keySelector));
  1258. if (elementSelector == null)
  1259. throw new ArgumentNullException(nameof(elementSelector));
  1260. if (resultSelector == null)
  1261. throw new ArgumentNullException(nameof(resultSelector));
  1262. return source.Provider.CreateQuery<TResult>(Expression.Call(GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__4__0(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, keySelector, elementSelector, resultSelector));
  1263. }
  1264. private static MethodInfo? s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0;
  1265. private static MethodInfo? GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0(Type TSource, Type TKey, Type TElement, Type TResult) =>
  1266. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0 ??
  1267. (s_GroupByAwaitWithCancellation__TSource_TKey_TElement_TResult__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupByAwaitWithCancellation<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement, TResult);
  1268. public static IAsyncQueryable<TResult> GroupByAwaitWithCancellation<TSource, TKey, TElement, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector, Expression<Func<TKey, IAsyncEnumerable<TElement>, CancellationToken, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1269. {
  1270. if (source == null)
  1271. throw new ArgumentNullException(nameof(source));
  1272. if (keySelector == null)
  1273. throw new ArgumentNullException(nameof(keySelector));
  1274. if (elementSelector == null)
  1275. throw new ArgumentNullException(nameof(elementSelector));
  1276. if (resultSelector == null)
  1277. throw new ArgumentNullException(nameof(resultSelector));
  1278. return source.Provider.CreateQuery<TResult>(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<TKey>))));
  1279. }
  1280. private static MethodInfo? s_GroupJoin__TOuter_TInner_TKey_TResult__5__0;
  1281. private static MethodInfo? GroupJoin__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1282. (s_GroupJoin__TOuter_TInner_TKey_TResult__5__0 ??
  1283. (s_GroupJoin__TOuter_TInner_TKey_TResult__5__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, Expression<Func<object, IAsyncEnumerable<object>, object>>, IAsyncQueryable<object>>(GroupJoin<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1284. public static IAsyncQueryable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IAsyncEnumerable<TInner>, TResult>> resultSelector)
  1285. {
  1286. if (outer == null)
  1287. throw new ArgumentNullException(nameof(outer));
  1288. if (inner == null)
  1289. throw new ArgumentNullException(nameof(inner));
  1290. if (outerKeySelector == null)
  1291. throw new ArgumentNullException(nameof(outerKeySelector));
  1292. if (innerKeySelector == null)
  1293. throw new ArgumentNullException(nameof(innerKeySelector));
  1294. if (resultSelector == null)
  1295. throw new ArgumentNullException(nameof(resultSelector));
  1296. return outer.Provider.CreateQuery<TResult>(Expression.Call(GroupJoin__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector));
  1297. }
  1298. private static MethodInfo? s_GroupJoin__TOuter_TInner_TKey_TResult__6__0;
  1299. private static MethodInfo? GroupJoin__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1300. (s_GroupJoin__TOuter_TInner_TKey_TResult__6__0 ??
  1301. (s_GroupJoin__TOuter_TInner_TKey_TResult__6__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, Expression<Func<object, IAsyncEnumerable<object>, object>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupJoin<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1302. public static IAsyncQueryable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IAsyncEnumerable<TInner>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
  1303. {
  1304. if (outer == null)
  1305. throw new ArgumentNullException(nameof(outer));
  1306. if (inner == null)
  1307. throw new ArgumentNullException(nameof(inner));
  1308. if (outerKeySelector == null)
  1309. throw new ArgumentNullException(nameof(outerKeySelector));
  1310. if (innerKeySelector == null)
  1311. throw new ArgumentNullException(nameof(innerKeySelector));
  1312. if (resultSelector == null)
  1313. throw new ArgumentNullException(nameof(resultSelector));
  1314. return outer.Provider.CreateQuery<TResult>(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<TKey>))));
  1315. }
  1316. private static MethodInfo? s_GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0;
  1317. private static MethodInfo? GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1318. (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0 ??
  1319. (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, ValueTask<object>>>, IAsyncQueryable<object>>(GroupJoinAwait<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1320. public static IAsyncQueryable<TResult> GroupJoinAwait<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, IAsyncEnumerable<TInner>, ValueTask<TResult>>> resultSelector)
  1321. {
  1322. if (outer == null)
  1323. throw new ArgumentNullException(nameof(outer));
  1324. if (inner == null)
  1325. throw new ArgumentNullException(nameof(inner));
  1326. if (outerKeySelector == null)
  1327. throw new ArgumentNullException(nameof(outerKeySelector));
  1328. if (innerKeySelector == null)
  1329. throw new ArgumentNullException(nameof(innerKeySelector));
  1330. if (resultSelector == null)
  1331. throw new ArgumentNullException(nameof(resultSelector));
  1332. return outer.Provider.CreateQuery<TResult>(Expression.Call(GroupJoinAwait__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector));
  1333. }
  1334. private static MethodInfo? s_GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0;
  1335. private static MethodInfo? GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1336. (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0 ??
  1337. (s_GroupJoinAwait__TOuter_TInner_TKey_TResult__6__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupJoinAwait<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1338. public static IAsyncQueryable<TResult> GroupJoinAwait<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, IAsyncEnumerable<TInner>, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1339. {
  1340. if (outer == null)
  1341. throw new ArgumentNullException(nameof(outer));
  1342. if (inner == null)
  1343. throw new ArgumentNullException(nameof(inner));
  1344. if (outerKeySelector == null)
  1345. throw new ArgumentNullException(nameof(outerKeySelector));
  1346. if (innerKeySelector == null)
  1347. throw new ArgumentNullException(nameof(innerKeySelector));
  1348. if (resultSelector == null)
  1349. throw new ArgumentNullException(nameof(resultSelector));
  1350. return outer.Provider.CreateQuery<TResult>(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<TKey>))));
  1351. }
  1352. private static MethodInfo? s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0;
  1353. private static MethodInfo? GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1354. (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 ??
  1355. (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(GroupJoinAwaitWithCancellation<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1356. public static IAsyncQueryable<TResult> GroupJoinAwaitWithCancellation<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, CancellationToken, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, CancellationToken, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, IAsyncEnumerable<TInner>, CancellationToken, ValueTask<TResult>>> resultSelector)
  1357. {
  1358. if (outer == null)
  1359. throw new ArgumentNullException(nameof(outer));
  1360. if (inner == null)
  1361. throw new ArgumentNullException(nameof(inner));
  1362. if (outerKeySelector == null)
  1363. throw new ArgumentNullException(nameof(outerKeySelector));
  1364. if (innerKeySelector == null)
  1365. throw new ArgumentNullException(nameof(innerKeySelector));
  1366. if (resultSelector == null)
  1367. throw new ArgumentNullException(nameof(resultSelector));
  1368. return outer.Provider.CreateQuery<TResult>(Expression.Call(GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector));
  1369. }
  1370. private static MethodInfo? s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0;
  1371. private static MethodInfo? GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1372. (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 ??
  1373. (s_GroupJoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, IAsyncEnumerable<object>, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(GroupJoinAwaitWithCancellation<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1374. public static IAsyncQueryable<TResult> GroupJoinAwaitWithCancellation<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, CancellationToken, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, CancellationToken, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, IAsyncEnumerable<TInner>, CancellationToken, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1375. {
  1376. if (outer == null)
  1377. throw new ArgumentNullException(nameof(outer));
  1378. if (inner == null)
  1379. throw new ArgumentNullException(nameof(inner));
  1380. if (outerKeySelector == null)
  1381. throw new ArgumentNullException(nameof(outerKeySelector));
  1382. if (innerKeySelector == null)
  1383. throw new ArgumentNullException(nameof(innerKeySelector));
  1384. if (resultSelector == null)
  1385. throw new ArgumentNullException(nameof(resultSelector));
  1386. return outer.Provider.CreateQuery<TResult>(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<TKey>))));
  1387. }
  1388. private static MethodInfo? s_Intersect__TSource__2__0;
  1389. private static MethodInfo? Intersect__TSource__2__0(Type TSource) =>
  1390. (s_Intersect__TSource__2__0 ??
  1391. (s_Intersect__TSource__2__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IAsyncQueryable<object>>(Intersect<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1392. public static IAsyncQueryable<TSource> Intersect<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second)
  1393. {
  1394. if (first == null)
  1395. throw new ArgumentNullException(nameof(first));
  1396. if (second == null)
  1397. throw new ArgumentNullException(nameof(second));
  1398. return first.Provider.CreateQuery<TSource>(Expression.Call(Intersect__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second)));
  1399. }
  1400. private static MethodInfo? s_Intersect__TSource__3__0;
  1401. private static MethodInfo? Intersect__TSource__3__0(Type TSource) =>
  1402. (s_Intersect__TSource__3__0 ??
  1403. (s_Intersect__TSource__3__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IEqualityComparer<object>, IAsyncQueryable<object>>(Intersect<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1404. public static IAsyncQueryable<TSource> Intersect<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource>? comparer)
  1405. {
  1406. if (first == null)
  1407. throw new ArgumentNullException(nameof(first));
  1408. if (second == null)
  1409. throw new ArgumentNullException(nameof(second));
  1410. return first.Provider.CreateQuery<TSource>(Expression.Call(Intersect__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer<TSource>))));
  1411. }
  1412. private static MethodInfo? s_Join__TOuter_TInner_TKey_TResult__5__0;
  1413. private static MethodInfo? Join__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1414. (s_Join__TOuter_TInner_TKey_TResult__5__0 ??
  1415. (s_Join__TOuter_TInner_TKey_TResult__5__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, Expression<Func<object, object, object>>, IAsyncQueryable<object>>(Join<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1416. public static IAsyncQueryable<TResult> Join<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner, TResult>> resultSelector)
  1417. {
  1418. if (outer == null)
  1419. throw new ArgumentNullException(nameof(outer));
  1420. if (inner == null)
  1421. throw new ArgumentNullException(nameof(inner));
  1422. if (outerKeySelector == null)
  1423. throw new ArgumentNullException(nameof(outerKeySelector));
  1424. if (innerKeySelector == null)
  1425. throw new ArgumentNullException(nameof(innerKeySelector));
  1426. if (resultSelector == null)
  1427. throw new ArgumentNullException(nameof(resultSelector));
  1428. return outer.Provider.CreateQuery<TResult>(Expression.Call(Join__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector));
  1429. }
  1430. private static MethodInfo? s_Join__TOuter_TInner_TKey_TResult__6__0;
  1431. private static MethodInfo? Join__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1432. (s_Join__TOuter_TInner_TKey_TResult__6__0 ??
  1433. (s_Join__TOuter_TInner_TKey_TResult__6__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, Expression<Func<object, object, object>>, IEqualityComparer<object>, IAsyncQueryable<object>>(Join<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1434. public static IAsyncQueryable<TResult> Join<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
  1435. {
  1436. if (outer == null)
  1437. throw new ArgumentNullException(nameof(outer));
  1438. if (inner == null)
  1439. throw new ArgumentNullException(nameof(inner));
  1440. if (outerKeySelector == null)
  1441. throw new ArgumentNullException(nameof(outerKeySelector));
  1442. if (innerKeySelector == null)
  1443. throw new ArgumentNullException(nameof(innerKeySelector));
  1444. if (resultSelector == null)
  1445. throw new ArgumentNullException(nameof(resultSelector));
  1446. return outer.Provider.CreateQuery<TResult>(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<TKey>))));
  1447. }
  1448. private static MethodInfo? s_JoinAwait__TOuter_TInner_TKey_TResult__5__0;
  1449. private static MethodInfo? JoinAwait__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1450. (s_JoinAwait__TOuter_TInner_TKey_TResult__5__0 ??
  1451. (s_JoinAwait__TOuter_TInner_TKey_TResult__5__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, object, ValueTask<object>>>, IAsyncQueryable<object>>(JoinAwait<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1452. public static IAsyncQueryable<TResult> JoinAwait<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, TInner, ValueTask<TResult>>> resultSelector)
  1453. {
  1454. if (outer == null)
  1455. throw new ArgumentNullException(nameof(outer));
  1456. if (inner == null)
  1457. throw new ArgumentNullException(nameof(inner));
  1458. if (outerKeySelector == null)
  1459. throw new ArgumentNullException(nameof(outerKeySelector));
  1460. if (innerKeySelector == null)
  1461. throw new ArgumentNullException(nameof(innerKeySelector));
  1462. if (resultSelector == null)
  1463. throw new ArgumentNullException(nameof(resultSelector));
  1464. return outer.Provider.CreateQuery<TResult>(Expression.Call(JoinAwait__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector));
  1465. }
  1466. private static MethodInfo? s_JoinAwait__TOuter_TInner_TKey_TResult__6__0;
  1467. private static MethodInfo? JoinAwait__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1468. (s_JoinAwait__TOuter_TInner_TKey_TResult__6__0 ??
  1469. (s_JoinAwait__TOuter_TInner_TKey_TResult__6__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, object, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(JoinAwait<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1470. public static IAsyncQueryable<TResult> JoinAwait<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, TInner, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1471. {
  1472. if (outer == null)
  1473. throw new ArgumentNullException(nameof(outer));
  1474. if (inner == null)
  1475. throw new ArgumentNullException(nameof(inner));
  1476. if (outerKeySelector == null)
  1477. throw new ArgumentNullException(nameof(outerKeySelector));
  1478. if (innerKeySelector == null)
  1479. throw new ArgumentNullException(nameof(innerKeySelector));
  1480. if (resultSelector == null)
  1481. throw new ArgumentNullException(nameof(resultSelector));
  1482. return outer.Provider.CreateQuery<TResult>(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<TKey>))));
  1483. }
  1484. private static MethodInfo? s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0;
  1485. private static MethodInfo? JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1486. (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 ??
  1487. (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(JoinAwaitWithCancellation<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1488. public static IAsyncQueryable<TResult> JoinAwaitWithCancellation<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, CancellationToken, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, CancellationToken, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, TInner, CancellationToken, ValueTask<TResult>>> resultSelector)
  1489. {
  1490. if (outer == null)
  1491. throw new ArgumentNullException(nameof(outer));
  1492. if (inner == null)
  1493. throw new ArgumentNullException(nameof(inner));
  1494. if (outerKeySelector == null)
  1495. throw new ArgumentNullException(nameof(outerKeySelector));
  1496. if (innerKeySelector == null)
  1497. throw new ArgumentNullException(nameof(innerKeySelector));
  1498. if (resultSelector == null)
  1499. throw new ArgumentNullException(nameof(resultSelector));
  1500. return outer.Provider.CreateQuery<TResult>(Expression.Call(JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__5__0(typeof(TOuter), typeof(TInner), typeof(TKey), typeof(TResult)), outer.Expression, GetSourceExpression(inner), outerKeySelector, innerKeySelector, resultSelector));
  1501. }
  1502. private static MethodInfo? s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0;
  1503. private static MethodInfo? JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0(Type TOuter, Type TInner, Type TKey, Type TResult) =>
  1504. (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 ??
  1505. (s_JoinAwaitWithCancellation__TOuter_TInner_TKey_TResult__6__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, IAsyncQueryable<object>>(JoinAwaitWithCancellation<object, object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TOuter, TInner, TKey, TResult);
  1506. public static IAsyncQueryable<TResult> JoinAwaitWithCancellation<TOuter, TInner, TKey, TResult>(this IAsyncQueryable<TOuter> outer, IAsyncEnumerable<TInner> inner, Expression<Func<TOuter, CancellationToken, ValueTask<TKey>>> outerKeySelector, Expression<Func<TInner, CancellationToken, ValueTask<TKey>>> innerKeySelector, Expression<Func<TOuter, TInner, CancellationToken, ValueTask<TResult>>> resultSelector, IEqualityComparer<TKey>? comparer)
  1507. {
  1508. if (outer == null)
  1509. throw new ArgumentNullException(nameof(outer));
  1510. if (inner == null)
  1511. throw new ArgumentNullException(nameof(inner));
  1512. if (outerKeySelector == null)
  1513. throw new ArgumentNullException(nameof(outerKeySelector));
  1514. if (innerKeySelector == null)
  1515. throw new ArgumentNullException(nameof(innerKeySelector));
  1516. if (resultSelector == null)
  1517. throw new ArgumentNullException(nameof(resultSelector));
  1518. return outer.Provider.CreateQuery<TResult>(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<TKey>))));
  1519. }
  1520. private static MethodInfo? s_LastAsync__TSource__2__0;
  1521. private static MethodInfo? LastAsync__TSource__2__0(Type TSource) =>
  1522. (s_LastAsync__TSource__2__0 ??
  1523. (s_LastAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object>>(LastAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1524. public static ValueTask<TSource> LastAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  1525. {
  1526. if (source == null)
  1527. throw new ArgumentNullException(nameof(source));
  1528. return source.Provider.ExecuteAsync<TSource>(Expression.Call(LastAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1529. }
  1530. private static MethodInfo? s_LastAsync__TSource__3__0;
  1531. private static MethodInfo? LastAsync__TSource__3__0(Type TSource) =>
  1532. (s_LastAsync__TSource__3__0 ??
  1533. (s_LastAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<object>>(LastAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1534. public static ValueTask<TSource> LastAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  1535. {
  1536. if (source == null)
  1537. throw new ArgumentNullException(nameof(source));
  1538. if (predicate == null)
  1539. throw new ArgumentNullException(nameof(predicate));
  1540. return source.Provider.ExecuteAsync<TSource>(Expression.Call(LastAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1541. }
  1542. private static MethodInfo? s_LastAwaitAsync__TSource__3__0;
  1543. private static MethodInfo? LastAwaitAsync__TSource__3__0(Type TSource) =>
  1544. (s_LastAwaitAsync__TSource__3__0 ??
  1545. (s_LastAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<object>>(LastAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1546. public static ValueTask<TSource> LastAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  1547. {
  1548. if (source == null)
  1549. throw new ArgumentNullException(nameof(source));
  1550. if (predicate == null)
  1551. throw new ArgumentNullException(nameof(predicate));
  1552. return source.Provider.ExecuteAsync<TSource>(Expression.Call(LastAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1553. }
  1554. private static MethodInfo? s_LastAwaitWithCancellationAsync__TSource__3__0;
  1555. private static MethodInfo? LastAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  1556. (s_LastAwaitWithCancellationAsync__TSource__3__0 ??
  1557. (s_LastAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<object>>(LastAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1558. public static ValueTask<TSource> LastAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  1559. {
  1560. if (source == null)
  1561. throw new ArgumentNullException(nameof(source));
  1562. if (predicate == null)
  1563. throw new ArgumentNullException(nameof(predicate));
  1564. return source.Provider.ExecuteAsync<TSource>(Expression.Call(LastAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1565. }
  1566. private static MethodInfo? s_LastOrDefaultAsync__TSource__2__0;
  1567. private static MethodInfo? LastOrDefaultAsync__TSource__2__0(Type TSource) =>
  1568. (s_LastOrDefaultAsync__TSource__2__0 ??
  1569. (s_LastOrDefaultAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object?>>(LastOrDefaultAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1570. public static ValueTask<TSource?> LastOrDefaultAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  1571. {
  1572. if (source == null)
  1573. throw new ArgumentNullException(nameof(source));
  1574. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(LastOrDefaultAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1575. }
  1576. private static MethodInfo? s_LastOrDefaultAsync__TSource__3__0;
  1577. private static MethodInfo? LastOrDefaultAsync__TSource__3__0(Type TSource) =>
  1578. (s_LastOrDefaultAsync__TSource__3__0 ??
  1579. (s_LastOrDefaultAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<object?>>(LastOrDefaultAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1580. public static ValueTask<TSource?> LastOrDefaultAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  1581. {
  1582. if (source == null)
  1583. throw new ArgumentNullException(nameof(source));
  1584. if (predicate == null)
  1585. throw new ArgumentNullException(nameof(predicate));
  1586. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(LastOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1587. }
  1588. private static MethodInfo? s_LastOrDefaultAwaitAsync__TSource__3__0;
  1589. private static MethodInfo? LastOrDefaultAwaitAsync__TSource__3__0(Type TSource) =>
  1590. (s_LastOrDefaultAwaitAsync__TSource__3__0 ??
  1591. (s_LastOrDefaultAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<object?>>(LastOrDefaultAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1592. public static ValueTask<TSource?> LastOrDefaultAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  1593. {
  1594. if (source == null)
  1595. throw new ArgumentNullException(nameof(source));
  1596. if (predicate == null)
  1597. throw new ArgumentNullException(nameof(predicate));
  1598. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(LastOrDefaultAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1599. }
  1600. private static MethodInfo? s_LastOrDefaultAwaitWithCancellationAsync__TSource__3__0;
  1601. private static MethodInfo? LastOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  1602. (s_LastOrDefaultAwaitWithCancellationAsync__TSource__3__0 ??
  1603. (s_LastOrDefaultAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<object?>>(LastOrDefaultAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1604. public static ValueTask<TSource?> LastOrDefaultAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  1605. {
  1606. if (source == null)
  1607. throw new ArgumentNullException(nameof(source));
  1608. if (predicate == null)
  1609. throw new ArgumentNullException(nameof(predicate));
  1610. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(LastOrDefaultAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1611. }
  1612. private static MethodInfo? s_LongCountAsync__TSource__2__0;
  1613. private static MethodInfo? LongCountAsync__TSource__2__0(Type TSource) =>
  1614. (s_LongCountAsync__TSource__2__0 ??
  1615. (s_LongCountAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<long>>(LongCountAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1616. public static ValueTask<long> LongCountAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  1617. {
  1618. if (source == null)
  1619. throw new ArgumentNullException(nameof(source));
  1620. return source.Provider.ExecuteAsync<long>(Expression.Call(LongCountAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1621. }
  1622. private static MethodInfo? s_LongCountAsync__TSource__3__0;
  1623. private static MethodInfo? LongCountAsync__TSource__3__0(Type TSource) =>
  1624. (s_LongCountAsync__TSource__3__0 ??
  1625. (s_LongCountAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<long>>(LongCountAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1626. public static ValueTask<long> LongCountAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  1627. {
  1628. if (source == null)
  1629. throw new ArgumentNullException(nameof(source));
  1630. if (predicate == null)
  1631. throw new ArgumentNullException(nameof(predicate));
  1632. return source.Provider.ExecuteAsync<long>(Expression.Call(LongCountAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1633. }
  1634. private static MethodInfo? s_LongCountAwaitAsync__TSource__3__0;
  1635. private static MethodInfo? LongCountAwaitAsync__TSource__3__0(Type TSource) =>
  1636. (s_LongCountAwaitAsync__TSource__3__0 ??
  1637. (s_LongCountAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<long>>(LongCountAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1638. public static ValueTask<long> LongCountAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  1639. {
  1640. if (source == null)
  1641. throw new ArgumentNullException(nameof(source));
  1642. if (predicate == null)
  1643. throw new ArgumentNullException(nameof(predicate));
  1644. return source.Provider.ExecuteAsync<long>(Expression.Call(LongCountAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1645. }
  1646. private static MethodInfo? s_LongCountAwaitWithCancellationAsync__TSource__3__0;
  1647. private static MethodInfo? LongCountAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  1648. (s_LongCountAwaitWithCancellationAsync__TSource__3__0 ??
  1649. (s_LongCountAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<long>>(LongCountAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1650. public static ValueTask<long> LongCountAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  1651. {
  1652. if (source == null)
  1653. throw new ArgumentNullException(nameof(source));
  1654. if (predicate == null)
  1655. throw new ArgumentNullException(nameof(predicate));
  1656. return source.Provider.ExecuteAsync<long>(Expression.Call(LongCountAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1657. }
  1658. private static MethodInfo? s_MaxAsync__2__0;
  1659. private static MethodInfo? MaxAsync__2__0 =>
  1660. (s_MaxAsync__2__0 ??
  1661. (s_MaxAsync__2__0 = new Func<IAsyncQueryable<decimal?>, CancellationToken, ValueTask<decimal?>>(MaxAsync).GetMethodInfo()));
  1662. public static ValueTask<decimal?> MaxAsync(this IAsyncQueryable<decimal?> source, CancellationToken cancellationToken = default)
  1663. {
  1664. if (source == null)
  1665. throw new ArgumentNullException(nameof(source));
  1666. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MaxAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1667. }
  1668. private static MethodInfo? s_MaxAsync__2__1;
  1669. private static MethodInfo? MaxAsync__2__1 =>
  1670. (s_MaxAsync__2__1 ??
  1671. (s_MaxAsync__2__1 = new Func<IAsyncQueryable<decimal>, CancellationToken, ValueTask<decimal>>(MaxAsync).GetMethodInfo()));
  1672. public static ValueTask<decimal> MaxAsync(this IAsyncQueryable<decimal> source, CancellationToken cancellationToken = default)
  1673. {
  1674. if (source == null)
  1675. throw new ArgumentNullException(nameof(source));
  1676. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MaxAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1677. }
  1678. private static MethodInfo? s_MaxAsync__2__2;
  1679. private static MethodInfo? MaxAsync__2__2 =>
  1680. (s_MaxAsync__2__2 ??
  1681. (s_MaxAsync__2__2 = new Func<IAsyncQueryable<double?>, CancellationToken, ValueTask<double?>>(MaxAsync).GetMethodInfo()));
  1682. public static ValueTask<double?> MaxAsync(this IAsyncQueryable<double?> source, CancellationToken cancellationToken = default)
  1683. {
  1684. if (source == null)
  1685. throw new ArgumentNullException(nameof(source));
  1686. return source.Provider.ExecuteAsync<double?>(Expression.Call(MaxAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1687. }
  1688. private static MethodInfo? s_MaxAsync__2__3;
  1689. private static MethodInfo? MaxAsync__2__3 =>
  1690. (s_MaxAsync__2__3 ??
  1691. (s_MaxAsync__2__3 = new Func<IAsyncQueryable<double>, CancellationToken, ValueTask<double>>(MaxAsync).GetMethodInfo()));
  1692. public static ValueTask<double> MaxAsync(this IAsyncQueryable<double> source, CancellationToken cancellationToken = default)
  1693. {
  1694. if (source == null)
  1695. throw new ArgumentNullException(nameof(source));
  1696. return source.Provider.ExecuteAsync<double>(Expression.Call(MaxAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1697. }
  1698. private static MethodInfo? s_MaxAsync__2__4;
  1699. private static MethodInfo? MaxAsync__2__4 =>
  1700. (s_MaxAsync__2__4 ??
  1701. (s_MaxAsync__2__4 = new Func<IAsyncQueryable<float?>, CancellationToken, ValueTask<float?>>(MaxAsync).GetMethodInfo()));
  1702. public static ValueTask<float?> MaxAsync(this IAsyncQueryable<float?> source, CancellationToken cancellationToken = default)
  1703. {
  1704. if (source == null)
  1705. throw new ArgumentNullException(nameof(source));
  1706. return source.Provider.ExecuteAsync<float?>(Expression.Call(MaxAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1707. }
  1708. private static MethodInfo? s_MaxAsync__2__5;
  1709. private static MethodInfo? MaxAsync__2__5 =>
  1710. (s_MaxAsync__2__5 ??
  1711. (s_MaxAsync__2__5 = new Func<IAsyncQueryable<float>, CancellationToken, ValueTask<float>>(MaxAsync).GetMethodInfo()));
  1712. public static ValueTask<float> MaxAsync(this IAsyncQueryable<float> source, CancellationToken cancellationToken = default)
  1713. {
  1714. if (source == null)
  1715. throw new ArgumentNullException(nameof(source));
  1716. return source.Provider.ExecuteAsync<float>(Expression.Call(MaxAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1717. }
  1718. private static MethodInfo? s_MaxAsync__2__6;
  1719. private static MethodInfo? MaxAsync__2__6 =>
  1720. (s_MaxAsync__2__6 ??
  1721. (s_MaxAsync__2__6 = new Func<IAsyncQueryable<int?>, CancellationToken, ValueTask<int?>>(MaxAsync).GetMethodInfo()));
  1722. public static ValueTask<int?> MaxAsync(this IAsyncQueryable<int?> source, CancellationToken cancellationToken = default)
  1723. {
  1724. if (source == null)
  1725. throw new ArgumentNullException(nameof(source));
  1726. return source.Provider.ExecuteAsync<int?>(Expression.Call(MaxAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1727. }
  1728. private static MethodInfo? s_MaxAsync__2__7;
  1729. private static MethodInfo? MaxAsync__2__7 =>
  1730. (s_MaxAsync__2__7 ??
  1731. (s_MaxAsync__2__7 = new Func<IAsyncQueryable<int>, CancellationToken, ValueTask<int>>(MaxAsync).GetMethodInfo()));
  1732. public static ValueTask<int> MaxAsync(this IAsyncQueryable<int> source, CancellationToken cancellationToken = default)
  1733. {
  1734. if (source == null)
  1735. throw new ArgumentNullException(nameof(source));
  1736. return source.Provider.ExecuteAsync<int>(Expression.Call(MaxAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1737. }
  1738. private static MethodInfo? s_MaxAsync__2__8;
  1739. private static MethodInfo? MaxAsync__2__8 =>
  1740. (s_MaxAsync__2__8 ??
  1741. (s_MaxAsync__2__8 = new Func<IAsyncQueryable<long?>, CancellationToken, ValueTask<long?>>(MaxAsync).GetMethodInfo()));
  1742. public static ValueTask<long?> MaxAsync(this IAsyncQueryable<long?> source, CancellationToken cancellationToken = default)
  1743. {
  1744. if (source == null)
  1745. throw new ArgumentNullException(nameof(source));
  1746. return source.Provider.ExecuteAsync<long?>(Expression.Call(MaxAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1747. }
  1748. private static MethodInfo? s_MaxAsync__2__9;
  1749. private static MethodInfo? MaxAsync__2__9 =>
  1750. (s_MaxAsync__2__9 ??
  1751. (s_MaxAsync__2__9 = new Func<IAsyncQueryable<long>, CancellationToken, ValueTask<long>>(MaxAsync).GetMethodInfo()));
  1752. public static ValueTask<long> MaxAsync(this IAsyncQueryable<long> source, CancellationToken cancellationToken = default)
  1753. {
  1754. if (source == null)
  1755. throw new ArgumentNullException(nameof(source));
  1756. return source.Provider.ExecuteAsync<long>(Expression.Call(MaxAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1757. }
  1758. private static MethodInfo? s_MaxAsync__TSource__2__0;
  1759. private static MethodInfo? MaxAsync__TSource__2__0(Type TSource) =>
  1760. (s_MaxAsync__TSource__2__0 ??
  1761. (s_MaxAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1762. public static ValueTask<TSource> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  1763. {
  1764. if (source == null)
  1765. throw new ArgumentNullException(nameof(source));
  1766. return source.Provider.ExecuteAsync<TSource>(Expression.Call(MaxAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1767. }
  1768. private static MethodInfo? s_MaxAsync__TSource__3__0;
  1769. private static MethodInfo? MaxAsync__TSource__3__0(Type TSource) =>
  1770. (s_MaxAsync__TSource__3__0 ??
  1771. (s_MaxAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal?>>, CancellationToken, ValueTask<decimal?>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1772. public static ValueTask<decimal?> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken cancellationToken = default)
  1773. {
  1774. if (source == null)
  1775. throw new ArgumentNullException(nameof(source));
  1776. if (selector == null)
  1777. throw new ArgumentNullException(nameof(selector));
  1778. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MaxAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1779. }
  1780. private static MethodInfo? s_MaxAsync__TSource__3__1;
  1781. private static MethodInfo? MaxAsync__TSource__3__1(Type TSource) =>
  1782. (s_MaxAsync__TSource__3__1 ??
  1783. (s_MaxAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal>>, CancellationToken, ValueTask<decimal>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1784. public static ValueTask<decimal> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken cancellationToken = default)
  1785. {
  1786. if (source == null)
  1787. throw new ArgumentNullException(nameof(source));
  1788. if (selector == null)
  1789. throw new ArgumentNullException(nameof(selector));
  1790. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MaxAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1791. }
  1792. private static MethodInfo? s_MaxAsync__TSource__3__2;
  1793. private static MethodInfo? MaxAsync__TSource__3__2(Type TSource) =>
  1794. (s_MaxAsync__TSource__3__2 ??
  1795. (s_MaxAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, double?>>, CancellationToken, ValueTask<double?>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1796. public static ValueTask<double?> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken cancellationToken = default)
  1797. {
  1798. if (source == null)
  1799. throw new ArgumentNullException(nameof(source));
  1800. if (selector == null)
  1801. throw new ArgumentNullException(nameof(selector));
  1802. return source.Provider.ExecuteAsync<double?>(Expression.Call(MaxAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1803. }
  1804. private static MethodInfo? s_MaxAsync__TSource__3__3;
  1805. private static MethodInfo? MaxAsync__TSource__3__3(Type TSource) =>
  1806. (s_MaxAsync__TSource__3__3 ??
  1807. (s_MaxAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, double>>, CancellationToken, ValueTask<double>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1808. public static ValueTask<double> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken cancellationToken = default)
  1809. {
  1810. if (source == null)
  1811. throw new ArgumentNullException(nameof(source));
  1812. if (selector == null)
  1813. throw new ArgumentNullException(nameof(selector));
  1814. return source.Provider.ExecuteAsync<double>(Expression.Call(MaxAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1815. }
  1816. private static MethodInfo? s_MaxAsync__TSource__3__4;
  1817. private static MethodInfo? MaxAsync__TSource__3__4(Type TSource) =>
  1818. (s_MaxAsync__TSource__3__4 ??
  1819. (s_MaxAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, float?>>, CancellationToken, ValueTask<float?>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1820. public static ValueTask<float?> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken cancellationToken = default)
  1821. {
  1822. if (source == null)
  1823. throw new ArgumentNullException(nameof(source));
  1824. if (selector == null)
  1825. throw new ArgumentNullException(nameof(selector));
  1826. return source.Provider.ExecuteAsync<float?>(Expression.Call(MaxAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1827. }
  1828. private static MethodInfo? s_MaxAsync__TSource__3__5;
  1829. private static MethodInfo? MaxAsync__TSource__3__5(Type TSource) =>
  1830. (s_MaxAsync__TSource__3__5 ??
  1831. (s_MaxAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, float>>, CancellationToken, ValueTask<float>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1832. public static ValueTask<float> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken cancellationToken = default)
  1833. {
  1834. if (source == null)
  1835. throw new ArgumentNullException(nameof(source));
  1836. if (selector == null)
  1837. throw new ArgumentNullException(nameof(selector));
  1838. return source.Provider.ExecuteAsync<float>(Expression.Call(MaxAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1839. }
  1840. private static MethodInfo? s_MaxAsync__TSource__3__6;
  1841. private static MethodInfo? MaxAsync__TSource__3__6(Type TSource) =>
  1842. (s_MaxAsync__TSource__3__6 ??
  1843. (s_MaxAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, int?>>, CancellationToken, ValueTask<int?>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1844. public static ValueTask<int?> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken cancellationToken = default)
  1845. {
  1846. if (source == null)
  1847. throw new ArgumentNullException(nameof(source));
  1848. if (selector == null)
  1849. throw new ArgumentNullException(nameof(selector));
  1850. return source.Provider.ExecuteAsync<int?>(Expression.Call(MaxAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1851. }
  1852. private static MethodInfo? s_MaxAsync__TSource__3__7;
  1853. private static MethodInfo? MaxAsync__TSource__3__7(Type TSource) =>
  1854. (s_MaxAsync__TSource__3__7 ??
  1855. (s_MaxAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, int>>, CancellationToken, ValueTask<int>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1856. public static ValueTask<int> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken cancellationToken = default)
  1857. {
  1858. if (source == null)
  1859. throw new ArgumentNullException(nameof(source));
  1860. if (selector == null)
  1861. throw new ArgumentNullException(nameof(selector));
  1862. return source.Provider.ExecuteAsync<int>(Expression.Call(MaxAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1863. }
  1864. private static MethodInfo? s_MaxAsync__TSource__3__8;
  1865. private static MethodInfo? MaxAsync__TSource__3__8(Type TSource) =>
  1866. (s_MaxAsync__TSource__3__8 ??
  1867. (s_MaxAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, long?>>, CancellationToken, ValueTask<long?>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1868. public static ValueTask<long?> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken cancellationToken = default)
  1869. {
  1870. if (source == null)
  1871. throw new ArgumentNullException(nameof(source));
  1872. if (selector == null)
  1873. throw new ArgumentNullException(nameof(selector));
  1874. return source.Provider.ExecuteAsync<long?>(Expression.Call(MaxAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1875. }
  1876. private static MethodInfo? s_MaxAsync__TSource__3__9;
  1877. private static MethodInfo? MaxAsync__TSource__3__9(Type TSource) =>
  1878. (s_MaxAsync__TSource__3__9 ??
  1879. (s_MaxAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, long>>, CancellationToken, ValueTask<long>>(MaxAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1880. public static ValueTask<long> MaxAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken cancellationToken = default)
  1881. {
  1882. if (source == null)
  1883. throw new ArgumentNullException(nameof(source));
  1884. if (selector == null)
  1885. throw new ArgumentNullException(nameof(selector));
  1886. return source.Provider.ExecuteAsync<long>(Expression.Call(MaxAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1887. }
  1888. private static MethodInfo? s_MaxAsync__TSource_TResult__3__0;
  1889. private static MethodInfo? MaxAsync__TSource_TResult__3__0(Type TSource, Type TResult) =>
  1890. (s_MaxAsync__TSource_TResult__3__0 ??
  1891. (s_MaxAsync__TSource_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, CancellationToken, ValueTask<object>>(MaxAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  1892. public static ValueTask<TResult> MaxAsync<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TResult>> selector, CancellationToken cancellationToken = default)
  1893. {
  1894. if (source == null)
  1895. throw new ArgumentNullException(nameof(source));
  1896. if (selector == null)
  1897. throw new ArgumentNullException(nameof(selector));
  1898. return source.Provider.ExecuteAsync<TResult>(Expression.Call(MaxAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1899. }
  1900. private static MethodInfo? s_MaxAwaitAsync__TSource__3__0;
  1901. private static MethodInfo? MaxAwaitAsync__TSource__3__0(Type TSource) =>
  1902. (s_MaxAwaitAsync__TSource__3__0 ??
  1903. (s_MaxAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1904. public static ValueTask<decimal?> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  1905. {
  1906. if (source == null)
  1907. throw new ArgumentNullException(nameof(source));
  1908. if (selector == null)
  1909. throw new ArgumentNullException(nameof(selector));
  1910. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MaxAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1911. }
  1912. private static MethodInfo? s_MaxAwaitAsync__TSource__3__1;
  1913. private static MethodInfo? MaxAwaitAsync__TSource__3__1(Type TSource) =>
  1914. (s_MaxAwaitAsync__TSource__3__1 ??
  1915. (s_MaxAwaitAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1916. public static ValueTask<decimal> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  1917. {
  1918. if (source == null)
  1919. throw new ArgumentNullException(nameof(source));
  1920. if (selector == null)
  1921. throw new ArgumentNullException(nameof(selector));
  1922. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MaxAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1923. }
  1924. private static MethodInfo? s_MaxAwaitAsync__TSource__3__2;
  1925. private static MethodInfo? MaxAwaitAsync__TSource__3__2(Type TSource) =>
  1926. (s_MaxAwaitAsync__TSource__3__2 ??
  1927. (s_MaxAwaitAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1928. public static ValueTask<double?> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  1929. {
  1930. if (source == null)
  1931. throw new ArgumentNullException(nameof(source));
  1932. if (selector == null)
  1933. throw new ArgumentNullException(nameof(selector));
  1934. return source.Provider.ExecuteAsync<double?>(Expression.Call(MaxAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1935. }
  1936. private static MethodInfo? s_MaxAwaitAsync__TSource__3__3;
  1937. private static MethodInfo? MaxAwaitAsync__TSource__3__3(Type TSource) =>
  1938. (s_MaxAwaitAsync__TSource__3__3 ??
  1939. (s_MaxAwaitAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double>>>, CancellationToken, ValueTask<double>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1940. public static ValueTask<double> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  1941. {
  1942. if (source == null)
  1943. throw new ArgumentNullException(nameof(source));
  1944. if (selector == null)
  1945. throw new ArgumentNullException(nameof(selector));
  1946. return source.Provider.ExecuteAsync<double>(Expression.Call(MaxAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1947. }
  1948. private static MethodInfo? s_MaxAwaitAsync__TSource__3__4;
  1949. private static MethodInfo? MaxAwaitAsync__TSource__3__4(Type TSource) =>
  1950. (s_MaxAwaitAsync__TSource__3__4 ??
  1951. (s_MaxAwaitAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1952. public static ValueTask<float?> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  1953. {
  1954. if (source == null)
  1955. throw new ArgumentNullException(nameof(source));
  1956. if (selector == null)
  1957. throw new ArgumentNullException(nameof(selector));
  1958. return source.Provider.ExecuteAsync<float?>(Expression.Call(MaxAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1959. }
  1960. private static MethodInfo? s_MaxAwaitAsync__TSource__3__5;
  1961. private static MethodInfo? MaxAwaitAsync__TSource__3__5(Type TSource) =>
  1962. (s_MaxAwaitAsync__TSource__3__5 ??
  1963. (s_MaxAwaitAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float>>>, CancellationToken, ValueTask<float>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1964. public static ValueTask<float> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  1965. {
  1966. if (source == null)
  1967. throw new ArgumentNullException(nameof(source));
  1968. if (selector == null)
  1969. throw new ArgumentNullException(nameof(selector));
  1970. return source.Provider.ExecuteAsync<float>(Expression.Call(MaxAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1971. }
  1972. private static MethodInfo? s_MaxAwaitAsync__TSource__3__6;
  1973. private static MethodInfo? MaxAwaitAsync__TSource__3__6(Type TSource) =>
  1974. (s_MaxAwaitAsync__TSource__3__6 ??
  1975. (s_MaxAwaitAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int?>>>, CancellationToken, ValueTask<int?>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1976. public static ValueTask<int?> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  1977. {
  1978. if (source == null)
  1979. throw new ArgumentNullException(nameof(source));
  1980. if (selector == null)
  1981. throw new ArgumentNullException(nameof(selector));
  1982. return source.Provider.ExecuteAsync<int?>(Expression.Call(MaxAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1983. }
  1984. private static MethodInfo? s_MaxAwaitAsync__TSource__3__7;
  1985. private static MethodInfo? MaxAwaitAsync__TSource__3__7(Type TSource) =>
  1986. (s_MaxAwaitAsync__TSource__3__7 ??
  1987. (s_MaxAwaitAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int>>>, CancellationToken, ValueTask<int>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  1988. public static ValueTask<int> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  1989. {
  1990. if (source == null)
  1991. throw new ArgumentNullException(nameof(source));
  1992. if (selector == null)
  1993. throw new ArgumentNullException(nameof(selector));
  1994. return source.Provider.ExecuteAsync<int>(Expression.Call(MaxAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  1995. }
  1996. private static MethodInfo? s_MaxAwaitAsync__TSource__3__8;
  1997. private static MethodInfo? MaxAwaitAsync__TSource__3__8(Type TSource) =>
  1998. (s_MaxAwaitAsync__TSource__3__8 ??
  1999. (s_MaxAwaitAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long?>>>, CancellationToken, ValueTask<long?>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2000. public static ValueTask<long?> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  2001. {
  2002. if (source == null)
  2003. throw new ArgumentNullException(nameof(source));
  2004. if (selector == null)
  2005. throw new ArgumentNullException(nameof(selector));
  2006. return source.Provider.ExecuteAsync<long?>(Expression.Call(MaxAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2007. }
  2008. private static MethodInfo? s_MaxAwaitAsync__TSource__3__9;
  2009. private static MethodInfo? MaxAwaitAsync__TSource__3__9(Type TSource) =>
  2010. (s_MaxAwaitAsync__TSource__3__9 ??
  2011. (s_MaxAwaitAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long>>>, CancellationToken, ValueTask<long>>(MaxAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2012. public static ValueTask<long> MaxAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  2013. {
  2014. if (source == null)
  2015. throw new ArgumentNullException(nameof(source));
  2016. if (selector == null)
  2017. throw new ArgumentNullException(nameof(selector));
  2018. return source.Provider.ExecuteAsync<long>(Expression.Call(MaxAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2019. }
  2020. private static MethodInfo? s_MaxAwaitAsync__TSource_TResult__3__0;
  2021. private static MethodInfo? MaxAwaitAsync__TSource_TResult__3__0(Type TSource, Type TResult) =>
  2022. (s_MaxAwaitAsync__TSource_TResult__3__0 ??
  2023. (s_MaxAwaitAsync__TSource_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, CancellationToken, ValueTask<object>>(MaxAwaitAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2024. public static ValueTask<TResult> MaxAwaitAsync<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TResult>>> selector, CancellationToken cancellationToken = default)
  2025. {
  2026. if (source == null)
  2027. throw new ArgumentNullException(nameof(source));
  2028. if (selector == null)
  2029. throw new ArgumentNullException(nameof(selector));
  2030. return source.Provider.ExecuteAsync<TResult>(Expression.Call(MaxAwaitAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2031. }
  2032. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__0;
  2033. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  2034. (s_MaxAwaitWithCancellationAsync__TSource__3__0 ??
  2035. (s_MaxAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2036. public static ValueTask<decimal?> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  2037. {
  2038. if (source == null)
  2039. throw new ArgumentNullException(nameof(source));
  2040. if (selector == null)
  2041. throw new ArgumentNullException(nameof(selector));
  2042. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2043. }
  2044. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__1;
  2045. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__1(Type TSource) =>
  2046. (s_MaxAwaitWithCancellationAsync__TSource__3__1 ??
  2047. (s_MaxAwaitWithCancellationAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2048. public static ValueTask<decimal> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  2049. {
  2050. if (source == null)
  2051. throw new ArgumentNullException(nameof(source));
  2052. if (selector == null)
  2053. throw new ArgumentNullException(nameof(selector));
  2054. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2055. }
  2056. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__2;
  2057. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__2(Type TSource) =>
  2058. (s_MaxAwaitWithCancellationAsync__TSource__3__2 ??
  2059. (s_MaxAwaitWithCancellationAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2060. public static ValueTask<double?> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  2061. {
  2062. if (source == null)
  2063. throw new ArgumentNullException(nameof(source));
  2064. if (selector == null)
  2065. throw new ArgumentNullException(nameof(selector));
  2066. return source.Provider.ExecuteAsync<double?>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2067. }
  2068. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__3;
  2069. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__3(Type TSource) =>
  2070. (s_MaxAwaitWithCancellationAsync__TSource__3__3 ??
  2071. (s_MaxAwaitWithCancellationAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double>>>, CancellationToken, ValueTask<double>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2072. public static ValueTask<double> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  2073. {
  2074. if (source == null)
  2075. throw new ArgumentNullException(nameof(source));
  2076. if (selector == null)
  2077. throw new ArgumentNullException(nameof(selector));
  2078. return source.Provider.ExecuteAsync<double>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2079. }
  2080. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__4;
  2081. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__4(Type TSource) =>
  2082. (s_MaxAwaitWithCancellationAsync__TSource__3__4 ??
  2083. (s_MaxAwaitWithCancellationAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2084. public static ValueTask<float?> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  2085. {
  2086. if (source == null)
  2087. throw new ArgumentNullException(nameof(source));
  2088. if (selector == null)
  2089. throw new ArgumentNullException(nameof(selector));
  2090. return source.Provider.ExecuteAsync<float?>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2091. }
  2092. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__5;
  2093. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__5(Type TSource) =>
  2094. (s_MaxAwaitWithCancellationAsync__TSource__3__5 ??
  2095. (s_MaxAwaitWithCancellationAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float>>>, CancellationToken, ValueTask<float>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2096. public static ValueTask<float> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  2097. {
  2098. if (source == null)
  2099. throw new ArgumentNullException(nameof(source));
  2100. if (selector == null)
  2101. throw new ArgumentNullException(nameof(selector));
  2102. return source.Provider.ExecuteAsync<float>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2103. }
  2104. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__6;
  2105. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__6(Type TSource) =>
  2106. (s_MaxAwaitWithCancellationAsync__TSource__3__6 ??
  2107. (s_MaxAwaitWithCancellationAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int?>>>, CancellationToken, ValueTask<int?>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2108. public static ValueTask<int?> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  2109. {
  2110. if (source == null)
  2111. throw new ArgumentNullException(nameof(source));
  2112. if (selector == null)
  2113. throw new ArgumentNullException(nameof(selector));
  2114. return source.Provider.ExecuteAsync<int?>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2115. }
  2116. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__7;
  2117. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__7(Type TSource) =>
  2118. (s_MaxAwaitWithCancellationAsync__TSource__3__7 ??
  2119. (s_MaxAwaitWithCancellationAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int>>>, CancellationToken, ValueTask<int>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2120. public static ValueTask<int> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  2121. {
  2122. if (source == null)
  2123. throw new ArgumentNullException(nameof(source));
  2124. if (selector == null)
  2125. throw new ArgumentNullException(nameof(selector));
  2126. return source.Provider.ExecuteAsync<int>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2127. }
  2128. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__8;
  2129. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__8(Type TSource) =>
  2130. (s_MaxAwaitWithCancellationAsync__TSource__3__8 ??
  2131. (s_MaxAwaitWithCancellationAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long?>>>, CancellationToken, ValueTask<long?>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2132. public static ValueTask<long?> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  2133. {
  2134. if (source == null)
  2135. throw new ArgumentNullException(nameof(source));
  2136. if (selector == null)
  2137. throw new ArgumentNullException(nameof(selector));
  2138. return source.Provider.ExecuteAsync<long?>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2139. }
  2140. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource__3__9;
  2141. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource__3__9(Type TSource) =>
  2142. (s_MaxAwaitWithCancellationAsync__TSource__3__9 ??
  2143. (s_MaxAwaitWithCancellationAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long>>>, CancellationToken, ValueTask<long>>(MaxAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2144. public static ValueTask<long> MaxAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  2145. {
  2146. if (source == null)
  2147. throw new ArgumentNullException(nameof(source));
  2148. if (selector == null)
  2149. throw new ArgumentNullException(nameof(selector));
  2150. return source.Provider.ExecuteAsync<long>(Expression.Call(MaxAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2151. }
  2152. private static MethodInfo? s_MaxAwaitWithCancellationAsync__TSource_TResult__3__0;
  2153. private static MethodInfo? MaxAwaitWithCancellationAsync__TSource_TResult__3__0(Type TSource, Type TResult) =>
  2154. (s_MaxAwaitWithCancellationAsync__TSource_TResult__3__0 ??
  2155. (s_MaxAwaitWithCancellationAsync__TSource_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<object>>(MaxAwaitWithCancellationAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2156. public static ValueTask<TResult> MaxAwaitWithCancellationAsync<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TResult>>> selector, CancellationToken cancellationToken = default)
  2157. {
  2158. if (source == null)
  2159. throw new ArgumentNullException(nameof(source));
  2160. if (selector == null)
  2161. throw new ArgumentNullException(nameof(selector));
  2162. return source.Provider.ExecuteAsync<TResult>(Expression.Call(MaxAwaitWithCancellationAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2163. }
  2164. private static MethodInfo? s_MinAsync__2__0;
  2165. private static MethodInfo? MinAsync__2__0 =>
  2166. (s_MinAsync__2__0 ??
  2167. (s_MinAsync__2__0 = new Func<IAsyncQueryable<decimal?>, CancellationToken, ValueTask<decimal?>>(MinAsync).GetMethodInfo()));
  2168. public static ValueTask<decimal?> MinAsync(this IAsyncQueryable<decimal?> source, CancellationToken cancellationToken = default)
  2169. {
  2170. if (source == null)
  2171. throw new ArgumentNullException(nameof(source));
  2172. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MinAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2173. }
  2174. private static MethodInfo? s_MinAsync__2__1;
  2175. private static MethodInfo? MinAsync__2__1 =>
  2176. (s_MinAsync__2__1 ??
  2177. (s_MinAsync__2__1 = new Func<IAsyncQueryable<decimal>, CancellationToken, ValueTask<decimal>>(MinAsync).GetMethodInfo()));
  2178. public static ValueTask<decimal> MinAsync(this IAsyncQueryable<decimal> source, CancellationToken cancellationToken = default)
  2179. {
  2180. if (source == null)
  2181. throw new ArgumentNullException(nameof(source));
  2182. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MinAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2183. }
  2184. private static MethodInfo? s_MinAsync__2__2;
  2185. private static MethodInfo? MinAsync__2__2 =>
  2186. (s_MinAsync__2__2 ??
  2187. (s_MinAsync__2__2 = new Func<IAsyncQueryable<double?>, CancellationToken, ValueTask<double?>>(MinAsync).GetMethodInfo()));
  2188. public static ValueTask<double?> MinAsync(this IAsyncQueryable<double?> source, CancellationToken cancellationToken = default)
  2189. {
  2190. if (source == null)
  2191. throw new ArgumentNullException(nameof(source));
  2192. return source.Provider.ExecuteAsync<double?>(Expression.Call(MinAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2193. }
  2194. private static MethodInfo? s_MinAsync__2__3;
  2195. private static MethodInfo? MinAsync__2__3 =>
  2196. (s_MinAsync__2__3 ??
  2197. (s_MinAsync__2__3 = new Func<IAsyncQueryable<double>, CancellationToken, ValueTask<double>>(MinAsync).GetMethodInfo()));
  2198. public static ValueTask<double> MinAsync(this IAsyncQueryable<double> source, CancellationToken cancellationToken = default)
  2199. {
  2200. if (source == null)
  2201. throw new ArgumentNullException(nameof(source));
  2202. return source.Provider.ExecuteAsync<double>(Expression.Call(MinAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2203. }
  2204. private static MethodInfo? s_MinAsync__2__4;
  2205. private static MethodInfo? MinAsync__2__4 =>
  2206. (s_MinAsync__2__4 ??
  2207. (s_MinAsync__2__4 = new Func<IAsyncQueryable<float?>, CancellationToken, ValueTask<float?>>(MinAsync).GetMethodInfo()));
  2208. public static ValueTask<float?> MinAsync(this IAsyncQueryable<float?> source, CancellationToken cancellationToken = default)
  2209. {
  2210. if (source == null)
  2211. throw new ArgumentNullException(nameof(source));
  2212. return source.Provider.ExecuteAsync<float?>(Expression.Call(MinAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2213. }
  2214. private static MethodInfo? s_MinAsync__2__5;
  2215. private static MethodInfo? MinAsync__2__5 =>
  2216. (s_MinAsync__2__5 ??
  2217. (s_MinAsync__2__5 = new Func<IAsyncQueryable<float>, CancellationToken, ValueTask<float>>(MinAsync).GetMethodInfo()));
  2218. public static ValueTask<float> MinAsync(this IAsyncQueryable<float> source, CancellationToken cancellationToken = default)
  2219. {
  2220. if (source == null)
  2221. throw new ArgumentNullException(nameof(source));
  2222. return source.Provider.ExecuteAsync<float>(Expression.Call(MinAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2223. }
  2224. private static MethodInfo? s_MinAsync__2__6;
  2225. private static MethodInfo? MinAsync__2__6 =>
  2226. (s_MinAsync__2__6 ??
  2227. (s_MinAsync__2__6 = new Func<IAsyncQueryable<int?>, CancellationToken, ValueTask<int?>>(MinAsync).GetMethodInfo()));
  2228. public static ValueTask<int?> MinAsync(this IAsyncQueryable<int?> source, CancellationToken cancellationToken = default)
  2229. {
  2230. if (source == null)
  2231. throw new ArgumentNullException(nameof(source));
  2232. return source.Provider.ExecuteAsync<int?>(Expression.Call(MinAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2233. }
  2234. private static MethodInfo? s_MinAsync__2__7;
  2235. private static MethodInfo? MinAsync__2__7 =>
  2236. (s_MinAsync__2__7 ??
  2237. (s_MinAsync__2__7 = new Func<IAsyncQueryable<int>, CancellationToken, ValueTask<int>>(MinAsync).GetMethodInfo()));
  2238. public static ValueTask<int> MinAsync(this IAsyncQueryable<int> source, CancellationToken cancellationToken = default)
  2239. {
  2240. if (source == null)
  2241. throw new ArgumentNullException(nameof(source));
  2242. return source.Provider.ExecuteAsync<int>(Expression.Call(MinAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2243. }
  2244. private static MethodInfo? s_MinAsync__2__8;
  2245. private static MethodInfo? MinAsync__2__8 =>
  2246. (s_MinAsync__2__8 ??
  2247. (s_MinAsync__2__8 = new Func<IAsyncQueryable<long?>, CancellationToken, ValueTask<long?>>(MinAsync).GetMethodInfo()));
  2248. public static ValueTask<long?> MinAsync(this IAsyncQueryable<long?> source, CancellationToken cancellationToken = default)
  2249. {
  2250. if (source == null)
  2251. throw new ArgumentNullException(nameof(source));
  2252. return source.Provider.ExecuteAsync<long?>(Expression.Call(MinAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2253. }
  2254. private static MethodInfo? s_MinAsync__2__9;
  2255. private static MethodInfo? MinAsync__2__9 =>
  2256. (s_MinAsync__2__9 ??
  2257. (s_MinAsync__2__9 = new Func<IAsyncQueryable<long>, CancellationToken, ValueTask<long>>(MinAsync).GetMethodInfo()));
  2258. public static ValueTask<long> MinAsync(this IAsyncQueryable<long> source, CancellationToken cancellationToken = default)
  2259. {
  2260. if (source == null)
  2261. throw new ArgumentNullException(nameof(source));
  2262. return source.Provider.ExecuteAsync<long>(Expression.Call(MinAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2263. }
  2264. private static MethodInfo? s_MinAsync__TSource__2__0;
  2265. private static MethodInfo? MinAsync__TSource__2__0(Type TSource) =>
  2266. (s_MinAsync__TSource__2__0 ??
  2267. (s_MinAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2268. public static ValueTask<TSource> MinAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  2269. {
  2270. if (source == null)
  2271. throw new ArgumentNullException(nameof(source));
  2272. return source.Provider.ExecuteAsync<TSource>(Expression.Call(MinAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2273. }
  2274. private static MethodInfo? s_MinAsync__TSource__3__0;
  2275. private static MethodInfo? MinAsync__TSource__3__0(Type TSource) =>
  2276. (s_MinAsync__TSource__3__0 ??
  2277. (s_MinAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal?>>, CancellationToken, ValueTask<decimal?>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2278. public static ValueTask<decimal?> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken cancellationToken = default)
  2279. {
  2280. if (source == null)
  2281. throw new ArgumentNullException(nameof(source));
  2282. if (selector == null)
  2283. throw new ArgumentNullException(nameof(selector));
  2284. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MinAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2285. }
  2286. private static MethodInfo? s_MinAsync__TSource__3__1;
  2287. private static MethodInfo? MinAsync__TSource__3__1(Type TSource) =>
  2288. (s_MinAsync__TSource__3__1 ??
  2289. (s_MinAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal>>, CancellationToken, ValueTask<decimal>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2290. public static ValueTask<decimal> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken cancellationToken = default)
  2291. {
  2292. if (source == null)
  2293. throw new ArgumentNullException(nameof(source));
  2294. if (selector == null)
  2295. throw new ArgumentNullException(nameof(selector));
  2296. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MinAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2297. }
  2298. private static MethodInfo? s_MinAsync__TSource__3__2;
  2299. private static MethodInfo? MinAsync__TSource__3__2(Type TSource) =>
  2300. (s_MinAsync__TSource__3__2 ??
  2301. (s_MinAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, double?>>, CancellationToken, ValueTask<double?>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2302. public static ValueTask<double?> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken cancellationToken = default)
  2303. {
  2304. if (source == null)
  2305. throw new ArgumentNullException(nameof(source));
  2306. if (selector == null)
  2307. throw new ArgumentNullException(nameof(selector));
  2308. return source.Provider.ExecuteAsync<double?>(Expression.Call(MinAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2309. }
  2310. private static MethodInfo? s_MinAsync__TSource__3__3;
  2311. private static MethodInfo? MinAsync__TSource__3__3(Type TSource) =>
  2312. (s_MinAsync__TSource__3__3 ??
  2313. (s_MinAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, double>>, CancellationToken, ValueTask<double>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2314. public static ValueTask<double> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken cancellationToken = default)
  2315. {
  2316. if (source == null)
  2317. throw new ArgumentNullException(nameof(source));
  2318. if (selector == null)
  2319. throw new ArgumentNullException(nameof(selector));
  2320. return source.Provider.ExecuteAsync<double>(Expression.Call(MinAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2321. }
  2322. private static MethodInfo? s_MinAsync__TSource__3__4;
  2323. private static MethodInfo? MinAsync__TSource__3__4(Type TSource) =>
  2324. (s_MinAsync__TSource__3__4 ??
  2325. (s_MinAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, float?>>, CancellationToken, ValueTask<float?>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2326. public static ValueTask<float?> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken cancellationToken = default)
  2327. {
  2328. if (source == null)
  2329. throw new ArgumentNullException(nameof(source));
  2330. if (selector == null)
  2331. throw new ArgumentNullException(nameof(selector));
  2332. return source.Provider.ExecuteAsync<float?>(Expression.Call(MinAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2333. }
  2334. private static MethodInfo? s_MinAsync__TSource__3__5;
  2335. private static MethodInfo? MinAsync__TSource__3__5(Type TSource) =>
  2336. (s_MinAsync__TSource__3__5 ??
  2337. (s_MinAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, float>>, CancellationToken, ValueTask<float>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2338. public static ValueTask<float> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken cancellationToken = default)
  2339. {
  2340. if (source == null)
  2341. throw new ArgumentNullException(nameof(source));
  2342. if (selector == null)
  2343. throw new ArgumentNullException(nameof(selector));
  2344. return source.Provider.ExecuteAsync<float>(Expression.Call(MinAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2345. }
  2346. private static MethodInfo? s_MinAsync__TSource__3__6;
  2347. private static MethodInfo? MinAsync__TSource__3__6(Type TSource) =>
  2348. (s_MinAsync__TSource__3__6 ??
  2349. (s_MinAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, int?>>, CancellationToken, ValueTask<int?>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2350. public static ValueTask<int?> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken cancellationToken = default)
  2351. {
  2352. if (source == null)
  2353. throw new ArgumentNullException(nameof(source));
  2354. if (selector == null)
  2355. throw new ArgumentNullException(nameof(selector));
  2356. return source.Provider.ExecuteAsync<int?>(Expression.Call(MinAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2357. }
  2358. private static MethodInfo? s_MinAsync__TSource__3__7;
  2359. private static MethodInfo? MinAsync__TSource__3__7(Type TSource) =>
  2360. (s_MinAsync__TSource__3__7 ??
  2361. (s_MinAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, int>>, CancellationToken, ValueTask<int>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2362. public static ValueTask<int> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken cancellationToken = default)
  2363. {
  2364. if (source == null)
  2365. throw new ArgumentNullException(nameof(source));
  2366. if (selector == null)
  2367. throw new ArgumentNullException(nameof(selector));
  2368. return source.Provider.ExecuteAsync<int>(Expression.Call(MinAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2369. }
  2370. private static MethodInfo? s_MinAsync__TSource__3__8;
  2371. private static MethodInfo? MinAsync__TSource__3__8(Type TSource) =>
  2372. (s_MinAsync__TSource__3__8 ??
  2373. (s_MinAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, long?>>, CancellationToken, ValueTask<long?>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2374. public static ValueTask<long?> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken cancellationToken = default)
  2375. {
  2376. if (source == null)
  2377. throw new ArgumentNullException(nameof(source));
  2378. if (selector == null)
  2379. throw new ArgumentNullException(nameof(selector));
  2380. return source.Provider.ExecuteAsync<long?>(Expression.Call(MinAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2381. }
  2382. private static MethodInfo? s_MinAsync__TSource__3__9;
  2383. private static MethodInfo? MinAsync__TSource__3__9(Type TSource) =>
  2384. (s_MinAsync__TSource__3__9 ??
  2385. (s_MinAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, long>>, CancellationToken, ValueTask<long>>(MinAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2386. public static ValueTask<long> MinAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken cancellationToken = default)
  2387. {
  2388. if (source == null)
  2389. throw new ArgumentNullException(nameof(source));
  2390. if (selector == null)
  2391. throw new ArgumentNullException(nameof(selector));
  2392. return source.Provider.ExecuteAsync<long>(Expression.Call(MinAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2393. }
  2394. private static MethodInfo? s_MinAsync__TSource_TResult__3__0;
  2395. private static MethodInfo? MinAsync__TSource_TResult__3__0(Type TSource, Type TResult) =>
  2396. (s_MinAsync__TSource_TResult__3__0 ??
  2397. (s_MinAsync__TSource_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, CancellationToken, ValueTask<object>>(MinAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2398. public static ValueTask<TResult> MinAsync<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TResult>> selector, CancellationToken cancellationToken = default)
  2399. {
  2400. if (source == null)
  2401. throw new ArgumentNullException(nameof(source));
  2402. if (selector == null)
  2403. throw new ArgumentNullException(nameof(selector));
  2404. return source.Provider.ExecuteAsync<TResult>(Expression.Call(MinAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2405. }
  2406. private static MethodInfo? s_MinAwaitAsync__TSource__3__0;
  2407. private static MethodInfo? MinAwaitAsync__TSource__3__0(Type TSource) =>
  2408. (s_MinAwaitAsync__TSource__3__0 ??
  2409. (s_MinAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2410. public static ValueTask<decimal?> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  2411. {
  2412. if (source == null)
  2413. throw new ArgumentNullException(nameof(source));
  2414. if (selector == null)
  2415. throw new ArgumentNullException(nameof(selector));
  2416. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MinAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2417. }
  2418. private static MethodInfo? s_MinAwaitAsync__TSource__3__1;
  2419. private static MethodInfo? MinAwaitAsync__TSource__3__1(Type TSource) =>
  2420. (s_MinAwaitAsync__TSource__3__1 ??
  2421. (s_MinAwaitAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2422. public static ValueTask<decimal> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  2423. {
  2424. if (source == null)
  2425. throw new ArgumentNullException(nameof(source));
  2426. if (selector == null)
  2427. throw new ArgumentNullException(nameof(selector));
  2428. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MinAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2429. }
  2430. private static MethodInfo? s_MinAwaitAsync__TSource__3__2;
  2431. private static MethodInfo? MinAwaitAsync__TSource__3__2(Type TSource) =>
  2432. (s_MinAwaitAsync__TSource__3__2 ??
  2433. (s_MinAwaitAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2434. public static ValueTask<double?> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  2435. {
  2436. if (source == null)
  2437. throw new ArgumentNullException(nameof(source));
  2438. if (selector == null)
  2439. throw new ArgumentNullException(nameof(selector));
  2440. return source.Provider.ExecuteAsync<double?>(Expression.Call(MinAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2441. }
  2442. private static MethodInfo? s_MinAwaitAsync__TSource__3__3;
  2443. private static MethodInfo? MinAwaitAsync__TSource__3__3(Type TSource) =>
  2444. (s_MinAwaitAsync__TSource__3__3 ??
  2445. (s_MinAwaitAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double>>>, CancellationToken, ValueTask<double>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2446. public static ValueTask<double> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  2447. {
  2448. if (source == null)
  2449. throw new ArgumentNullException(nameof(source));
  2450. if (selector == null)
  2451. throw new ArgumentNullException(nameof(selector));
  2452. return source.Provider.ExecuteAsync<double>(Expression.Call(MinAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2453. }
  2454. private static MethodInfo? s_MinAwaitAsync__TSource__3__4;
  2455. private static MethodInfo? MinAwaitAsync__TSource__3__4(Type TSource) =>
  2456. (s_MinAwaitAsync__TSource__3__4 ??
  2457. (s_MinAwaitAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2458. public static ValueTask<float?> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  2459. {
  2460. if (source == null)
  2461. throw new ArgumentNullException(nameof(source));
  2462. if (selector == null)
  2463. throw new ArgumentNullException(nameof(selector));
  2464. return source.Provider.ExecuteAsync<float?>(Expression.Call(MinAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2465. }
  2466. private static MethodInfo? s_MinAwaitAsync__TSource__3__5;
  2467. private static MethodInfo? MinAwaitAsync__TSource__3__5(Type TSource) =>
  2468. (s_MinAwaitAsync__TSource__3__5 ??
  2469. (s_MinAwaitAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float>>>, CancellationToken, ValueTask<float>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2470. public static ValueTask<float> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  2471. {
  2472. if (source == null)
  2473. throw new ArgumentNullException(nameof(source));
  2474. if (selector == null)
  2475. throw new ArgumentNullException(nameof(selector));
  2476. return source.Provider.ExecuteAsync<float>(Expression.Call(MinAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2477. }
  2478. private static MethodInfo? s_MinAwaitAsync__TSource__3__6;
  2479. private static MethodInfo? MinAwaitAsync__TSource__3__6(Type TSource) =>
  2480. (s_MinAwaitAsync__TSource__3__6 ??
  2481. (s_MinAwaitAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int?>>>, CancellationToken, ValueTask<int?>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2482. public static ValueTask<int?> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  2483. {
  2484. if (source == null)
  2485. throw new ArgumentNullException(nameof(source));
  2486. if (selector == null)
  2487. throw new ArgumentNullException(nameof(selector));
  2488. return source.Provider.ExecuteAsync<int?>(Expression.Call(MinAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2489. }
  2490. private static MethodInfo? s_MinAwaitAsync__TSource__3__7;
  2491. private static MethodInfo? MinAwaitAsync__TSource__3__7(Type TSource) =>
  2492. (s_MinAwaitAsync__TSource__3__7 ??
  2493. (s_MinAwaitAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int>>>, CancellationToken, ValueTask<int>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2494. public static ValueTask<int> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  2495. {
  2496. if (source == null)
  2497. throw new ArgumentNullException(nameof(source));
  2498. if (selector == null)
  2499. throw new ArgumentNullException(nameof(selector));
  2500. return source.Provider.ExecuteAsync<int>(Expression.Call(MinAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2501. }
  2502. private static MethodInfo? s_MinAwaitAsync__TSource__3__8;
  2503. private static MethodInfo? MinAwaitAsync__TSource__3__8(Type TSource) =>
  2504. (s_MinAwaitAsync__TSource__3__8 ??
  2505. (s_MinAwaitAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long?>>>, CancellationToken, ValueTask<long?>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2506. public static ValueTask<long?> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  2507. {
  2508. if (source == null)
  2509. throw new ArgumentNullException(nameof(source));
  2510. if (selector == null)
  2511. throw new ArgumentNullException(nameof(selector));
  2512. return source.Provider.ExecuteAsync<long?>(Expression.Call(MinAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2513. }
  2514. private static MethodInfo? s_MinAwaitAsync__TSource__3__9;
  2515. private static MethodInfo? MinAwaitAsync__TSource__3__9(Type TSource) =>
  2516. (s_MinAwaitAsync__TSource__3__9 ??
  2517. (s_MinAwaitAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long>>>, CancellationToken, ValueTask<long>>(MinAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2518. public static ValueTask<long> MinAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  2519. {
  2520. if (source == null)
  2521. throw new ArgumentNullException(nameof(source));
  2522. if (selector == null)
  2523. throw new ArgumentNullException(nameof(selector));
  2524. return source.Provider.ExecuteAsync<long>(Expression.Call(MinAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2525. }
  2526. private static MethodInfo? s_MinAwaitAsync__TSource_TResult__3__0;
  2527. private static MethodInfo? MinAwaitAsync__TSource_TResult__3__0(Type TSource, Type TResult) =>
  2528. (s_MinAwaitAsync__TSource_TResult__3__0 ??
  2529. (s_MinAwaitAsync__TSource_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, CancellationToken, ValueTask<object>>(MinAwaitAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2530. public static ValueTask<TResult> MinAwaitAsync<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TResult>>> selector, CancellationToken cancellationToken = default)
  2531. {
  2532. if (source == null)
  2533. throw new ArgumentNullException(nameof(source));
  2534. if (selector == null)
  2535. throw new ArgumentNullException(nameof(selector));
  2536. return source.Provider.ExecuteAsync<TResult>(Expression.Call(MinAwaitAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2537. }
  2538. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__0;
  2539. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  2540. (s_MinAwaitWithCancellationAsync__TSource__3__0 ??
  2541. (s_MinAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2542. public static ValueTask<decimal?> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  2543. {
  2544. if (source == null)
  2545. throw new ArgumentNullException(nameof(source));
  2546. if (selector == null)
  2547. throw new ArgumentNullException(nameof(selector));
  2548. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2549. }
  2550. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__1;
  2551. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__1(Type TSource) =>
  2552. (s_MinAwaitWithCancellationAsync__TSource__3__1 ??
  2553. (s_MinAwaitWithCancellationAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2554. public static ValueTask<decimal> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  2555. {
  2556. if (source == null)
  2557. throw new ArgumentNullException(nameof(source));
  2558. if (selector == null)
  2559. throw new ArgumentNullException(nameof(selector));
  2560. return source.Provider.ExecuteAsync<decimal>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2561. }
  2562. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__2;
  2563. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__2(Type TSource) =>
  2564. (s_MinAwaitWithCancellationAsync__TSource__3__2 ??
  2565. (s_MinAwaitWithCancellationAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2566. public static ValueTask<double?> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  2567. {
  2568. if (source == null)
  2569. throw new ArgumentNullException(nameof(source));
  2570. if (selector == null)
  2571. throw new ArgumentNullException(nameof(selector));
  2572. return source.Provider.ExecuteAsync<double?>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2573. }
  2574. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__3;
  2575. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__3(Type TSource) =>
  2576. (s_MinAwaitWithCancellationAsync__TSource__3__3 ??
  2577. (s_MinAwaitWithCancellationAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double>>>, CancellationToken, ValueTask<double>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2578. public static ValueTask<double> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  2579. {
  2580. if (source == null)
  2581. throw new ArgumentNullException(nameof(source));
  2582. if (selector == null)
  2583. throw new ArgumentNullException(nameof(selector));
  2584. return source.Provider.ExecuteAsync<double>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2585. }
  2586. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__4;
  2587. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__4(Type TSource) =>
  2588. (s_MinAwaitWithCancellationAsync__TSource__3__4 ??
  2589. (s_MinAwaitWithCancellationAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2590. public static ValueTask<float?> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  2591. {
  2592. if (source == null)
  2593. throw new ArgumentNullException(nameof(source));
  2594. if (selector == null)
  2595. throw new ArgumentNullException(nameof(selector));
  2596. return source.Provider.ExecuteAsync<float?>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2597. }
  2598. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__5;
  2599. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__5(Type TSource) =>
  2600. (s_MinAwaitWithCancellationAsync__TSource__3__5 ??
  2601. (s_MinAwaitWithCancellationAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float>>>, CancellationToken, ValueTask<float>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2602. public static ValueTask<float> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  2603. {
  2604. if (source == null)
  2605. throw new ArgumentNullException(nameof(source));
  2606. if (selector == null)
  2607. throw new ArgumentNullException(nameof(selector));
  2608. return source.Provider.ExecuteAsync<float>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2609. }
  2610. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__6;
  2611. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__6(Type TSource) =>
  2612. (s_MinAwaitWithCancellationAsync__TSource__3__6 ??
  2613. (s_MinAwaitWithCancellationAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int?>>>, CancellationToken, ValueTask<int?>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2614. public static ValueTask<int?> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  2615. {
  2616. if (source == null)
  2617. throw new ArgumentNullException(nameof(source));
  2618. if (selector == null)
  2619. throw new ArgumentNullException(nameof(selector));
  2620. return source.Provider.ExecuteAsync<int?>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2621. }
  2622. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__7;
  2623. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__7(Type TSource) =>
  2624. (s_MinAwaitWithCancellationAsync__TSource__3__7 ??
  2625. (s_MinAwaitWithCancellationAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int>>>, CancellationToken, ValueTask<int>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2626. public static ValueTask<int> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  2627. {
  2628. if (source == null)
  2629. throw new ArgumentNullException(nameof(source));
  2630. if (selector == null)
  2631. throw new ArgumentNullException(nameof(selector));
  2632. return source.Provider.ExecuteAsync<int>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2633. }
  2634. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__8;
  2635. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__8(Type TSource) =>
  2636. (s_MinAwaitWithCancellationAsync__TSource__3__8 ??
  2637. (s_MinAwaitWithCancellationAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long?>>>, CancellationToken, ValueTask<long?>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2638. public static ValueTask<long?> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  2639. {
  2640. if (source == null)
  2641. throw new ArgumentNullException(nameof(source));
  2642. if (selector == null)
  2643. throw new ArgumentNullException(nameof(selector));
  2644. return source.Provider.ExecuteAsync<long?>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2645. }
  2646. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource__3__9;
  2647. private static MethodInfo? MinAwaitWithCancellationAsync__TSource__3__9(Type TSource) =>
  2648. (s_MinAwaitWithCancellationAsync__TSource__3__9 ??
  2649. (s_MinAwaitWithCancellationAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long>>>, CancellationToken, ValueTask<long>>(MinAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2650. public static ValueTask<long> MinAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  2651. {
  2652. if (source == null)
  2653. throw new ArgumentNullException(nameof(source));
  2654. if (selector == null)
  2655. throw new ArgumentNullException(nameof(selector));
  2656. return source.Provider.ExecuteAsync<long>(Expression.Call(MinAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2657. }
  2658. private static MethodInfo? s_MinAwaitWithCancellationAsync__TSource_TResult__3__0;
  2659. private static MethodInfo? MinAwaitWithCancellationAsync__TSource_TResult__3__0(Type TSource, Type TResult) =>
  2660. (s_MinAwaitWithCancellationAsync__TSource_TResult__3__0 ??
  2661. (s_MinAwaitWithCancellationAsync__TSource_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<object>>(MinAwaitWithCancellationAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2662. public static ValueTask<TResult> MinAwaitWithCancellationAsync<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TResult>>> selector, CancellationToken cancellationToken = default)
  2663. {
  2664. if (source == null)
  2665. throw new ArgumentNullException(nameof(source));
  2666. if (selector == null)
  2667. throw new ArgumentNullException(nameof(selector));
  2668. return source.Provider.ExecuteAsync<TResult>(Expression.Call(MinAwaitWithCancellationAsync__TSource_TResult__3__0(typeof(TSource), typeof(TResult)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  2669. }
  2670. private static MethodInfo? s_OfType__TResult__1__0;
  2671. private static MethodInfo? OfType__TResult__1__0(Type TResult) =>
  2672. (s_OfType__TResult__1__0 ??
  2673. (s_OfType__TResult__1__0 = new Func<IAsyncQueryable<object>, IAsyncQueryable<object>>(OfType<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TResult);
  2674. public static IAsyncQueryable<TResult> OfType<TResult>(this IAsyncQueryable<object> source)
  2675. {
  2676. if (source == null)
  2677. throw new ArgumentNullException(nameof(source));
  2678. return source.Provider.CreateQuery<TResult>(Expression.Call(OfType__TResult__1__0(typeof(TResult)), source.Expression));
  2679. }
  2680. private static MethodInfo? s_OrderBy__TSource_TKey__2__0;
  2681. private static MethodInfo? OrderBy__TSource_TKey__2__0(Type TSource, Type TKey) =>
  2682. (s_OrderBy__TSource_TKey__2__0 ??
  2683. (s_OrderBy__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IOrderedAsyncQueryable<object>>(OrderBy<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2684. public static IOrderedAsyncQueryable<TSource> OrderBy<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
  2685. {
  2686. if (source == null)
  2687. throw new ArgumentNullException(nameof(source));
  2688. if (keySelector == null)
  2689. throw new ArgumentNullException(nameof(keySelector));
  2690. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderBy__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  2691. }
  2692. private static MethodInfo? s_OrderBy__TSource_TKey__3__0;
  2693. private static MethodInfo? OrderBy__TSource_TKey__3__0(Type TSource, Type TKey) =>
  2694. (s_OrderBy__TSource_TKey__3__0 ??
  2695. (s_OrderBy__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IComparer<object>, IOrderedAsyncQueryable<object>>(OrderBy<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2696. public static IOrderedAsyncQueryable<TSource> OrderBy<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
  2697. {
  2698. if (source == null)
  2699. throw new ArgumentNullException(nameof(source));
  2700. if (keySelector == null)
  2701. throw new ArgumentNullException(nameof(keySelector));
  2702. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderBy__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  2703. }
  2704. private static MethodInfo? s_OrderByAwait__TSource_TKey__2__0;
  2705. private static MethodInfo? OrderByAwait__TSource_TKey__2__0(Type TSource, Type TKey) =>
  2706. (s_OrderByAwait__TSource_TKey__2__0 ??
  2707. (s_OrderByAwait__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(OrderByAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2708. public static IOrderedAsyncQueryable<TSource> OrderByAwait<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector)
  2709. {
  2710. if (source == null)
  2711. throw new ArgumentNullException(nameof(source));
  2712. if (keySelector == null)
  2713. throw new ArgumentNullException(nameof(keySelector));
  2714. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  2715. }
  2716. private static MethodInfo? s_OrderByAwait__TSource_TKey__3__0;
  2717. private static MethodInfo? OrderByAwait__TSource_TKey__3__0(Type TSource, Type TKey) =>
  2718. (s_OrderByAwait__TSource_TKey__3__0 ??
  2719. (s_OrderByAwait__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(OrderByAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2720. public static IOrderedAsyncQueryable<TSource> OrderByAwait<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  2721. {
  2722. if (source == null)
  2723. throw new ArgumentNullException(nameof(source));
  2724. if (keySelector == null)
  2725. throw new ArgumentNullException(nameof(keySelector));
  2726. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  2727. }
  2728. private static MethodInfo? s_OrderByAwaitWithCancellation__TSource_TKey__2__0;
  2729. private static MethodInfo? OrderByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) =>
  2730. (s_OrderByAwaitWithCancellation__TSource_TKey__2__0 ??
  2731. (s_OrderByAwaitWithCancellation__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(OrderByAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2732. public static IOrderedAsyncQueryable<TSource> OrderByAwaitWithCancellation<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector)
  2733. {
  2734. if (source == null)
  2735. throw new ArgumentNullException(nameof(source));
  2736. if (keySelector == null)
  2737. throw new ArgumentNullException(nameof(keySelector));
  2738. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  2739. }
  2740. private static MethodInfo? s_OrderByAwaitWithCancellation__TSource_TKey__3__0;
  2741. private static MethodInfo? OrderByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) =>
  2742. (s_OrderByAwaitWithCancellation__TSource_TKey__3__0 ??
  2743. (s_OrderByAwaitWithCancellation__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(OrderByAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2744. public static IOrderedAsyncQueryable<TSource> OrderByAwaitWithCancellation<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  2745. {
  2746. if (source == null)
  2747. throw new ArgumentNullException(nameof(source));
  2748. if (keySelector == null)
  2749. throw new ArgumentNullException(nameof(keySelector));
  2750. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  2751. }
  2752. private static MethodInfo? s_OrderByDescending__TSource_TKey__2__0;
  2753. private static MethodInfo? OrderByDescending__TSource_TKey__2__0(Type TSource, Type TKey) =>
  2754. (s_OrderByDescending__TSource_TKey__2__0 ??
  2755. (s_OrderByDescending__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IOrderedAsyncQueryable<object>>(OrderByDescending<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2756. public static IOrderedAsyncQueryable<TSource> OrderByDescending<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
  2757. {
  2758. if (source == null)
  2759. throw new ArgumentNullException(nameof(source));
  2760. if (keySelector == null)
  2761. throw new ArgumentNullException(nameof(keySelector));
  2762. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByDescending__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  2763. }
  2764. private static MethodInfo? s_OrderByDescending__TSource_TKey__3__0;
  2765. private static MethodInfo? OrderByDescending__TSource_TKey__3__0(Type TSource, Type TKey) =>
  2766. (s_OrderByDescending__TSource_TKey__3__0 ??
  2767. (s_OrderByDescending__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IComparer<object>, IOrderedAsyncQueryable<object>>(OrderByDescending<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2768. public static IOrderedAsyncQueryable<TSource> OrderByDescending<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
  2769. {
  2770. if (source == null)
  2771. throw new ArgumentNullException(nameof(source));
  2772. if (keySelector == null)
  2773. throw new ArgumentNullException(nameof(keySelector));
  2774. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByDescending__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  2775. }
  2776. private static MethodInfo? s_OrderByDescendingAwait__TSource_TKey__2__0;
  2777. private static MethodInfo? OrderByDescendingAwait__TSource_TKey__2__0(Type TSource, Type TKey) =>
  2778. (s_OrderByDescendingAwait__TSource_TKey__2__0 ??
  2779. (s_OrderByDescendingAwait__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(OrderByDescendingAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2780. public static IOrderedAsyncQueryable<TSource> OrderByDescendingAwait<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector)
  2781. {
  2782. if (source == null)
  2783. throw new ArgumentNullException(nameof(source));
  2784. if (keySelector == null)
  2785. throw new ArgumentNullException(nameof(keySelector));
  2786. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByDescendingAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  2787. }
  2788. private static MethodInfo? s_OrderByDescendingAwait__TSource_TKey__3__0;
  2789. private static MethodInfo? OrderByDescendingAwait__TSource_TKey__3__0(Type TSource, Type TKey) =>
  2790. (s_OrderByDescendingAwait__TSource_TKey__3__0 ??
  2791. (s_OrderByDescendingAwait__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(OrderByDescendingAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2792. public static IOrderedAsyncQueryable<TSource> OrderByDescendingAwait<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  2793. {
  2794. if (source == null)
  2795. throw new ArgumentNullException(nameof(source));
  2796. if (keySelector == null)
  2797. throw new ArgumentNullException(nameof(keySelector));
  2798. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByDescendingAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  2799. }
  2800. private static MethodInfo? s_OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0;
  2801. private static MethodInfo? OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) =>
  2802. (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0 ??
  2803. (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(OrderByDescendingAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2804. public static IOrderedAsyncQueryable<TSource> OrderByDescendingAwaitWithCancellation<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector)
  2805. {
  2806. if (source == null)
  2807. throw new ArgumentNullException(nameof(source));
  2808. if (keySelector == null)
  2809. throw new ArgumentNullException(nameof(keySelector));
  2810. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByDescendingAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  2811. }
  2812. private static MethodInfo? s_OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0;
  2813. private static MethodInfo? OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) =>
  2814. (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0 ??
  2815. (s_OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(OrderByDescendingAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  2816. public static IOrderedAsyncQueryable<TSource> OrderByDescendingAwaitWithCancellation<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  2817. {
  2818. if (source == null)
  2819. throw new ArgumentNullException(nameof(source));
  2820. if (keySelector == null)
  2821. throw new ArgumentNullException(nameof(keySelector));
  2822. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(OrderByDescendingAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  2823. }
  2824. private static MethodInfo? s_Prepend__TSource__2__0;
  2825. private static MethodInfo? Prepend__TSource__2__0(Type TSource) =>
  2826. (s_Prepend__TSource__2__0 ??
  2827. (s_Prepend__TSource__2__0 = new Func<IAsyncQueryable<object>, object, IAsyncQueryable<object>>(Prepend<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2828. public static IAsyncQueryable<TSource> Prepend<TSource>(this IAsyncQueryable<TSource> source, TSource element)
  2829. {
  2830. if (source == null)
  2831. throw new ArgumentNullException(nameof(source));
  2832. return source.Provider.CreateQuery<TSource>(Expression.Call(Prepend__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(element, typeof(TSource))));
  2833. }
  2834. private static MethodInfo? s_Reverse__TSource__1__0;
  2835. private static MethodInfo? Reverse__TSource__1__0(Type TSource) =>
  2836. (s_Reverse__TSource__1__0 ??
  2837. (s_Reverse__TSource__1__0 = new Func<IAsyncQueryable<object>, IAsyncQueryable<object>>(Reverse<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  2838. public static IAsyncQueryable<TSource> Reverse<TSource>(this IAsyncQueryable<TSource> source)
  2839. {
  2840. if (source == null)
  2841. throw new ArgumentNullException(nameof(source));
  2842. return source.Provider.CreateQuery<TSource>(Expression.Call(Reverse__TSource__1__0(typeof(TSource)), source.Expression));
  2843. }
  2844. private static MethodInfo? s_Select__TSource_TResult__2__0;
  2845. private static MethodInfo? Select__TSource_TResult__2__0(Type TSource, Type TResult) =>
  2846. (s_Select__TSource_TResult__2__0 ??
  2847. (s_Select__TSource_TResult__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, object>>, IAsyncQueryable<object>>(Select<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2848. public static IAsyncQueryable<TResult> Select<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, TResult>> selector)
  2849. {
  2850. if (source == null)
  2851. throw new ArgumentNullException(nameof(source));
  2852. if (selector == null)
  2853. throw new ArgumentNullException(nameof(selector));
  2854. return source.Provider.CreateQuery<TResult>(Expression.Call(Select__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2855. }
  2856. private static MethodInfo? s_Select__TSource_TResult__2__1;
  2857. private static MethodInfo? Select__TSource_TResult__2__1(Type TSource, Type TResult) =>
  2858. (s_Select__TSource_TResult__2__1 ??
  2859. (s_Select__TSource_TResult__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IAsyncQueryable<object>>(Select<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2860. public static IAsyncQueryable<TResult> Select<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TResult>> selector)
  2861. {
  2862. if (source == null)
  2863. throw new ArgumentNullException(nameof(source));
  2864. if (selector == null)
  2865. throw new ArgumentNullException(nameof(selector));
  2866. return source.Provider.CreateQuery<TResult>(Expression.Call(Select__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2867. }
  2868. private static MethodInfo? s_SelectAwait__TSource_TResult__2__0;
  2869. private static MethodInfo? SelectAwait__TSource_TResult__2__0(Type TSource, Type TResult) =>
  2870. (s_SelectAwait__TSource_TResult__2__0 ??
  2871. (s_SelectAwait__TSource_TResult__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, ValueTask<object>>>, IAsyncQueryable<object>>(SelectAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2872. public static IAsyncQueryable<TResult> SelectAwait<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, ValueTask<TResult>>> selector)
  2873. {
  2874. if (source == null)
  2875. throw new ArgumentNullException(nameof(source));
  2876. if (selector == null)
  2877. throw new ArgumentNullException(nameof(selector));
  2878. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectAwait__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2879. }
  2880. private static MethodInfo? s_SelectAwait__TSource_TResult__2__1;
  2881. private static MethodInfo? SelectAwait__TSource_TResult__2__1(Type TSource, Type TResult) =>
  2882. (s_SelectAwait__TSource_TResult__2__1 ??
  2883. (s_SelectAwait__TSource_TResult__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IAsyncQueryable<object>>(SelectAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2884. public static IAsyncQueryable<TResult> SelectAwait<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TResult>>> selector)
  2885. {
  2886. if (source == null)
  2887. throw new ArgumentNullException(nameof(source));
  2888. if (selector == null)
  2889. throw new ArgumentNullException(nameof(selector));
  2890. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectAwait__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2891. }
  2892. private static MethodInfo? s_SelectAwaitWithCancellation__TSource_TResult__2__0;
  2893. private static MethodInfo? SelectAwaitWithCancellation__TSource_TResult__2__0(Type TSource, Type TResult) =>
  2894. (s_SelectAwaitWithCancellation__TSource_TResult__2__0 ??
  2895. (s_SelectAwaitWithCancellation__TSource_TResult__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(SelectAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2896. public static IAsyncQueryable<TResult> SelectAwaitWithCancellation<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TResult>>> selector)
  2897. {
  2898. if (source == null)
  2899. throw new ArgumentNullException(nameof(source));
  2900. if (selector == null)
  2901. throw new ArgumentNullException(nameof(selector));
  2902. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectAwaitWithCancellation__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2903. }
  2904. private static MethodInfo? s_SelectAwaitWithCancellation__TSource_TResult__2__1;
  2905. private static MethodInfo? SelectAwaitWithCancellation__TSource_TResult__2__1(Type TSource, Type TResult) =>
  2906. (s_SelectAwaitWithCancellation__TSource_TResult__2__1 ??
  2907. (s_SelectAwaitWithCancellation__TSource_TResult__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(SelectAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2908. public static IAsyncQueryable<TResult> SelectAwaitWithCancellation<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, CancellationToken, ValueTask<TResult>>> selector)
  2909. {
  2910. if (source == null)
  2911. throw new ArgumentNullException(nameof(source));
  2912. if (selector == null)
  2913. throw new ArgumentNullException(nameof(selector));
  2914. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectAwaitWithCancellation__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2915. }
  2916. private static MethodInfo? s_SelectMany__TSource_TResult__2__0;
  2917. private static MethodInfo? SelectMany__TSource_TResult__2__0(Type TSource, Type TResult) =>
  2918. (s_SelectMany__TSource_TResult__2__0 ??
  2919. (s_SelectMany__TSource_TResult__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, IAsyncEnumerable<object>>>, IAsyncQueryable<object>>(SelectMany<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2920. public static IAsyncQueryable<TResult> SelectMany<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, IAsyncEnumerable<TResult>>> selector)
  2921. {
  2922. if (source == null)
  2923. throw new ArgumentNullException(nameof(source));
  2924. if (selector == null)
  2925. throw new ArgumentNullException(nameof(selector));
  2926. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectMany__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2927. }
  2928. private static MethodInfo? s_SelectMany__TSource_TResult__2__1;
  2929. private static MethodInfo? SelectMany__TSource_TResult__2__1(Type TSource, Type TResult) =>
  2930. (s_SelectMany__TSource_TResult__2__1 ??
  2931. (s_SelectMany__TSource_TResult__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, IAsyncEnumerable<object>>>, IAsyncQueryable<object>>(SelectMany<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2932. public static IAsyncQueryable<TResult> SelectMany<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, IAsyncEnumerable<TResult>>> selector)
  2933. {
  2934. if (source == null)
  2935. throw new ArgumentNullException(nameof(source));
  2936. if (selector == null)
  2937. throw new ArgumentNullException(nameof(selector));
  2938. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectMany__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2939. }
  2940. private static MethodInfo? s_SelectMany__TSource_TCollection_TResult__3__0;
  2941. private static MethodInfo? SelectMany__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) =>
  2942. (s_SelectMany__TSource_TCollection_TResult__3__0 ??
  2943. (s_SelectMany__TSource_TCollection_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, IAsyncEnumerable<object>>>, Expression<Func<object, object, object>>, IAsyncQueryable<object>>(SelectMany<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult);
  2944. public static IAsyncQueryable<TResult> SelectMany<TSource, TCollection, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, IAsyncEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
  2945. {
  2946. if (source == null)
  2947. throw new ArgumentNullException(nameof(source));
  2948. if (collectionSelector == null)
  2949. throw new ArgumentNullException(nameof(collectionSelector));
  2950. if (resultSelector == null)
  2951. throw new ArgumentNullException(nameof(resultSelector));
  2952. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectMany__TSource_TCollection_TResult__3__0(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector));
  2953. }
  2954. private static MethodInfo? s_SelectMany__TSource_TCollection_TResult__3__1;
  2955. private static MethodInfo? SelectMany__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) =>
  2956. (s_SelectMany__TSource_TCollection_TResult__3__1 ??
  2957. (s_SelectMany__TSource_TCollection_TResult__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, IAsyncEnumerable<object>>>, Expression<Func<object, object, object>>, IAsyncQueryable<object>>(SelectMany<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult);
  2958. public static IAsyncQueryable<TResult> SelectMany<TSource, TCollection, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, IAsyncEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
  2959. {
  2960. if (source == null)
  2961. throw new ArgumentNullException(nameof(source));
  2962. if (collectionSelector == null)
  2963. throw new ArgumentNullException(nameof(collectionSelector));
  2964. if (resultSelector == null)
  2965. throw new ArgumentNullException(nameof(resultSelector));
  2966. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectMany__TSource_TCollection_TResult__3__1(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector));
  2967. }
  2968. private static MethodInfo? s_SelectManyAwait__TSource_TResult__2__0;
  2969. private static MethodInfo? SelectManyAwait__TSource_TResult__2__0(Type TSource, Type TResult) =>
  2970. (s_SelectManyAwait__TSource_TResult__2__0 ??
  2971. (s_SelectManyAwait__TSource_TResult__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, ValueTask<IAsyncEnumerable<object>>>>, IAsyncQueryable<object>>(SelectManyAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2972. public static IAsyncQueryable<TResult> SelectManyAwait<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, ValueTask<IAsyncEnumerable<TResult>>>> selector)
  2973. {
  2974. if (source == null)
  2975. throw new ArgumentNullException(nameof(source));
  2976. if (selector == null)
  2977. throw new ArgumentNullException(nameof(selector));
  2978. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwait__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2979. }
  2980. private static MethodInfo? s_SelectManyAwait__TSource_TResult__2__1;
  2981. private static MethodInfo? SelectManyAwait__TSource_TResult__2__1(Type TSource, Type TResult) =>
  2982. (s_SelectManyAwait__TSource_TResult__2__1 ??
  2983. (s_SelectManyAwait__TSource_TResult__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<IAsyncEnumerable<object>>>>, IAsyncQueryable<object>>(SelectManyAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  2984. public static IAsyncQueryable<TResult> SelectManyAwait<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<IAsyncEnumerable<TResult>>>> selector)
  2985. {
  2986. if (source == null)
  2987. throw new ArgumentNullException(nameof(source));
  2988. if (selector == null)
  2989. throw new ArgumentNullException(nameof(selector));
  2990. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwait__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector));
  2991. }
  2992. private static MethodInfo? s_SelectManyAwait__TSource_TCollection_TResult__3__0;
  2993. private static MethodInfo? SelectManyAwait__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) =>
  2994. (s_SelectManyAwait__TSource_TCollection_TResult__3__0 ??
  2995. (s_SelectManyAwait__TSource_TCollection_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, ValueTask<IAsyncEnumerable<object>>>>, Expression<Func<object, object, ValueTask<object>>>, IAsyncQueryable<object>>(SelectManyAwait<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult);
  2996. public static IAsyncQueryable<TResult> SelectManyAwait<TSource, TCollection, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, ValueTask<IAsyncEnumerable<TCollection>>>> collectionSelector, Expression<Func<TSource, TCollection, ValueTask<TResult>>> resultSelector)
  2997. {
  2998. if (source == null)
  2999. throw new ArgumentNullException(nameof(source));
  3000. if (collectionSelector == null)
  3001. throw new ArgumentNullException(nameof(collectionSelector));
  3002. if (resultSelector == null)
  3003. throw new ArgumentNullException(nameof(resultSelector));
  3004. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwait__TSource_TCollection_TResult__3__0(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector));
  3005. }
  3006. private static MethodInfo? s_SelectManyAwait__TSource_TCollection_TResult__3__1;
  3007. private static MethodInfo? SelectManyAwait__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) =>
  3008. (s_SelectManyAwait__TSource_TCollection_TResult__3__1 ??
  3009. (s_SelectManyAwait__TSource_TCollection_TResult__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<IAsyncEnumerable<object>>>>, Expression<Func<object, object, ValueTask<object>>>, IAsyncQueryable<object>>(SelectManyAwait<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult);
  3010. public static IAsyncQueryable<TResult> SelectManyAwait<TSource, TCollection, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<IAsyncEnumerable<TCollection>>>> collectionSelector, Expression<Func<TSource, TCollection, ValueTask<TResult>>> resultSelector)
  3011. {
  3012. if (source == null)
  3013. throw new ArgumentNullException(nameof(source));
  3014. if (collectionSelector == null)
  3015. throw new ArgumentNullException(nameof(collectionSelector));
  3016. if (resultSelector == null)
  3017. throw new ArgumentNullException(nameof(resultSelector));
  3018. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwait__TSource_TCollection_TResult__3__1(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector));
  3019. }
  3020. private static MethodInfo? s_SelectManyAwaitWithCancellation__TSource_TResult__2__0;
  3021. private static MethodInfo? SelectManyAwaitWithCancellation__TSource_TResult__2__0(Type TSource, Type TResult) =>
  3022. (s_SelectManyAwaitWithCancellation__TSource_TResult__2__0 ??
  3023. (s_SelectManyAwaitWithCancellation__TSource_TResult__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<IAsyncEnumerable<object>>>>, IAsyncQueryable<object>>(SelectManyAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  3024. public static IAsyncQueryable<TResult> SelectManyAwaitWithCancellation<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<IAsyncEnumerable<TResult>>>> selector)
  3025. {
  3026. if (source == null)
  3027. throw new ArgumentNullException(nameof(source));
  3028. if (selector == null)
  3029. throw new ArgumentNullException(nameof(selector));
  3030. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwaitWithCancellation__TSource_TResult__2__0(typeof(TSource), typeof(TResult)), source.Expression, selector));
  3031. }
  3032. private static MethodInfo? s_SelectManyAwaitWithCancellation__TSource_TResult__2__1;
  3033. private static MethodInfo? SelectManyAwaitWithCancellation__TSource_TResult__2__1(Type TSource, Type TResult) =>
  3034. (s_SelectManyAwaitWithCancellation__TSource_TResult__2__1 ??
  3035. (s_SelectManyAwaitWithCancellation__TSource_TResult__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, CancellationToken, ValueTask<IAsyncEnumerable<object>>>>, IAsyncQueryable<object>>(SelectManyAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TResult);
  3036. public static IAsyncQueryable<TResult> SelectManyAwaitWithCancellation<TSource, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, CancellationToken, ValueTask<IAsyncEnumerable<TResult>>>> selector)
  3037. {
  3038. if (source == null)
  3039. throw new ArgumentNullException(nameof(source));
  3040. if (selector == null)
  3041. throw new ArgumentNullException(nameof(selector));
  3042. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwaitWithCancellation__TSource_TResult__2__1(typeof(TSource), typeof(TResult)), source.Expression, selector));
  3043. }
  3044. private static MethodInfo? s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0;
  3045. private static MethodInfo? SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0(Type TSource, Type TCollection, Type TResult) =>
  3046. (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0 ??
  3047. (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<IAsyncEnumerable<object>>>>, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(SelectManyAwaitWithCancellation<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult);
  3048. public static IAsyncQueryable<TResult> SelectManyAwaitWithCancellation<TSource, TCollection, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<IAsyncEnumerable<TCollection>>>> collectionSelector, Expression<Func<TSource, TCollection, CancellationToken, ValueTask<TResult>>> resultSelector)
  3049. {
  3050. if (source == null)
  3051. throw new ArgumentNullException(nameof(source));
  3052. if (collectionSelector == null)
  3053. throw new ArgumentNullException(nameof(collectionSelector));
  3054. if (resultSelector == null)
  3055. throw new ArgumentNullException(nameof(resultSelector));
  3056. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__0(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector));
  3057. }
  3058. private static MethodInfo? s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1;
  3059. private static MethodInfo? SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1(Type TSource, Type TCollection, Type TResult) =>
  3060. (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1 ??
  3061. (s_SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, CancellationToken, ValueTask<IAsyncEnumerable<object>>>>, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(SelectManyAwaitWithCancellation<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TCollection, TResult);
  3062. public static IAsyncQueryable<TResult> SelectManyAwaitWithCancellation<TSource, TCollection, TResult>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, CancellationToken, ValueTask<IAsyncEnumerable<TCollection>>>> collectionSelector, Expression<Func<TSource, TCollection, CancellationToken, ValueTask<TResult>>> resultSelector)
  3063. {
  3064. if (source == null)
  3065. throw new ArgumentNullException(nameof(source));
  3066. if (collectionSelector == null)
  3067. throw new ArgumentNullException(nameof(collectionSelector));
  3068. if (resultSelector == null)
  3069. throw new ArgumentNullException(nameof(resultSelector));
  3070. return source.Provider.CreateQuery<TResult>(Expression.Call(SelectManyAwaitWithCancellation__TSource_TCollection_TResult__3__1(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, collectionSelector, resultSelector));
  3071. }
  3072. private static MethodInfo? s_SequenceEqualAsync__TSource__3__0;
  3073. private static MethodInfo? SequenceEqualAsync__TSource__3__0(Type TSource) =>
  3074. (s_SequenceEqualAsync__TSource__3__0 ??
  3075. (s_SequenceEqualAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, CancellationToken, ValueTask<bool>>(SequenceEqualAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3076. public static ValueTask<bool> SequenceEqualAsync<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second, CancellationToken cancellationToken = default)
  3077. {
  3078. if (first == null)
  3079. throw new ArgumentNullException(nameof(first));
  3080. if (second == null)
  3081. throw new ArgumentNullException(nameof(second));
  3082. return first.Provider.ExecuteAsync<bool>(Expression.Call(SequenceEqualAsync__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3083. }
  3084. private static MethodInfo? s_SequenceEqualAsync__TSource__4__0;
  3085. private static MethodInfo? SequenceEqualAsync__TSource__4__0(Type TSource) =>
  3086. (s_SequenceEqualAsync__TSource__4__0 ??
  3087. (s_SequenceEqualAsync__TSource__4__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IEqualityComparer<object>, CancellationToken, ValueTask<bool>>(SequenceEqualAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3088. public static ValueTask<bool> SequenceEqualAsync<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource>? comparer, CancellationToken cancellationToken = default)
  3089. {
  3090. if (first == null)
  3091. throw new ArgumentNullException(nameof(first));
  3092. if (second == null)
  3093. throw new ArgumentNullException(nameof(second));
  3094. return first.Provider.ExecuteAsync<bool>(Expression.Call(SequenceEqualAsync__TSource__4__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer<TSource>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3095. }
  3096. private static MethodInfo? s_SingleAsync__TSource__2__0;
  3097. private static MethodInfo? SingleAsync__TSource__2__0(Type TSource) =>
  3098. (s_SingleAsync__TSource__2__0 ??
  3099. (s_SingleAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object>>(SingleAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3100. public static ValueTask<TSource> SingleAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  3101. {
  3102. if (source == null)
  3103. throw new ArgumentNullException(nameof(source));
  3104. return source.Provider.ExecuteAsync<TSource>(Expression.Call(SingleAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3105. }
  3106. private static MethodInfo? s_SingleAsync__TSource__3__0;
  3107. private static MethodInfo? SingleAsync__TSource__3__0(Type TSource) =>
  3108. (s_SingleAsync__TSource__3__0 ??
  3109. (s_SingleAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<object>>(SingleAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3110. public static ValueTask<TSource> SingleAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  3111. {
  3112. if (source == null)
  3113. throw new ArgumentNullException(nameof(source));
  3114. if (predicate == null)
  3115. throw new ArgumentNullException(nameof(predicate));
  3116. return source.Provider.ExecuteAsync<TSource>(Expression.Call(SingleAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3117. }
  3118. private static MethodInfo? s_SingleAwaitAsync__TSource__3__0;
  3119. private static MethodInfo? SingleAwaitAsync__TSource__3__0(Type TSource) =>
  3120. (s_SingleAwaitAsync__TSource__3__0 ??
  3121. (s_SingleAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<object>>(SingleAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3122. public static ValueTask<TSource> SingleAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  3123. {
  3124. if (source == null)
  3125. throw new ArgumentNullException(nameof(source));
  3126. if (predicate == null)
  3127. throw new ArgumentNullException(nameof(predicate));
  3128. return source.Provider.ExecuteAsync<TSource>(Expression.Call(SingleAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3129. }
  3130. private static MethodInfo? s_SingleAwaitWithCancellationAsync__TSource__3__0;
  3131. private static MethodInfo? SingleAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  3132. (s_SingleAwaitWithCancellationAsync__TSource__3__0 ??
  3133. (s_SingleAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<object>>(SingleAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3134. public static ValueTask<TSource> SingleAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  3135. {
  3136. if (source == null)
  3137. throw new ArgumentNullException(nameof(source));
  3138. if (predicate == null)
  3139. throw new ArgumentNullException(nameof(predicate));
  3140. return source.Provider.ExecuteAsync<TSource>(Expression.Call(SingleAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3141. }
  3142. private static MethodInfo? s_SingleOrDefaultAsync__TSource__2__0;
  3143. private static MethodInfo? SingleOrDefaultAsync__TSource__2__0(Type TSource) =>
  3144. (s_SingleOrDefaultAsync__TSource__2__0 ??
  3145. (s_SingleOrDefaultAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object?>>(SingleOrDefaultAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3146. public static ValueTask<TSource?> SingleOrDefaultAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  3147. {
  3148. if (source == null)
  3149. throw new ArgumentNullException(nameof(source));
  3150. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(SingleOrDefaultAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3151. }
  3152. private static MethodInfo? s_SingleOrDefaultAsync__TSource__3__0;
  3153. private static MethodInfo? SingleOrDefaultAsync__TSource__3__0(Type TSource) =>
  3154. (s_SingleOrDefaultAsync__TSource__3__0 ??
  3155. (s_SingleOrDefaultAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, CancellationToken, ValueTask<object?>>(SingleOrDefaultAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3156. public static ValueTask<TSource?> SingleOrDefaultAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken cancellationToken = default)
  3157. {
  3158. if (source == null)
  3159. throw new ArgumentNullException(nameof(source));
  3160. if (predicate == null)
  3161. throw new ArgumentNullException(nameof(predicate));
  3162. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(SingleOrDefaultAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3163. }
  3164. private static MethodInfo? s_SingleOrDefaultAwaitAsync__TSource__3__0;
  3165. private static MethodInfo? SingleOrDefaultAwaitAsync__TSource__3__0(Type TSource) =>
  3166. (s_SingleOrDefaultAwaitAsync__TSource__3__0 ??
  3167. (s_SingleOrDefaultAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, CancellationToken, ValueTask<object?>>(SingleOrDefaultAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3168. public static ValueTask<TSource?> SingleOrDefaultAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  3169. {
  3170. if (source == null)
  3171. throw new ArgumentNullException(nameof(source));
  3172. if (predicate == null)
  3173. throw new ArgumentNullException(nameof(predicate));
  3174. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(SingleOrDefaultAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3175. }
  3176. private static MethodInfo? s_SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0;
  3177. private static MethodInfo? SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  3178. (s_SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0 ??
  3179. (s_SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, CancellationToken, ValueTask<object?>>(SingleOrDefaultAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3180. public static ValueTask<TSource?> SingleOrDefaultAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate, CancellationToken cancellationToken = default)
  3181. {
  3182. if (source == null)
  3183. throw new ArgumentNullException(nameof(source));
  3184. if (predicate == null)
  3185. throw new ArgumentNullException(nameof(predicate));
  3186. return source.Provider.ExecuteAsync<TSource?>(Expression.Call(SingleOrDefaultAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, predicate, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3187. }
  3188. private static MethodInfo? s_Skip__TSource__2__0;
  3189. private static MethodInfo? Skip__TSource__2__0(Type TSource) =>
  3190. (s_Skip__TSource__2__0 ??
  3191. (s_Skip__TSource__2__0 = new Func<IAsyncQueryable<object>, int, IAsyncQueryable<object>>(Skip<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3192. public static IAsyncQueryable<TSource> Skip<TSource>(this IAsyncQueryable<TSource> source, int count)
  3193. {
  3194. if (source == null)
  3195. throw new ArgumentNullException(nameof(source));
  3196. return source.Provider.CreateQuery<TSource>(Expression.Call(Skip__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int))));
  3197. }
  3198. private static MethodInfo? s_SkipLast__TSource__2__0;
  3199. private static MethodInfo? SkipLast__TSource__2__0(Type TSource) =>
  3200. (s_SkipLast__TSource__2__0 ??
  3201. (s_SkipLast__TSource__2__0 = new Func<IAsyncQueryable<object>, int, IAsyncQueryable<object>>(SkipLast<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3202. public static IAsyncQueryable<TSource> SkipLast<TSource>(this IAsyncQueryable<TSource> source, int count)
  3203. {
  3204. if (source == null)
  3205. throw new ArgumentNullException(nameof(source));
  3206. return source.Provider.CreateQuery<TSource>(Expression.Call(SkipLast__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int))));
  3207. }
  3208. private static MethodInfo? s_SkipWhile__TSource__2__0;
  3209. private static MethodInfo? SkipWhile__TSource__2__0(Type TSource) =>
  3210. (s_SkipWhile__TSource__2__0 ??
  3211. (s_SkipWhile__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, IAsyncQueryable<object>>(SkipWhile<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3212. public static IAsyncQueryable<TSource> SkipWhile<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
  3213. {
  3214. if (source == null)
  3215. throw new ArgumentNullException(nameof(source));
  3216. if (predicate == null)
  3217. throw new ArgumentNullException(nameof(predicate));
  3218. return source.Provider.CreateQuery<TSource>(Expression.Call(SkipWhile__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  3219. }
  3220. private static MethodInfo? s_SkipWhile__TSource__2__1;
  3221. private static MethodInfo? SkipWhile__TSource__2__1(Type TSource) =>
  3222. (s_SkipWhile__TSource__2__1 ??
  3223. (s_SkipWhile__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, bool>>, IAsyncQueryable<object>>(SkipWhile<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3224. public static IAsyncQueryable<TSource> SkipWhile<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate)
  3225. {
  3226. if (source == null)
  3227. throw new ArgumentNullException(nameof(source));
  3228. if (predicate == null)
  3229. throw new ArgumentNullException(nameof(predicate));
  3230. return source.Provider.CreateQuery<TSource>(Expression.Call(SkipWhile__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  3231. }
  3232. private static MethodInfo? s_SkipWhileAwait__TSource__2__0;
  3233. private static MethodInfo? SkipWhileAwait__TSource__2__0(Type TSource) =>
  3234. (s_SkipWhileAwait__TSource__2__0 ??
  3235. (s_SkipWhileAwait__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, ValueTask<bool>>>, IAsyncQueryable<object>>(SkipWhileAwait<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3236. public static IAsyncQueryable<TSource> SkipWhileAwait<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, ValueTask<bool>>> predicate)
  3237. {
  3238. if (source == null)
  3239. throw new ArgumentNullException(nameof(source));
  3240. if (predicate == null)
  3241. throw new ArgumentNullException(nameof(predicate));
  3242. return source.Provider.CreateQuery<TSource>(Expression.Call(SkipWhileAwait__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  3243. }
  3244. private static MethodInfo? s_SkipWhileAwait__TSource__2__1;
  3245. private static MethodInfo? SkipWhileAwait__TSource__2__1(Type TSource) =>
  3246. (s_SkipWhileAwait__TSource__2__1 ??
  3247. (s_SkipWhileAwait__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, IAsyncQueryable<object>>(SkipWhileAwait<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3248. public static IAsyncQueryable<TSource> SkipWhileAwait<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate)
  3249. {
  3250. if (source == null)
  3251. throw new ArgumentNullException(nameof(source));
  3252. if (predicate == null)
  3253. throw new ArgumentNullException(nameof(predicate));
  3254. return source.Provider.CreateQuery<TSource>(Expression.Call(SkipWhileAwait__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  3255. }
  3256. private static MethodInfo? s_SkipWhileAwaitWithCancellation__TSource__2__0;
  3257. private static MethodInfo? SkipWhileAwaitWithCancellation__TSource__2__0(Type TSource) =>
  3258. (s_SkipWhileAwaitWithCancellation__TSource__2__0 ??
  3259. (s_SkipWhileAwaitWithCancellation__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, IAsyncQueryable<object>>(SkipWhileAwaitWithCancellation<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3260. public static IAsyncQueryable<TSource> SkipWhileAwaitWithCancellation<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate)
  3261. {
  3262. if (source == null)
  3263. throw new ArgumentNullException(nameof(source));
  3264. if (predicate == null)
  3265. throw new ArgumentNullException(nameof(predicate));
  3266. return source.Provider.CreateQuery<TSource>(Expression.Call(SkipWhileAwaitWithCancellation__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  3267. }
  3268. private static MethodInfo? s_SkipWhileAwaitWithCancellation__TSource__2__1;
  3269. private static MethodInfo? SkipWhileAwaitWithCancellation__TSource__2__1(Type TSource) =>
  3270. (s_SkipWhileAwaitWithCancellation__TSource__2__1 ??
  3271. (s_SkipWhileAwaitWithCancellation__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, CancellationToken, ValueTask<bool>>>, IAsyncQueryable<object>>(SkipWhileAwaitWithCancellation<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3272. public static IAsyncQueryable<TSource> SkipWhileAwaitWithCancellation<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, CancellationToken, ValueTask<bool>>> predicate)
  3273. {
  3274. if (source == null)
  3275. throw new ArgumentNullException(nameof(source));
  3276. if (predicate == null)
  3277. throw new ArgumentNullException(nameof(predicate));
  3278. return source.Provider.CreateQuery<TSource>(Expression.Call(SkipWhileAwaitWithCancellation__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  3279. }
  3280. private static MethodInfo? s_SumAsync__2__0;
  3281. private static MethodInfo? SumAsync__2__0 =>
  3282. (s_SumAsync__2__0 ??
  3283. (s_SumAsync__2__0 = new Func<IAsyncQueryable<decimal?>, CancellationToken, ValueTask<decimal?>>(SumAsync).GetMethodInfo()));
  3284. public static ValueTask<decimal?> SumAsync(this IAsyncQueryable<decimal?> source, CancellationToken cancellationToken = default)
  3285. {
  3286. if (source == null)
  3287. throw new ArgumentNullException(nameof(source));
  3288. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(SumAsync__2__0, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3289. }
  3290. private static MethodInfo? s_SumAsync__2__1;
  3291. private static MethodInfo? SumAsync__2__1 =>
  3292. (s_SumAsync__2__1 ??
  3293. (s_SumAsync__2__1 = new Func<IAsyncQueryable<decimal>, CancellationToken, ValueTask<decimal>>(SumAsync).GetMethodInfo()));
  3294. public static ValueTask<decimal> SumAsync(this IAsyncQueryable<decimal> source, CancellationToken cancellationToken = default)
  3295. {
  3296. if (source == null)
  3297. throw new ArgumentNullException(nameof(source));
  3298. return source.Provider.ExecuteAsync<decimal>(Expression.Call(SumAsync__2__1, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3299. }
  3300. private static MethodInfo? s_SumAsync__2__2;
  3301. private static MethodInfo? SumAsync__2__2 =>
  3302. (s_SumAsync__2__2 ??
  3303. (s_SumAsync__2__2 = new Func<IAsyncQueryable<double?>, CancellationToken, ValueTask<double?>>(SumAsync).GetMethodInfo()));
  3304. public static ValueTask<double?> SumAsync(this IAsyncQueryable<double?> source, CancellationToken cancellationToken = default)
  3305. {
  3306. if (source == null)
  3307. throw new ArgumentNullException(nameof(source));
  3308. return source.Provider.ExecuteAsync<double?>(Expression.Call(SumAsync__2__2, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3309. }
  3310. private static MethodInfo? s_SumAsync__2__3;
  3311. private static MethodInfo? SumAsync__2__3 =>
  3312. (s_SumAsync__2__3 ??
  3313. (s_SumAsync__2__3 = new Func<IAsyncQueryable<double>, CancellationToken, ValueTask<double>>(SumAsync).GetMethodInfo()));
  3314. public static ValueTask<double> SumAsync(this IAsyncQueryable<double> source, CancellationToken cancellationToken = default)
  3315. {
  3316. if (source == null)
  3317. throw new ArgumentNullException(nameof(source));
  3318. return source.Provider.ExecuteAsync<double>(Expression.Call(SumAsync__2__3, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3319. }
  3320. private static MethodInfo? s_SumAsync__2__4;
  3321. private static MethodInfo? SumAsync__2__4 =>
  3322. (s_SumAsync__2__4 ??
  3323. (s_SumAsync__2__4 = new Func<IAsyncQueryable<float?>, CancellationToken, ValueTask<float?>>(SumAsync).GetMethodInfo()));
  3324. public static ValueTask<float?> SumAsync(this IAsyncQueryable<float?> source, CancellationToken cancellationToken = default)
  3325. {
  3326. if (source == null)
  3327. throw new ArgumentNullException(nameof(source));
  3328. return source.Provider.ExecuteAsync<float?>(Expression.Call(SumAsync__2__4, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3329. }
  3330. private static MethodInfo? s_SumAsync__2__5;
  3331. private static MethodInfo? SumAsync__2__5 =>
  3332. (s_SumAsync__2__5 ??
  3333. (s_SumAsync__2__5 = new Func<IAsyncQueryable<float>, CancellationToken, ValueTask<float>>(SumAsync).GetMethodInfo()));
  3334. public static ValueTask<float> SumAsync(this IAsyncQueryable<float> source, CancellationToken cancellationToken = default)
  3335. {
  3336. if (source == null)
  3337. throw new ArgumentNullException(nameof(source));
  3338. return source.Provider.ExecuteAsync<float>(Expression.Call(SumAsync__2__5, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3339. }
  3340. private static MethodInfo? s_SumAsync__2__6;
  3341. private static MethodInfo? SumAsync__2__6 =>
  3342. (s_SumAsync__2__6 ??
  3343. (s_SumAsync__2__6 = new Func<IAsyncQueryable<int?>, CancellationToken, ValueTask<int?>>(SumAsync).GetMethodInfo()));
  3344. public static ValueTask<int?> SumAsync(this IAsyncQueryable<int?> source, CancellationToken cancellationToken = default)
  3345. {
  3346. if (source == null)
  3347. throw new ArgumentNullException(nameof(source));
  3348. return source.Provider.ExecuteAsync<int?>(Expression.Call(SumAsync__2__6, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3349. }
  3350. private static MethodInfo? s_SumAsync__2__7;
  3351. private static MethodInfo? SumAsync__2__7 =>
  3352. (s_SumAsync__2__7 ??
  3353. (s_SumAsync__2__7 = new Func<IAsyncQueryable<int>, CancellationToken, ValueTask<int>>(SumAsync).GetMethodInfo()));
  3354. public static ValueTask<int> SumAsync(this IAsyncQueryable<int> source, CancellationToken cancellationToken = default)
  3355. {
  3356. if (source == null)
  3357. throw new ArgumentNullException(nameof(source));
  3358. return source.Provider.ExecuteAsync<int>(Expression.Call(SumAsync__2__7, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3359. }
  3360. private static MethodInfo? s_SumAsync__2__8;
  3361. private static MethodInfo? SumAsync__2__8 =>
  3362. (s_SumAsync__2__8 ??
  3363. (s_SumAsync__2__8 = new Func<IAsyncQueryable<long?>, CancellationToken, ValueTask<long?>>(SumAsync).GetMethodInfo()));
  3364. public static ValueTask<long?> SumAsync(this IAsyncQueryable<long?> source, CancellationToken cancellationToken = default)
  3365. {
  3366. if (source == null)
  3367. throw new ArgumentNullException(nameof(source));
  3368. return source.Provider.ExecuteAsync<long?>(Expression.Call(SumAsync__2__8, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3369. }
  3370. private static MethodInfo? s_SumAsync__2__9;
  3371. private static MethodInfo? SumAsync__2__9 =>
  3372. (s_SumAsync__2__9 ??
  3373. (s_SumAsync__2__9 = new Func<IAsyncQueryable<long>, CancellationToken, ValueTask<long>>(SumAsync).GetMethodInfo()));
  3374. public static ValueTask<long> SumAsync(this IAsyncQueryable<long> source, CancellationToken cancellationToken = default)
  3375. {
  3376. if (source == null)
  3377. throw new ArgumentNullException(nameof(source));
  3378. return source.Provider.ExecuteAsync<long>(Expression.Call(SumAsync__2__9, source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3379. }
  3380. private static MethodInfo? s_SumAsync__TSource__3__0;
  3381. private static MethodInfo? SumAsync__TSource__3__0(Type TSource) =>
  3382. (s_SumAsync__TSource__3__0 ??
  3383. (s_SumAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal?>>, CancellationToken, ValueTask<decimal?>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3384. public static ValueTask<decimal?> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken cancellationToken = default)
  3385. {
  3386. if (source == null)
  3387. throw new ArgumentNullException(nameof(source));
  3388. if (selector == null)
  3389. throw new ArgumentNullException(nameof(selector));
  3390. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(SumAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3391. }
  3392. private static MethodInfo? s_SumAsync__TSource__3__1;
  3393. private static MethodInfo? SumAsync__TSource__3__1(Type TSource) =>
  3394. (s_SumAsync__TSource__3__1 ??
  3395. (s_SumAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, decimal>>, CancellationToken, ValueTask<decimal>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3396. public static ValueTask<decimal> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken cancellationToken = default)
  3397. {
  3398. if (source == null)
  3399. throw new ArgumentNullException(nameof(source));
  3400. if (selector == null)
  3401. throw new ArgumentNullException(nameof(selector));
  3402. return source.Provider.ExecuteAsync<decimal>(Expression.Call(SumAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3403. }
  3404. private static MethodInfo? s_SumAsync__TSource__3__2;
  3405. private static MethodInfo? SumAsync__TSource__3__2(Type TSource) =>
  3406. (s_SumAsync__TSource__3__2 ??
  3407. (s_SumAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, double?>>, CancellationToken, ValueTask<double?>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3408. public static ValueTask<double?> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken cancellationToken = default)
  3409. {
  3410. if (source == null)
  3411. throw new ArgumentNullException(nameof(source));
  3412. if (selector == null)
  3413. throw new ArgumentNullException(nameof(selector));
  3414. return source.Provider.ExecuteAsync<double?>(Expression.Call(SumAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3415. }
  3416. private static MethodInfo? s_SumAsync__TSource__3__3;
  3417. private static MethodInfo? SumAsync__TSource__3__3(Type TSource) =>
  3418. (s_SumAsync__TSource__3__3 ??
  3419. (s_SumAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, double>>, CancellationToken, ValueTask<double>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3420. public static ValueTask<double> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken cancellationToken = default)
  3421. {
  3422. if (source == null)
  3423. throw new ArgumentNullException(nameof(source));
  3424. if (selector == null)
  3425. throw new ArgumentNullException(nameof(selector));
  3426. return source.Provider.ExecuteAsync<double>(Expression.Call(SumAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3427. }
  3428. private static MethodInfo? s_SumAsync__TSource__3__4;
  3429. private static MethodInfo? SumAsync__TSource__3__4(Type TSource) =>
  3430. (s_SumAsync__TSource__3__4 ??
  3431. (s_SumAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, float?>>, CancellationToken, ValueTask<float?>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3432. public static ValueTask<float?> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken cancellationToken = default)
  3433. {
  3434. if (source == null)
  3435. throw new ArgumentNullException(nameof(source));
  3436. if (selector == null)
  3437. throw new ArgumentNullException(nameof(selector));
  3438. return source.Provider.ExecuteAsync<float?>(Expression.Call(SumAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3439. }
  3440. private static MethodInfo? s_SumAsync__TSource__3__5;
  3441. private static MethodInfo? SumAsync__TSource__3__5(Type TSource) =>
  3442. (s_SumAsync__TSource__3__5 ??
  3443. (s_SumAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, float>>, CancellationToken, ValueTask<float>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3444. public static ValueTask<float> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken cancellationToken = default)
  3445. {
  3446. if (source == null)
  3447. throw new ArgumentNullException(nameof(source));
  3448. if (selector == null)
  3449. throw new ArgumentNullException(nameof(selector));
  3450. return source.Provider.ExecuteAsync<float>(Expression.Call(SumAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3451. }
  3452. private static MethodInfo? s_SumAsync__TSource__3__6;
  3453. private static MethodInfo? SumAsync__TSource__3__6(Type TSource) =>
  3454. (s_SumAsync__TSource__3__6 ??
  3455. (s_SumAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, int?>>, CancellationToken, ValueTask<int?>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3456. public static ValueTask<int?> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken cancellationToken = default)
  3457. {
  3458. if (source == null)
  3459. throw new ArgumentNullException(nameof(source));
  3460. if (selector == null)
  3461. throw new ArgumentNullException(nameof(selector));
  3462. return source.Provider.ExecuteAsync<int?>(Expression.Call(SumAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3463. }
  3464. private static MethodInfo? s_SumAsync__TSource__3__7;
  3465. private static MethodInfo? SumAsync__TSource__3__7(Type TSource) =>
  3466. (s_SumAsync__TSource__3__7 ??
  3467. (s_SumAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, int>>, CancellationToken, ValueTask<int>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3468. public static ValueTask<int> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken cancellationToken = default)
  3469. {
  3470. if (source == null)
  3471. throw new ArgumentNullException(nameof(source));
  3472. if (selector == null)
  3473. throw new ArgumentNullException(nameof(selector));
  3474. return source.Provider.ExecuteAsync<int>(Expression.Call(SumAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3475. }
  3476. private static MethodInfo? s_SumAsync__TSource__3__8;
  3477. private static MethodInfo? SumAsync__TSource__3__8(Type TSource) =>
  3478. (s_SumAsync__TSource__3__8 ??
  3479. (s_SumAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, long?>>, CancellationToken, ValueTask<long?>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3480. public static ValueTask<long?> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken cancellationToken = default)
  3481. {
  3482. if (source == null)
  3483. throw new ArgumentNullException(nameof(source));
  3484. if (selector == null)
  3485. throw new ArgumentNullException(nameof(selector));
  3486. return source.Provider.ExecuteAsync<long?>(Expression.Call(SumAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3487. }
  3488. private static MethodInfo? s_SumAsync__TSource__3__9;
  3489. private static MethodInfo? SumAsync__TSource__3__9(Type TSource) =>
  3490. (s_SumAsync__TSource__3__9 ??
  3491. (s_SumAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, long>>, CancellationToken, ValueTask<long>>(SumAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3492. public static ValueTask<long> SumAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken cancellationToken = default)
  3493. {
  3494. if (source == null)
  3495. throw new ArgumentNullException(nameof(source));
  3496. if (selector == null)
  3497. throw new ArgumentNullException(nameof(selector));
  3498. return source.Provider.ExecuteAsync<long>(Expression.Call(SumAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3499. }
  3500. private static MethodInfo? s_SumAwaitAsync__TSource__3__0;
  3501. private static MethodInfo? SumAwaitAsync__TSource__3__0(Type TSource) =>
  3502. (s_SumAwaitAsync__TSource__3__0 ??
  3503. (s_SumAwaitAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3504. public static ValueTask<decimal?> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  3505. {
  3506. if (source == null)
  3507. throw new ArgumentNullException(nameof(source));
  3508. if (selector == null)
  3509. throw new ArgumentNullException(nameof(selector));
  3510. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(SumAwaitAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3511. }
  3512. private static MethodInfo? s_SumAwaitAsync__TSource__3__1;
  3513. private static MethodInfo? SumAwaitAsync__TSource__3__1(Type TSource) =>
  3514. (s_SumAwaitAsync__TSource__3__1 ??
  3515. (s_SumAwaitAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3516. public static ValueTask<decimal> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  3517. {
  3518. if (source == null)
  3519. throw new ArgumentNullException(nameof(source));
  3520. if (selector == null)
  3521. throw new ArgumentNullException(nameof(selector));
  3522. return source.Provider.ExecuteAsync<decimal>(Expression.Call(SumAwaitAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3523. }
  3524. private static MethodInfo? s_SumAwaitAsync__TSource__3__2;
  3525. private static MethodInfo? SumAwaitAsync__TSource__3__2(Type TSource) =>
  3526. (s_SumAwaitAsync__TSource__3__2 ??
  3527. (s_SumAwaitAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3528. public static ValueTask<double?> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  3529. {
  3530. if (source == null)
  3531. throw new ArgumentNullException(nameof(source));
  3532. if (selector == null)
  3533. throw new ArgumentNullException(nameof(selector));
  3534. return source.Provider.ExecuteAsync<double?>(Expression.Call(SumAwaitAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3535. }
  3536. private static MethodInfo? s_SumAwaitAsync__TSource__3__3;
  3537. private static MethodInfo? SumAwaitAsync__TSource__3__3(Type TSource) =>
  3538. (s_SumAwaitAsync__TSource__3__3 ??
  3539. (s_SumAwaitAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<double>>>, CancellationToken, ValueTask<double>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3540. public static ValueTask<double> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  3541. {
  3542. if (source == null)
  3543. throw new ArgumentNullException(nameof(source));
  3544. if (selector == null)
  3545. throw new ArgumentNullException(nameof(selector));
  3546. return source.Provider.ExecuteAsync<double>(Expression.Call(SumAwaitAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3547. }
  3548. private static MethodInfo? s_SumAwaitAsync__TSource__3__4;
  3549. private static MethodInfo? SumAwaitAsync__TSource__3__4(Type TSource) =>
  3550. (s_SumAwaitAsync__TSource__3__4 ??
  3551. (s_SumAwaitAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3552. public static ValueTask<float?> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  3553. {
  3554. if (source == null)
  3555. throw new ArgumentNullException(nameof(source));
  3556. if (selector == null)
  3557. throw new ArgumentNullException(nameof(selector));
  3558. return source.Provider.ExecuteAsync<float?>(Expression.Call(SumAwaitAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3559. }
  3560. private static MethodInfo? s_SumAwaitAsync__TSource__3__5;
  3561. private static MethodInfo? SumAwaitAsync__TSource__3__5(Type TSource) =>
  3562. (s_SumAwaitAsync__TSource__3__5 ??
  3563. (s_SumAwaitAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<float>>>, CancellationToken, ValueTask<float>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3564. public static ValueTask<float> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  3565. {
  3566. if (source == null)
  3567. throw new ArgumentNullException(nameof(source));
  3568. if (selector == null)
  3569. throw new ArgumentNullException(nameof(selector));
  3570. return source.Provider.ExecuteAsync<float>(Expression.Call(SumAwaitAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3571. }
  3572. private static MethodInfo? s_SumAwaitAsync__TSource__3__6;
  3573. private static MethodInfo? SumAwaitAsync__TSource__3__6(Type TSource) =>
  3574. (s_SumAwaitAsync__TSource__3__6 ??
  3575. (s_SumAwaitAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int?>>>, CancellationToken, ValueTask<int?>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3576. public static ValueTask<int?> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  3577. {
  3578. if (source == null)
  3579. throw new ArgumentNullException(nameof(source));
  3580. if (selector == null)
  3581. throw new ArgumentNullException(nameof(selector));
  3582. return source.Provider.ExecuteAsync<int?>(Expression.Call(SumAwaitAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3583. }
  3584. private static MethodInfo? s_SumAwaitAsync__TSource__3__7;
  3585. private static MethodInfo? SumAwaitAsync__TSource__3__7(Type TSource) =>
  3586. (s_SumAwaitAsync__TSource__3__7 ??
  3587. (s_SumAwaitAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<int>>>, CancellationToken, ValueTask<int>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3588. public static ValueTask<int> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  3589. {
  3590. if (source == null)
  3591. throw new ArgumentNullException(nameof(source));
  3592. if (selector == null)
  3593. throw new ArgumentNullException(nameof(selector));
  3594. return source.Provider.ExecuteAsync<int>(Expression.Call(SumAwaitAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3595. }
  3596. private static MethodInfo? s_SumAwaitAsync__TSource__3__8;
  3597. private static MethodInfo? SumAwaitAsync__TSource__3__8(Type TSource) =>
  3598. (s_SumAwaitAsync__TSource__3__8 ??
  3599. (s_SumAwaitAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long?>>>, CancellationToken, ValueTask<long?>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3600. public static ValueTask<long?> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  3601. {
  3602. if (source == null)
  3603. throw new ArgumentNullException(nameof(source));
  3604. if (selector == null)
  3605. throw new ArgumentNullException(nameof(selector));
  3606. return source.Provider.ExecuteAsync<long?>(Expression.Call(SumAwaitAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3607. }
  3608. private static MethodInfo? s_SumAwaitAsync__TSource__3__9;
  3609. private static MethodInfo? SumAwaitAsync__TSource__3__9(Type TSource) =>
  3610. (s_SumAwaitAsync__TSource__3__9 ??
  3611. (s_SumAwaitAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<long>>>, CancellationToken, ValueTask<long>>(SumAwaitAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3612. public static ValueTask<long> SumAwaitAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  3613. {
  3614. if (source == null)
  3615. throw new ArgumentNullException(nameof(source));
  3616. if (selector == null)
  3617. throw new ArgumentNullException(nameof(selector));
  3618. return source.Provider.ExecuteAsync<long>(Expression.Call(SumAwaitAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3619. }
  3620. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__0;
  3621. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__0(Type TSource) =>
  3622. (s_SumAwaitWithCancellationAsync__TSource__3__0 ??
  3623. (s_SumAwaitWithCancellationAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal?>>>, CancellationToken, ValueTask<decimal?>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3624. public static ValueTask<decimal?> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal?>>> selector, CancellationToken cancellationToken = default)
  3625. {
  3626. if (source == null)
  3627. throw new ArgumentNullException(nameof(source));
  3628. if (selector == null)
  3629. throw new ArgumentNullException(nameof(selector));
  3630. return source.Provider.ExecuteAsync<decimal?>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__0(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3631. }
  3632. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__1;
  3633. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__1(Type TSource) =>
  3634. (s_SumAwaitWithCancellationAsync__TSource__3__1 ??
  3635. (s_SumAwaitWithCancellationAsync__TSource__3__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<decimal>>>, CancellationToken, ValueTask<decimal>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3636. public static ValueTask<decimal> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<decimal>>> selector, CancellationToken cancellationToken = default)
  3637. {
  3638. if (source == null)
  3639. throw new ArgumentNullException(nameof(source));
  3640. if (selector == null)
  3641. throw new ArgumentNullException(nameof(selector));
  3642. return source.Provider.ExecuteAsync<decimal>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__1(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3643. }
  3644. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__2;
  3645. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__2(Type TSource) =>
  3646. (s_SumAwaitWithCancellationAsync__TSource__3__2 ??
  3647. (s_SumAwaitWithCancellationAsync__TSource__3__2 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double?>>>, CancellationToken, ValueTask<double?>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3648. public static ValueTask<double?> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double?>>> selector, CancellationToken cancellationToken = default)
  3649. {
  3650. if (source == null)
  3651. throw new ArgumentNullException(nameof(source));
  3652. if (selector == null)
  3653. throw new ArgumentNullException(nameof(selector));
  3654. return source.Provider.ExecuteAsync<double?>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__2(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3655. }
  3656. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__3;
  3657. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__3(Type TSource) =>
  3658. (s_SumAwaitWithCancellationAsync__TSource__3__3 ??
  3659. (s_SumAwaitWithCancellationAsync__TSource__3__3 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<double>>>, CancellationToken, ValueTask<double>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3660. public static ValueTask<double> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<double>>> selector, CancellationToken cancellationToken = default)
  3661. {
  3662. if (source == null)
  3663. throw new ArgumentNullException(nameof(source));
  3664. if (selector == null)
  3665. throw new ArgumentNullException(nameof(selector));
  3666. return source.Provider.ExecuteAsync<double>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__3(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3667. }
  3668. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__4;
  3669. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__4(Type TSource) =>
  3670. (s_SumAwaitWithCancellationAsync__TSource__3__4 ??
  3671. (s_SumAwaitWithCancellationAsync__TSource__3__4 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float?>>>, CancellationToken, ValueTask<float?>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3672. public static ValueTask<float?> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float?>>> selector, CancellationToken cancellationToken = default)
  3673. {
  3674. if (source == null)
  3675. throw new ArgumentNullException(nameof(source));
  3676. if (selector == null)
  3677. throw new ArgumentNullException(nameof(selector));
  3678. return source.Provider.ExecuteAsync<float?>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__4(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3679. }
  3680. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__5;
  3681. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__5(Type TSource) =>
  3682. (s_SumAwaitWithCancellationAsync__TSource__3__5 ??
  3683. (s_SumAwaitWithCancellationAsync__TSource__3__5 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<float>>>, CancellationToken, ValueTask<float>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3684. public static ValueTask<float> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<float>>> selector, CancellationToken cancellationToken = default)
  3685. {
  3686. if (source == null)
  3687. throw new ArgumentNullException(nameof(source));
  3688. if (selector == null)
  3689. throw new ArgumentNullException(nameof(selector));
  3690. return source.Provider.ExecuteAsync<float>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__5(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3691. }
  3692. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__6;
  3693. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__6(Type TSource) =>
  3694. (s_SumAwaitWithCancellationAsync__TSource__3__6 ??
  3695. (s_SumAwaitWithCancellationAsync__TSource__3__6 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int?>>>, CancellationToken, ValueTask<int?>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3696. public static ValueTask<int?> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int?>>> selector, CancellationToken cancellationToken = default)
  3697. {
  3698. if (source == null)
  3699. throw new ArgumentNullException(nameof(source));
  3700. if (selector == null)
  3701. throw new ArgumentNullException(nameof(selector));
  3702. return source.Provider.ExecuteAsync<int?>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__6(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3703. }
  3704. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__7;
  3705. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__7(Type TSource) =>
  3706. (s_SumAwaitWithCancellationAsync__TSource__3__7 ??
  3707. (s_SumAwaitWithCancellationAsync__TSource__3__7 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<int>>>, CancellationToken, ValueTask<int>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3708. public static ValueTask<int> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<int>>> selector, CancellationToken cancellationToken = default)
  3709. {
  3710. if (source == null)
  3711. throw new ArgumentNullException(nameof(source));
  3712. if (selector == null)
  3713. throw new ArgumentNullException(nameof(selector));
  3714. return source.Provider.ExecuteAsync<int>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__7(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3715. }
  3716. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__8;
  3717. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__8(Type TSource) =>
  3718. (s_SumAwaitWithCancellationAsync__TSource__3__8 ??
  3719. (s_SumAwaitWithCancellationAsync__TSource__3__8 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long?>>>, CancellationToken, ValueTask<long?>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3720. public static ValueTask<long?> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long?>>> selector, CancellationToken cancellationToken = default)
  3721. {
  3722. if (source == null)
  3723. throw new ArgumentNullException(nameof(source));
  3724. if (selector == null)
  3725. throw new ArgumentNullException(nameof(selector));
  3726. return source.Provider.ExecuteAsync<long?>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__8(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3727. }
  3728. private static MethodInfo? s_SumAwaitWithCancellationAsync__TSource__3__9;
  3729. private static MethodInfo? SumAwaitWithCancellationAsync__TSource__3__9(Type TSource) =>
  3730. (s_SumAwaitWithCancellationAsync__TSource__3__9 ??
  3731. (s_SumAwaitWithCancellationAsync__TSource__3__9 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<long>>>, CancellationToken, ValueTask<long>>(SumAwaitWithCancellationAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3732. public static ValueTask<long> SumAwaitWithCancellationAsync<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<long>>> selector, CancellationToken cancellationToken = default)
  3733. {
  3734. if (source == null)
  3735. throw new ArgumentNullException(nameof(source));
  3736. if (selector == null)
  3737. throw new ArgumentNullException(nameof(selector));
  3738. return source.Provider.ExecuteAsync<long>(Expression.Call(SumAwaitWithCancellationAsync__TSource__3__9(typeof(TSource)), source.Expression, selector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3739. }
  3740. private static MethodInfo? s_Take__TSource__2__0;
  3741. private static MethodInfo? Take__TSource__2__0(Type TSource) =>
  3742. (s_Take__TSource__2__0 ??
  3743. (s_Take__TSource__2__0 = new Func<IAsyncQueryable<object>, int, IAsyncQueryable<object>>(Take<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3744. public static IAsyncQueryable<TSource> Take<TSource>(this IAsyncQueryable<TSource> source, int count)
  3745. {
  3746. if (source == null)
  3747. throw new ArgumentNullException(nameof(source));
  3748. return source.Provider.CreateQuery<TSource>(Expression.Call(Take__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int))));
  3749. }
  3750. private static MethodInfo? s_TakeLast__TSource__2__0;
  3751. private static MethodInfo? TakeLast__TSource__2__0(Type TSource) =>
  3752. (s_TakeLast__TSource__2__0 ??
  3753. (s_TakeLast__TSource__2__0 = new Func<IAsyncQueryable<object>, int, IAsyncQueryable<object>>(TakeLast<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3754. public static IAsyncQueryable<TSource> TakeLast<TSource>(this IAsyncQueryable<TSource> source, int count)
  3755. {
  3756. if (source == null)
  3757. throw new ArgumentNullException(nameof(source));
  3758. return source.Provider.CreateQuery<TSource>(Expression.Call(TakeLast__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int))));
  3759. }
  3760. private static MethodInfo? s_TakeWhile__TSource__2__0;
  3761. private static MethodInfo? TakeWhile__TSource__2__0(Type TSource) =>
  3762. (s_TakeWhile__TSource__2__0 ??
  3763. (s_TakeWhile__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, IAsyncQueryable<object>>(TakeWhile<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3764. public static IAsyncQueryable<TSource> TakeWhile<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
  3765. {
  3766. if (source == null)
  3767. throw new ArgumentNullException(nameof(source));
  3768. if (predicate == null)
  3769. throw new ArgumentNullException(nameof(predicate));
  3770. return source.Provider.CreateQuery<TSource>(Expression.Call(TakeWhile__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  3771. }
  3772. private static MethodInfo? s_TakeWhile__TSource__2__1;
  3773. private static MethodInfo? TakeWhile__TSource__2__1(Type TSource) =>
  3774. (s_TakeWhile__TSource__2__1 ??
  3775. (s_TakeWhile__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, bool>>, IAsyncQueryable<object>>(TakeWhile<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3776. public static IAsyncQueryable<TSource> TakeWhile<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate)
  3777. {
  3778. if (source == null)
  3779. throw new ArgumentNullException(nameof(source));
  3780. if (predicate == null)
  3781. throw new ArgumentNullException(nameof(predicate));
  3782. return source.Provider.CreateQuery<TSource>(Expression.Call(TakeWhile__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  3783. }
  3784. private static MethodInfo? s_TakeWhileAwait__TSource__2__0;
  3785. private static MethodInfo? TakeWhileAwait__TSource__2__0(Type TSource) =>
  3786. (s_TakeWhileAwait__TSource__2__0 ??
  3787. (s_TakeWhileAwait__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, ValueTask<bool>>>, IAsyncQueryable<object>>(TakeWhileAwait<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3788. public static IAsyncQueryable<TSource> TakeWhileAwait<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, ValueTask<bool>>> predicate)
  3789. {
  3790. if (source == null)
  3791. throw new ArgumentNullException(nameof(source));
  3792. if (predicate == null)
  3793. throw new ArgumentNullException(nameof(predicate));
  3794. return source.Provider.CreateQuery<TSource>(Expression.Call(TakeWhileAwait__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  3795. }
  3796. private static MethodInfo? s_TakeWhileAwait__TSource__2__1;
  3797. private static MethodInfo? TakeWhileAwait__TSource__2__1(Type TSource) =>
  3798. (s_TakeWhileAwait__TSource__2__1 ??
  3799. (s_TakeWhileAwait__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, IAsyncQueryable<object>>(TakeWhileAwait<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3800. public static IAsyncQueryable<TSource> TakeWhileAwait<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate)
  3801. {
  3802. if (source == null)
  3803. throw new ArgumentNullException(nameof(source));
  3804. if (predicate == null)
  3805. throw new ArgumentNullException(nameof(predicate));
  3806. return source.Provider.CreateQuery<TSource>(Expression.Call(TakeWhileAwait__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  3807. }
  3808. private static MethodInfo? s_TakeWhileAwaitWithCancellation__TSource__2__0;
  3809. private static MethodInfo? TakeWhileAwaitWithCancellation__TSource__2__0(Type TSource) =>
  3810. (s_TakeWhileAwaitWithCancellation__TSource__2__0 ??
  3811. (s_TakeWhileAwaitWithCancellation__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, IAsyncQueryable<object>>(TakeWhileAwaitWithCancellation<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3812. public static IAsyncQueryable<TSource> TakeWhileAwaitWithCancellation<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate)
  3813. {
  3814. if (source == null)
  3815. throw new ArgumentNullException(nameof(source));
  3816. if (predicate == null)
  3817. throw new ArgumentNullException(nameof(predicate));
  3818. return source.Provider.CreateQuery<TSource>(Expression.Call(TakeWhileAwaitWithCancellation__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  3819. }
  3820. private static MethodInfo? s_TakeWhileAwaitWithCancellation__TSource__2__1;
  3821. private static MethodInfo? TakeWhileAwaitWithCancellation__TSource__2__1(Type TSource) =>
  3822. (s_TakeWhileAwaitWithCancellation__TSource__2__1 ??
  3823. (s_TakeWhileAwaitWithCancellation__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, CancellationToken, ValueTask<bool>>>, IAsyncQueryable<object>>(TakeWhileAwaitWithCancellation<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3824. public static IAsyncQueryable<TSource> TakeWhileAwaitWithCancellation<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, CancellationToken, ValueTask<bool>>> predicate)
  3825. {
  3826. if (source == null)
  3827. throw new ArgumentNullException(nameof(source));
  3828. if (predicate == null)
  3829. throw new ArgumentNullException(nameof(predicate));
  3830. return source.Provider.CreateQuery<TSource>(Expression.Call(TakeWhileAwaitWithCancellation__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  3831. }
  3832. private static MethodInfo? s_ThenBy__TSource_TKey__2__0;
  3833. private static MethodInfo? ThenBy__TSource_TKey__2__0(Type TSource, Type TKey) =>
  3834. (s_ThenBy__TSource_TKey__2__0 ??
  3835. (s_ThenBy__TSource_TKey__2__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, object>>, IOrderedAsyncQueryable<object>>(ThenBy<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3836. public static IOrderedAsyncQueryable<TSource> ThenBy<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
  3837. {
  3838. if (source == null)
  3839. throw new ArgumentNullException(nameof(source));
  3840. if (keySelector == null)
  3841. throw new ArgumentNullException(nameof(keySelector));
  3842. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenBy__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  3843. }
  3844. private static MethodInfo? s_ThenBy__TSource_TKey__3__0;
  3845. private static MethodInfo? ThenBy__TSource_TKey__3__0(Type TSource, Type TKey) =>
  3846. (s_ThenBy__TSource_TKey__3__0 ??
  3847. (s_ThenBy__TSource_TKey__3__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, object>>, IComparer<object>, IOrderedAsyncQueryable<object>>(ThenBy<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3848. public static IOrderedAsyncQueryable<TSource> ThenBy<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
  3849. {
  3850. if (source == null)
  3851. throw new ArgumentNullException(nameof(source));
  3852. if (keySelector == null)
  3853. throw new ArgumentNullException(nameof(keySelector));
  3854. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenBy__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  3855. }
  3856. private static MethodInfo? s_ThenByAwait__TSource_TKey__2__0;
  3857. private static MethodInfo? ThenByAwait__TSource_TKey__2__0(Type TSource, Type TKey) =>
  3858. (s_ThenByAwait__TSource_TKey__2__0 ??
  3859. (s_ThenByAwait__TSource_TKey__2__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(ThenByAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3860. public static IOrderedAsyncQueryable<TSource> ThenByAwait<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector)
  3861. {
  3862. if (source == null)
  3863. throw new ArgumentNullException(nameof(source));
  3864. if (keySelector == null)
  3865. throw new ArgumentNullException(nameof(keySelector));
  3866. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  3867. }
  3868. private static MethodInfo? s_ThenByAwait__TSource_TKey__3__0;
  3869. private static MethodInfo? ThenByAwait__TSource_TKey__3__0(Type TSource, Type TKey) =>
  3870. (s_ThenByAwait__TSource_TKey__3__0 ??
  3871. (s_ThenByAwait__TSource_TKey__3__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(ThenByAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3872. public static IOrderedAsyncQueryable<TSource> ThenByAwait<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  3873. {
  3874. if (source == null)
  3875. throw new ArgumentNullException(nameof(source));
  3876. if (keySelector == null)
  3877. throw new ArgumentNullException(nameof(keySelector));
  3878. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  3879. }
  3880. private static MethodInfo? s_ThenByAwaitWithCancellation__TSource_TKey__2__0;
  3881. private static MethodInfo? ThenByAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) =>
  3882. (s_ThenByAwaitWithCancellation__TSource_TKey__2__0 ??
  3883. (s_ThenByAwaitWithCancellation__TSource_TKey__2__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(ThenByAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3884. public static IOrderedAsyncQueryable<TSource> ThenByAwaitWithCancellation<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector)
  3885. {
  3886. if (source == null)
  3887. throw new ArgumentNullException(nameof(source));
  3888. if (keySelector == null)
  3889. throw new ArgumentNullException(nameof(keySelector));
  3890. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  3891. }
  3892. private static MethodInfo? s_ThenByAwaitWithCancellation__TSource_TKey__3__0;
  3893. private static MethodInfo? ThenByAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) =>
  3894. (s_ThenByAwaitWithCancellation__TSource_TKey__3__0 ??
  3895. (s_ThenByAwaitWithCancellation__TSource_TKey__3__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(ThenByAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3896. public static IOrderedAsyncQueryable<TSource> ThenByAwaitWithCancellation<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  3897. {
  3898. if (source == null)
  3899. throw new ArgumentNullException(nameof(source));
  3900. if (keySelector == null)
  3901. throw new ArgumentNullException(nameof(keySelector));
  3902. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  3903. }
  3904. private static MethodInfo? s_ThenByDescending__TSource_TKey__2__0;
  3905. private static MethodInfo? ThenByDescending__TSource_TKey__2__0(Type TSource, Type TKey) =>
  3906. (s_ThenByDescending__TSource_TKey__2__0 ??
  3907. (s_ThenByDescending__TSource_TKey__2__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, object>>, IOrderedAsyncQueryable<object>>(ThenByDescending<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3908. public static IOrderedAsyncQueryable<TSource> ThenByDescending<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
  3909. {
  3910. if (source == null)
  3911. throw new ArgumentNullException(nameof(source));
  3912. if (keySelector == null)
  3913. throw new ArgumentNullException(nameof(keySelector));
  3914. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByDescending__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  3915. }
  3916. private static MethodInfo? s_ThenByDescending__TSource_TKey__3__0;
  3917. private static MethodInfo? ThenByDescending__TSource_TKey__3__0(Type TSource, Type TKey) =>
  3918. (s_ThenByDescending__TSource_TKey__3__0 ??
  3919. (s_ThenByDescending__TSource_TKey__3__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, object>>, IComparer<object>, IOrderedAsyncQueryable<object>>(ThenByDescending<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3920. public static IOrderedAsyncQueryable<TSource> ThenByDescending<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
  3921. {
  3922. if (source == null)
  3923. throw new ArgumentNullException(nameof(source));
  3924. if (keySelector == null)
  3925. throw new ArgumentNullException(nameof(keySelector));
  3926. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByDescending__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  3927. }
  3928. private static MethodInfo? s_ThenByDescendingAwait__TSource_TKey__2__0;
  3929. private static MethodInfo? ThenByDescendingAwait__TSource_TKey__2__0(Type TSource, Type TKey) =>
  3930. (s_ThenByDescendingAwait__TSource_TKey__2__0 ??
  3931. (s_ThenByDescendingAwait__TSource_TKey__2__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(ThenByDescendingAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3932. public static IOrderedAsyncQueryable<TSource> ThenByDescendingAwait<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector)
  3933. {
  3934. if (source == null)
  3935. throw new ArgumentNullException(nameof(source));
  3936. if (keySelector == null)
  3937. throw new ArgumentNullException(nameof(keySelector));
  3938. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByDescendingAwait__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  3939. }
  3940. private static MethodInfo? s_ThenByDescendingAwait__TSource_TKey__3__0;
  3941. private static MethodInfo? ThenByDescendingAwait__TSource_TKey__3__0(Type TSource, Type TKey) =>
  3942. (s_ThenByDescendingAwait__TSource_TKey__3__0 ??
  3943. (s_ThenByDescendingAwait__TSource_TKey__3__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(ThenByDescendingAwait<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3944. public static IOrderedAsyncQueryable<TSource> ThenByDescendingAwait<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  3945. {
  3946. if (source == null)
  3947. throw new ArgumentNullException(nameof(source));
  3948. if (keySelector == null)
  3949. throw new ArgumentNullException(nameof(keySelector));
  3950. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByDescendingAwait__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  3951. }
  3952. private static MethodInfo? s_ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0;
  3953. private static MethodInfo? ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0(Type TSource, Type TKey) =>
  3954. (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0 ??
  3955. (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IOrderedAsyncQueryable<object>>(ThenByDescendingAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3956. public static IOrderedAsyncQueryable<TSource> ThenByDescendingAwaitWithCancellation<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector)
  3957. {
  3958. if (source == null)
  3959. throw new ArgumentNullException(nameof(source));
  3960. if (keySelector == null)
  3961. throw new ArgumentNullException(nameof(keySelector));
  3962. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByDescendingAwaitWithCancellation__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector));
  3963. }
  3964. private static MethodInfo? s_ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0;
  3965. private static MethodInfo? ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0(Type TSource, Type TKey) =>
  3966. (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0 ??
  3967. (s_ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0 = new Func<IOrderedAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IComparer<object>, IOrderedAsyncQueryable<object>>(ThenByDescendingAwaitWithCancellation<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3968. public static IOrderedAsyncQueryable<TSource> ThenByDescendingAwaitWithCancellation<TSource, TKey>(this IOrderedAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, IComparer<TKey>? comparer)
  3969. {
  3970. if (source == null)
  3971. throw new ArgumentNullException(nameof(source));
  3972. if (keySelector == null)
  3973. throw new ArgumentNullException(nameof(keySelector));
  3974. return (IOrderedAsyncQueryable<TSource>)source.Provider.CreateQuery<TSource>(Expression.Call(ThenByDescendingAwaitWithCancellation__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer<TKey>))));
  3975. }
  3976. private static MethodInfo? s_ToArrayAsync__TSource__2__0;
  3977. private static MethodInfo? ToArrayAsync__TSource__2__0(Type TSource) =>
  3978. (s_ToArrayAsync__TSource__2__0 ??
  3979. (s_ToArrayAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<object[]>>(ToArrayAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  3980. public static ValueTask<TSource[]> ToArrayAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  3981. {
  3982. if (source == null)
  3983. throw new ArgumentNullException(nameof(source));
  3984. return source.Provider.ExecuteAsync<TSource[]>(Expression.Call(ToArrayAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3985. }
  3986. private static MethodInfo? s_ToDictionaryAsync__TSource_TKey__3__0;
  3987. private static MethodInfo? ToDictionaryAsync__TSource_TKey__3__0(Type TSource, Type TKey) =>
  3988. (s_ToDictionaryAsync__TSource_TKey__3__0 ??
  3989. (s_ToDictionaryAsync__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  3990. public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, CancellationToken cancellationToken = default) where TKey : notnull
  3991. {
  3992. if (source == null)
  3993. throw new ArgumentNullException(nameof(source));
  3994. if (keySelector == null)
  3995. throw new ArgumentNullException(nameof(keySelector));
  3996. return source.Provider.ExecuteAsync<Dictionary<TKey, TSource>>(Expression.Call(ToDictionaryAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  3997. }
  3998. private static MethodInfo? s_ToDictionaryAsync__TSource_TKey__4__0;
  3999. private static MethodInfo? ToDictionaryAsync__TSource_TKey__4__0(Type TSource, Type TKey) =>
  4000. (s_ToDictionaryAsync__TSource_TKey__4__0 ??
  4001. (s_ToDictionaryAsync__TSource_TKey__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IEqualityComparer<object>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4002. public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default) where TKey : notnull
  4003. {
  4004. if (source == null)
  4005. throw new ArgumentNullException(nameof(source));
  4006. if (keySelector == null)
  4007. throw new ArgumentNullException(nameof(keySelector));
  4008. return source.Provider.ExecuteAsync<Dictionary<TKey, TSource>>(Expression.Call(ToDictionaryAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4009. }
  4010. private static MethodInfo? s_ToDictionaryAsync__TSource_TKey_TElement__4__0;
  4011. private static MethodInfo? ToDictionaryAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  4012. (s_ToDictionaryAsync__TSource_TKey_TElement__4__0 ??
  4013. (s_ToDictionaryAsync__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4014. public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull
  4015. {
  4016. if (source == null)
  4017. throw new ArgumentNullException(nameof(source));
  4018. if (keySelector == null)
  4019. throw new ArgumentNullException(nameof(keySelector));
  4020. if (elementSelector == null)
  4021. throw new ArgumentNullException(nameof(elementSelector));
  4022. return source.Provider.ExecuteAsync<Dictionary<TKey, TElement>>(Expression.Call(ToDictionaryAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4023. }
  4024. private static MethodInfo? s_ToDictionaryAsync__TSource_TKey_TElement__5__0;
  4025. private static MethodInfo? ToDictionaryAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) =>
  4026. (s_ToDictionaryAsync__TSource_TKey_TElement__5__0 ??
  4027. (s_ToDictionaryAsync__TSource_TKey_TElement__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, IEqualityComparer<object>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4028. public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default) where TKey : notnull
  4029. {
  4030. if (source == null)
  4031. throw new ArgumentNullException(nameof(source));
  4032. if (keySelector == null)
  4033. throw new ArgumentNullException(nameof(keySelector));
  4034. if (elementSelector == null)
  4035. throw new ArgumentNullException(nameof(elementSelector));
  4036. return source.Provider.ExecuteAsync<Dictionary<TKey, TElement>>(Expression.Call(ToDictionaryAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4037. }
  4038. private static MethodInfo? s_ToDictionaryAwaitAsync__TSource_TKey__3__0;
  4039. private static MethodInfo? ToDictionaryAwaitAsync__TSource_TKey__3__0(Type TSource, Type TKey) =>
  4040. (s_ToDictionaryAwaitAsync__TSource_TKey__3__0 ??
  4041. (s_ToDictionaryAwaitAsync__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4042. public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAwaitAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, CancellationToken cancellationToken = default) where TKey : notnull
  4043. {
  4044. if (source == null)
  4045. throw new ArgumentNullException(nameof(source));
  4046. if (keySelector == null)
  4047. throw new ArgumentNullException(nameof(keySelector));
  4048. return source.Provider.ExecuteAsync<Dictionary<TKey, TSource>>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4049. }
  4050. private static MethodInfo? s_ToDictionaryAwaitAsync__TSource_TKey__4__0;
  4051. private static MethodInfo? ToDictionaryAwaitAsync__TSource_TKey__4__0(Type TSource, Type TKey) =>
  4052. (s_ToDictionaryAwaitAsync__TSource_TKey__4__0 ??
  4053. (s_ToDictionaryAwaitAsync__TSource_TKey__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4054. public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAwaitAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default) where TKey : notnull
  4055. {
  4056. if (source == null)
  4057. throw new ArgumentNullException(nameof(source));
  4058. if (keySelector == null)
  4059. throw new ArgumentNullException(nameof(keySelector));
  4060. return source.Provider.ExecuteAsync<Dictionary<TKey, TSource>>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4061. }
  4062. private static MethodInfo? s_ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0;
  4063. private static MethodInfo? ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  4064. (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0 ??
  4065. (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4066. public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAwaitAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull
  4067. {
  4068. if (source == null)
  4069. throw new ArgumentNullException(nameof(source));
  4070. if (keySelector == null)
  4071. throw new ArgumentNullException(nameof(keySelector));
  4072. if (elementSelector == null)
  4073. throw new ArgumentNullException(nameof(elementSelector));
  4074. return source.Provider.ExecuteAsync<Dictionary<TKey, TElement>>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4075. }
  4076. private static MethodInfo? s_ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0;
  4077. private static MethodInfo? ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) =>
  4078. (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0 ??
  4079. (s_ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4080. public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAwaitAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default) where TKey : notnull
  4081. {
  4082. if (source == null)
  4083. throw new ArgumentNullException(nameof(source));
  4084. if (keySelector == null)
  4085. throw new ArgumentNullException(nameof(keySelector));
  4086. if (elementSelector == null)
  4087. throw new ArgumentNullException(nameof(elementSelector));
  4088. return source.Provider.ExecuteAsync<Dictionary<TKey, TElement>>(Expression.Call(ToDictionaryAwaitAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4089. }
  4090. private static MethodInfo? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0;
  4091. private static MethodInfo? ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0(Type TSource, Type TKey) =>
  4092. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0 ??
  4093. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitWithCancellationAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4094. public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAwaitWithCancellationAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, CancellationToken cancellationToken = default) where TKey : notnull
  4095. {
  4096. if (source == null)
  4097. throw new ArgumentNullException(nameof(source));
  4098. if (keySelector == null)
  4099. throw new ArgumentNullException(nameof(keySelector));
  4100. return source.Provider.ExecuteAsync<Dictionary<TKey, TSource>>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4101. }
  4102. private static MethodInfo? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0;
  4103. private static MethodInfo? ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0(Type TSource, Type TKey) =>
  4104. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0 ??
  4105. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitWithCancellationAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4106. public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAwaitWithCancellationAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default) where TKey : notnull
  4107. {
  4108. if (source == null)
  4109. throw new ArgumentNullException(nameof(source));
  4110. if (keySelector == null)
  4111. throw new ArgumentNullException(nameof(keySelector));
  4112. return source.Provider.ExecuteAsync<Dictionary<TKey, TSource>>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4113. }
  4114. private static MethodInfo? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0;
  4115. private static MethodInfo? ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  4116. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 ??
  4117. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitWithCancellationAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4118. public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAwaitWithCancellationAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector, CancellationToken cancellationToken = default) where TKey : notnull
  4119. {
  4120. if (source == null)
  4121. throw new ArgumentNullException(nameof(source));
  4122. if (keySelector == null)
  4123. throw new ArgumentNullException(nameof(keySelector));
  4124. if (elementSelector == null)
  4125. throw new ArgumentNullException(nameof(elementSelector));
  4126. return source.Provider.ExecuteAsync<Dictionary<TKey, TElement>>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4127. }
  4128. private static MethodInfo? s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0;
  4129. private static MethodInfo? ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) =>
  4130. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 ??
  4131. (s_ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<Dictionary<object, object>>>(ToDictionaryAwaitWithCancellationAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4132. public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAwaitWithCancellationAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default) where TKey : notnull
  4133. {
  4134. if (source == null)
  4135. throw new ArgumentNullException(nameof(source));
  4136. if (keySelector == null)
  4137. throw new ArgumentNullException(nameof(keySelector));
  4138. if (elementSelector == null)
  4139. throw new ArgumentNullException(nameof(elementSelector));
  4140. return source.Provider.ExecuteAsync<Dictionary<TKey, TElement>>(Expression.Call(ToDictionaryAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4141. }
  4142. private static MethodInfo? s_ToHashSetAsync__TSource__2__0;
  4143. private static MethodInfo? ToHashSetAsync__TSource__2__0(Type TSource) =>
  4144. (s_ToHashSetAsync__TSource__2__0 ??
  4145. (s_ToHashSetAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<HashSet<object>>>(ToHashSetAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4146. public static ValueTask<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  4147. {
  4148. if (source == null)
  4149. throw new ArgumentNullException(nameof(source));
  4150. return source.Provider.ExecuteAsync<HashSet<TSource>>(Expression.Call(ToHashSetAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4151. }
  4152. private static MethodInfo? s_ToHashSetAsync__TSource__3__0;
  4153. private static MethodInfo? ToHashSetAsync__TSource__3__0(Type TSource) =>
  4154. (s_ToHashSetAsync__TSource__3__0 ??
  4155. (s_ToHashSetAsync__TSource__3__0 = new Func<IAsyncQueryable<object>, IEqualityComparer<object>, CancellationToken, ValueTask<HashSet<object>>>(ToHashSetAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4156. public static ValueTask<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncQueryable<TSource> source, IEqualityComparer<TSource>? comparer, CancellationToken cancellationToken = default)
  4157. {
  4158. if (source == null)
  4159. throw new ArgumentNullException(nameof(source));
  4160. return source.Provider.ExecuteAsync<HashSet<TSource>>(Expression.Call(ToHashSetAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IEqualityComparer<TSource>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4161. }
  4162. private static MethodInfo? s_ToListAsync__TSource__2__0;
  4163. private static MethodInfo? ToListAsync__TSource__2__0(Type TSource) =>
  4164. (s_ToListAsync__TSource__2__0 ??
  4165. (s_ToListAsync__TSource__2__0 = new Func<IAsyncQueryable<object>, CancellationToken, ValueTask<List<object>>>(ToListAsync<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4166. public static ValueTask<List<TSource>> ToListAsync<TSource>(this IAsyncQueryable<TSource> source, CancellationToken cancellationToken = default)
  4167. {
  4168. if (source == null)
  4169. throw new ArgumentNullException(nameof(source));
  4170. return source.Provider.ExecuteAsync<List<TSource>>(Expression.Call(ToListAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4171. }
  4172. private static MethodInfo? s_ToLookupAsync__TSource_TKey__3__0;
  4173. private static MethodInfo? ToLookupAsync__TSource_TKey__3__0(Type TSource, Type TKey) =>
  4174. (s_ToLookupAsync__TSource_TKey__3__0 ??
  4175. (s_ToLookupAsync__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4176. public static ValueTask<ILookup<TKey, TSource>> ToLookupAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, CancellationToken cancellationToken = default)
  4177. {
  4178. if (source == null)
  4179. throw new ArgumentNullException(nameof(source));
  4180. if (keySelector == null)
  4181. throw new ArgumentNullException(nameof(keySelector));
  4182. return source.Provider.ExecuteAsync<ILookup<TKey, TSource>>(Expression.Call(ToLookupAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4183. }
  4184. private static MethodInfo? s_ToLookupAsync__TSource_TKey__4__0;
  4185. private static MethodInfo? ToLookupAsync__TSource_TKey__4__0(Type TSource, Type TKey) =>
  4186. (s_ToLookupAsync__TSource_TKey__4__0 ??
  4187. (s_ToLookupAsync__TSource_TKey__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, IEqualityComparer<object>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4188. public static ValueTask<ILookup<TKey, TSource>> ToLookupAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default)
  4189. {
  4190. if (source == null)
  4191. throw new ArgumentNullException(nameof(source));
  4192. if (keySelector == null)
  4193. throw new ArgumentNullException(nameof(keySelector));
  4194. return source.Provider.ExecuteAsync<ILookup<TKey, TSource>>(Expression.Call(ToLookupAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4195. }
  4196. private static MethodInfo? s_ToLookupAsync__TSource_TKey_TElement__4__0;
  4197. private static MethodInfo? ToLookupAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  4198. (s_ToLookupAsync__TSource_TKey_TElement__4__0 ??
  4199. (s_ToLookupAsync__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4200. public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, CancellationToken cancellationToken = default)
  4201. {
  4202. if (source == null)
  4203. throw new ArgumentNullException(nameof(source));
  4204. if (keySelector == null)
  4205. throw new ArgumentNullException(nameof(keySelector));
  4206. if (elementSelector == null)
  4207. throw new ArgumentNullException(nameof(elementSelector));
  4208. return source.Provider.ExecuteAsync<ILookup<TKey, TElement>>(Expression.Call(ToLookupAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4209. }
  4210. private static MethodInfo? s_ToLookupAsync__TSource_TKey_TElement__5__0;
  4211. private static MethodInfo? ToLookupAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) =>
  4212. (s_ToLookupAsync__TSource_TKey_TElement__5__0 ??
  4213. (s_ToLookupAsync__TSource_TKey_TElement__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, object>>, Expression<Func<object, object>>, IEqualityComparer<object>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4214. public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default)
  4215. {
  4216. if (source == null)
  4217. throw new ArgumentNullException(nameof(source));
  4218. if (keySelector == null)
  4219. throw new ArgumentNullException(nameof(keySelector));
  4220. if (elementSelector == null)
  4221. throw new ArgumentNullException(nameof(elementSelector));
  4222. return source.Provider.ExecuteAsync<ILookup<TKey, TElement>>(Expression.Call(ToLookupAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4223. }
  4224. private static MethodInfo? s_ToLookupAwaitAsync__TSource_TKey__3__0;
  4225. private static MethodInfo? ToLookupAwaitAsync__TSource_TKey__3__0(Type TSource, Type TKey) =>
  4226. (s_ToLookupAwaitAsync__TSource_TKey__3__0 ??
  4227. (s_ToLookupAwaitAsync__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4228. public static ValueTask<ILookup<TKey, TSource>> ToLookupAwaitAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, CancellationToken cancellationToken = default)
  4229. {
  4230. if (source == null)
  4231. throw new ArgumentNullException(nameof(source));
  4232. if (keySelector == null)
  4233. throw new ArgumentNullException(nameof(keySelector));
  4234. return source.Provider.ExecuteAsync<ILookup<TKey, TSource>>(Expression.Call(ToLookupAwaitAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4235. }
  4236. private static MethodInfo? s_ToLookupAwaitAsync__TSource_TKey__4__0;
  4237. private static MethodInfo? ToLookupAwaitAsync__TSource_TKey__4__0(Type TSource, Type TKey) =>
  4238. (s_ToLookupAwaitAsync__TSource_TKey__4__0 ??
  4239. (s_ToLookupAwaitAsync__TSource_TKey__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4240. public static ValueTask<ILookup<TKey, TSource>> ToLookupAwaitAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default)
  4241. {
  4242. if (source == null)
  4243. throw new ArgumentNullException(nameof(source));
  4244. if (keySelector == null)
  4245. throw new ArgumentNullException(nameof(keySelector));
  4246. return source.Provider.ExecuteAsync<ILookup<TKey, TSource>>(Expression.Call(ToLookupAwaitAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4247. }
  4248. private static MethodInfo? s_ToLookupAwaitAsync__TSource_TKey_TElement__4__0;
  4249. private static MethodInfo? ToLookupAwaitAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  4250. (s_ToLookupAwaitAsync__TSource_TKey_TElement__4__0 ??
  4251. (s_ToLookupAwaitAsync__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4252. public static ValueTask<ILookup<TKey, TElement>> ToLookupAwaitAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector, CancellationToken cancellationToken = default)
  4253. {
  4254. if (source == null)
  4255. throw new ArgumentNullException(nameof(source));
  4256. if (keySelector == null)
  4257. throw new ArgumentNullException(nameof(keySelector));
  4258. if (elementSelector == null)
  4259. throw new ArgumentNullException(nameof(elementSelector));
  4260. return source.Provider.ExecuteAsync<ILookup<TKey, TElement>>(Expression.Call(ToLookupAwaitAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4261. }
  4262. private static MethodInfo? s_ToLookupAwaitAsync__TSource_TKey_TElement__5__0;
  4263. private static MethodInfo? ToLookupAwaitAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) =>
  4264. (s_ToLookupAwaitAsync__TSource_TKey_TElement__5__0 ??
  4265. (s_ToLookupAwaitAsync__TSource_TKey_TElement__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<object>>>, Expression<Func<object, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4266. public static ValueTask<ILookup<TKey, TElement>> ToLookupAwaitAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<TKey>>> keySelector, Expression<Func<TSource, ValueTask<TElement>>> elementSelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default)
  4267. {
  4268. if (source == null)
  4269. throw new ArgumentNullException(nameof(source));
  4270. if (keySelector == null)
  4271. throw new ArgumentNullException(nameof(keySelector));
  4272. if (elementSelector == null)
  4273. throw new ArgumentNullException(nameof(elementSelector));
  4274. return source.Provider.ExecuteAsync<ILookup<TKey, TElement>>(Expression.Call(ToLookupAwaitAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4275. }
  4276. private static MethodInfo? s_ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0;
  4277. private static MethodInfo? ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0(Type TSource, Type TKey) =>
  4278. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0 ??
  4279. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitWithCancellationAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4280. public static ValueTask<ILookup<TKey, TSource>> ToLookupAwaitWithCancellationAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, CancellationToken cancellationToken = default)
  4281. {
  4282. if (source == null)
  4283. throw new ArgumentNullException(nameof(source));
  4284. if (keySelector == null)
  4285. throw new ArgumentNullException(nameof(keySelector));
  4286. return source.Provider.ExecuteAsync<ILookup<TKey, TSource>>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4287. }
  4288. private static MethodInfo? s_ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0;
  4289. private static MethodInfo? ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0(Type TSource, Type TKey) =>
  4290. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0 ??
  4291. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitWithCancellationAsync<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey);
  4292. public static ValueTask<ILookup<TKey, TSource>> ToLookupAwaitWithCancellationAsync<TSource, TKey>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default)
  4293. {
  4294. if (source == null)
  4295. throw new ArgumentNullException(nameof(source));
  4296. if (keySelector == null)
  4297. throw new ArgumentNullException(nameof(keySelector));
  4298. return source.Provider.ExecuteAsync<ILookup<TKey, TSource>>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4299. }
  4300. private static MethodInfo? s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0;
  4301. private static MethodInfo? ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(Type TSource, Type TKey, Type TElement) =>
  4302. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 ??
  4303. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitWithCancellationAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4304. public static ValueTask<ILookup<TKey, TElement>> ToLookupAwaitWithCancellationAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector, CancellationToken cancellationToken = default)
  4305. {
  4306. if (source == null)
  4307. throw new ArgumentNullException(nameof(source));
  4308. if (keySelector == null)
  4309. throw new ArgumentNullException(nameof(keySelector));
  4310. if (elementSelector == null)
  4311. throw new ArgumentNullException(nameof(elementSelector));
  4312. return source.Provider.ExecuteAsync<ILookup<TKey, TElement>>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__4__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4313. }
  4314. private static MethodInfo? s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0;
  4315. private static MethodInfo? ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(Type TSource, Type TKey, Type TElement) =>
  4316. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 ??
  4317. (s_ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<object>>>, Expression<Func<object, CancellationToken, ValueTask<object>>>, IEqualityComparer<object>, CancellationToken, ValueTask<ILookup<object, object>>>(ToLookupAwaitWithCancellationAsync<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey, TElement);
  4318. public static ValueTask<ILookup<TKey, TElement>> ToLookupAwaitWithCancellationAsync<TSource, TKey, TElement>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<TKey>>> keySelector, Expression<Func<TSource, CancellationToken, ValueTask<TElement>>> elementSelector, IEqualityComparer<TKey>? comparer, CancellationToken cancellationToken = default)
  4319. {
  4320. if (source == null)
  4321. throw new ArgumentNullException(nameof(source));
  4322. if (keySelector == null)
  4323. throw new ArgumentNullException(nameof(keySelector));
  4324. if (elementSelector == null)
  4325. throw new ArgumentNullException(nameof(elementSelector));
  4326. return source.Provider.ExecuteAsync<ILookup<TKey, TElement>>(Expression.Call(ToLookupAwaitWithCancellationAsync__TSource_TKey_TElement__5__0(typeof(TSource), typeof(TKey), typeof(TElement)), source.Expression, keySelector, elementSelector, Expression.Constant(comparer, typeof(IEqualityComparer<TKey>)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken);
  4327. }
  4328. private static MethodInfo? s_Union__TSource__2__0;
  4329. private static MethodInfo? Union__TSource__2__0(Type TSource) =>
  4330. (s_Union__TSource__2__0 ??
  4331. (s_Union__TSource__2__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IAsyncQueryable<object>>(Union<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4332. public static IAsyncQueryable<TSource> Union<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second)
  4333. {
  4334. if (first == null)
  4335. throw new ArgumentNullException(nameof(first));
  4336. if (second == null)
  4337. throw new ArgumentNullException(nameof(second));
  4338. return first.Provider.CreateQuery<TSource>(Expression.Call(Union__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second)));
  4339. }
  4340. private static MethodInfo? s_Union__TSource__3__0;
  4341. private static MethodInfo? Union__TSource__3__0(Type TSource) =>
  4342. (s_Union__TSource__3__0 ??
  4343. (s_Union__TSource__3__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IEqualityComparer<object>, IAsyncQueryable<object>>(Union<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4344. public static IAsyncQueryable<TSource> Union<TSource>(this IAsyncQueryable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource>? comparer)
  4345. {
  4346. if (first == null)
  4347. throw new ArgumentNullException(nameof(first));
  4348. if (second == null)
  4349. throw new ArgumentNullException(nameof(second));
  4350. return first.Provider.CreateQuery<TSource>(Expression.Call(Union__TSource__3__0(typeof(TSource)), first.Expression, GetSourceExpression(second), Expression.Constant(comparer, typeof(IEqualityComparer<TSource>))));
  4351. }
  4352. private static MethodInfo? s_Where__TSource__2__0;
  4353. private static MethodInfo? Where__TSource__2__0(Type TSource) =>
  4354. (s_Where__TSource__2__0 ??
  4355. (s_Where__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, bool>>, IAsyncQueryable<object>>(Where<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4356. public static IAsyncQueryable<TSource> Where<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
  4357. {
  4358. if (source == null)
  4359. throw new ArgumentNullException(nameof(source));
  4360. if (predicate == null)
  4361. throw new ArgumentNullException(nameof(predicate));
  4362. return source.Provider.CreateQuery<TSource>(Expression.Call(Where__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  4363. }
  4364. private static MethodInfo? s_Where__TSource__2__1;
  4365. private static MethodInfo? Where__TSource__2__1(Type TSource) =>
  4366. (s_Where__TSource__2__1 ??
  4367. (s_Where__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, bool>>, IAsyncQueryable<object>>(Where<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4368. public static IAsyncQueryable<TSource> Where<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate)
  4369. {
  4370. if (source == null)
  4371. throw new ArgumentNullException(nameof(source));
  4372. if (predicate == null)
  4373. throw new ArgumentNullException(nameof(predicate));
  4374. return source.Provider.CreateQuery<TSource>(Expression.Call(Where__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  4375. }
  4376. private static MethodInfo? s_WhereAwait__TSource__2__0;
  4377. private static MethodInfo? WhereAwait__TSource__2__0(Type TSource) =>
  4378. (s_WhereAwait__TSource__2__0 ??
  4379. (s_WhereAwait__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, ValueTask<bool>>>, IAsyncQueryable<object>>(WhereAwait<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4380. public static IAsyncQueryable<TSource> WhereAwait<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, ValueTask<bool>>> predicate)
  4381. {
  4382. if (source == null)
  4383. throw new ArgumentNullException(nameof(source));
  4384. if (predicate == null)
  4385. throw new ArgumentNullException(nameof(predicate));
  4386. return source.Provider.CreateQuery<TSource>(Expression.Call(WhereAwait__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  4387. }
  4388. private static MethodInfo? s_WhereAwait__TSource__2__1;
  4389. private static MethodInfo? WhereAwait__TSource__2__1(Type TSource) =>
  4390. (s_WhereAwait__TSource__2__1 ??
  4391. (s_WhereAwait__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, ValueTask<bool>>>, IAsyncQueryable<object>>(WhereAwait<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4392. public static IAsyncQueryable<TSource> WhereAwait<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, ValueTask<bool>>> predicate)
  4393. {
  4394. if (source == null)
  4395. throw new ArgumentNullException(nameof(source));
  4396. if (predicate == null)
  4397. throw new ArgumentNullException(nameof(predicate));
  4398. return source.Provider.CreateQuery<TSource>(Expression.Call(WhereAwait__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  4399. }
  4400. private static MethodInfo? s_WhereAwaitWithCancellation__TSource__2__0;
  4401. private static MethodInfo? WhereAwaitWithCancellation__TSource__2__0(Type TSource) =>
  4402. (s_WhereAwaitWithCancellation__TSource__2__0 ??
  4403. (s_WhereAwaitWithCancellation__TSource__2__0 = new Func<IAsyncQueryable<object>, Expression<Func<object, CancellationToken, ValueTask<bool>>>, IAsyncQueryable<object>>(WhereAwaitWithCancellation<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4404. public static IAsyncQueryable<TSource> WhereAwaitWithCancellation<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, CancellationToken, ValueTask<bool>>> predicate)
  4405. {
  4406. if (source == null)
  4407. throw new ArgumentNullException(nameof(source));
  4408. if (predicate == null)
  4409. throw new ArgumentNullException(nameof(predicate));
  4410. return source.Provider.CreateQuery<TSource>(Expression.Call(WhereAwaitWithCancellation__TSource__2__0(typeof(TSource)), source.Expression, predicate));
  4411. }
  4412. private static MethodInfo? s_WhereAwaitWithCancellation__TSource__2__1;
  4413. private static MethodInfo? WhereAwaitWithCancellation__TSource__2__1(Type TSource) =>
  4414. (s_WhereAwaitWithCancellation__TSource__2__1 ??
  4415. (s_WhereAwaitWithCancellation__TSource__2__1 = new Func<IAsyncQueryable<object>, Expression<Func<object, int, CancellationToken, ValueTask<bool>>>, IAsyncQueryable<object>>(WhereAwaitWithCancellation<object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TSource);
  4416. public static IAsyncQueryable<TSource> WhereAwaitWithCancellation<TSource>(this IAsyncQueryable<TSource> source, Expression<Func<TSource, int, CancellationToken, ValueTask<bool>>> predicate)
  4417. {
  4418. if (source == null)
  4419. throw new ArgumentNullException(nameof(source));
  4420. if (predicate == null)
  4421. throw new ArgumentNullException(nameof(predicate));
  4422. return source.Provider.CreateQuery<TSource>(Expression.Call(WhereAwaitWithCancellation__TSource__2__1(typeof(TSource)), source.Expression, predicate));
  4423. }
  4424. private static MethodInfo? s_Zip__TFirst_TSecond_TResult__3__0;
  4425. private static MethodInfo? Zip__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) =>
  4426. (s_Zip__TFirst_TSecond_TResult__3__0 ??
  4427. (s_Zip__TFirst_TSecond_TResult__3__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, object, object>>, IAsyncQueryable<object>>(Zip<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond, TResult);
  4428. public static IAsyncQueryable<TResult> Zip<TFirst, TSecond, TResult>(this IAsyncQueryable<TFirst> first, IAsyncEnumerable<TSecond> second, Expression<Func<TFirst, TSecond, TResult>> selector)
  4429. {
  4430. if (first == null)
  4431. throw new ArgumentNullException(nameof(first));
  4432. if (second == null)
  4433. throw new ArgumentNullException(nameof(second));
  4434. if (selector == null)
  4435. throw new ArgumentNullException(nameof(selector));
  4436. return first.Provider.CreateQuery<TResult>(Expression.Call(Zip__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector));
  4437. }
  4438. private static MethodInfo? s_ZipAwait__TFirst_TSecond_TResult__3__0;
  4439. private static MethodInfo? ZipAwait__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) =>
  4440. (s_ZipAwait__TFirst_TSecond_TResult__3__0 ??
  4441. (s_ZipAwait__TFirst_TSecond_TResult__3__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, object, ValueTask<object>>>, IAsyncQueryable<object>>(ZipAwait<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond, TResult);
  4442. public static IAsyncQueryable<TResult> ZipAwait<TFirst, TSecond, TResult>(this IAsyncQueryable<TFirst> first, IAsyncEnumerable<TSecond> second, Expression<Func<TFirst, TSecond, ValueTask<TResult>>> selector)
  4443. {
  4444. if (first == null)
  4445. throw new ArgumentNullException(nameof(first));
  4446. if (second == null)
  4447. throw new ArgumentNullException(nameof(second));
  4448. if (selector == null)
  4449. throw new ArgumentNullException(nameof(selector));
  4450. return first.Provider.CreateQuery<TResult>(Expression.Call(ZipAwait__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector));
  4451. }
  4452. private static MethodInfo? s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0;
  4453. private static MethodInfo? ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) =>
  4454. (s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0 ??
  4455. (s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, Expression<Func<object, object, CancellationToken, ValueTask<object>>>, IAsyncQueryable<object>>(ZipAwaitWithCancellation<object, object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond, TResult);
  4456. public static IAsyncQueryable<TResult> ZipAwaitWithCancellation<TFirst, TSecond, TResult>(this IAsyncQueryable<TFirst> first, IAsyncEnumerable<TSecond> second, Expression<Func<TFirst, TSecond, CancellationToken, ValueTask<TResult>>> selector)
  4457. {
  4458. if (first == null)
  4459. throw new ArgumentNullException(nameof(first));
  4460. if (second == null)
  4461. throw new ArgumentNullException(nameof(second));
  4462. if (selector == null)
  4463. throw new ArgumentNullException(nameof(selector));
  4464. return first.Provider.CreateQuery<TResult>(Expression.Call(ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector));
  4465. }
  4466. }
  4467. }