AsyncQueryable.Generated.cs 429 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962
  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__2__0;
  4425. private static MethodInfo Zip__TFirst_TSecond__2__0(Type TFirst, Type TSecond) =>
  4426. (s_Zip__TFirst_TSecond__2__0 ??
  4427. (s_Zip__TFirst_TSecond__2__0 = new Func<IAsyncQueryable<object>, IAsyncEnumerable<object>, IAsyncQueryable<ValueTuple<object, object>>>(Zip<object, object>).GetMethodInfo()!.GetGenericMethodDefinition())).MakeGenericMethod(TFirst, TSecond);
  4428. public static IAsyncQueryable<ValueTuple<TFirst, TSecond>> Zip<TFirst, TSecond>(this IAsyncQueryable<TFirst> first, IAsyncEnumerable<TSecond> second)
  4429. {
  4430. if (first == null)
  4431. throw new ArgumentNullException(nameof(first));
  4432. if (second == null)
  4433. throw new ArgumentNullException(nameof(second));
  4434. return first.Provider.CreateQuery<ValueTuple<TFirst, TSecond>>(Expression.Call(Zip__TFirst_TSecond__2__0(typeof(TFirst), typeof(TSecond)), first.Expression, GetSourceExpression(second)));
  4435. }
  4436. private static MethodInfo? s_Zip__TFirst_TSecond_TResult__3__0;
  4437. private static MethodInfo Zip__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) =>
  4438. (s_Zip__TFirst_TSecond_TResult__3__0 ??
  4439. (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);
  4440. public static IAsyncQueryable<TResult> Zip<TFirst, TSecond, TResult>(this IAsyncQueryable<TFirst> first, IAsyncEnumerable<TSecond> second, Expression<Func<TFirst, TSecond, TResult>> selector)
  4441. {
  4442. if (first == null)
  4443. throw new ArgumentNullException(nameof(first));
  4444. if (second == null)
  4445. throw new ArgumentNullException(nameof(second));
  4446. if (selector == null)
  4447. throw new ArgumentNullException(nameof(selector));
  4448. return first.Provider.CreateQuery<TResult>(Expression.Call(Zip__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector));
  4449. }
  4450. private static MethodInfo? s_ZipAwait__TFirst_TSecond_TResult__3__0;
  4451. private static MethodInfo ZipAwait__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) =>
  4452. (s_ZipAwait__TFirst_TSecond_TResult__3__0 ??
  4453. (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);
  4454. public static IAsyncQueryable<TResult> ZipAwait<TFirst, TSecond, TResult>(this IAsyncQueryable<TFirst> first, IAsyncEnumerable<TSecond> second, Expression<Func<TFirst, TSecond, ValueTask<TResult>>> selector)
  4455. {
  4456. if (first == null)
  4457. throw new ArgumentNullException(nameof(first));
  4458. if (second == null)
  4459. throw new ArgumentNullException(nameof(second));
  4460. if (selector == null)
  4461. throw new ArgumentNullException(nameof(selector));
  4462. return first.Provider.CreateQuery<TResult>(Expression.Call(ZipAwait__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector));
  4463. }
  4464. private static MethodInfo? s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0;
  4465. private static MethodInfo ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0(Type TFirst, Type TSecond, Type TResult) =>
  4466. (s_ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0 ??
  4467. (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);
  4468. public static IAsyncQueryable<TResult> ZipAwaitWithCancellation<TFirst, TSecond, TResult>(this IAsyncQueryable<TFirst> first, IAsyncEnumerable<TSecond> second, Expression<Func<TFirst, TSecond, CancellationToken, ValueTask<TResult>>> selector)
  4469. {
  4470. if (first == null)
  4471. throw new ArgumentNullException(nameof(first));
  4472. if (second == null)
  4473. throw new ArgumentNullException(nameof(second));
  4474. if (selector == null)
  4475. throw new ArgumentNullException(nameof(selector));
  4476. return first.Provider.CreateQuery<TResult>(Expression.Call(ZipAwaitWithCancellation__TFirst_TSecond_TResult__3__0(typeof(TFirst), typeof(TSecond), typeof(TResult)), first.Expression, GetSourceExpression(second), selector));
  4477. }
  4478. }
  4479. }