Enumerable.xml 558 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="Enumerable" FullName="System.Linq.Enumerable">
  3. <TypeSignature Language="C#" Value="public static class Enumerable" />
  4. <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit Enumerable extends System.Object" />
  5. <AssemblyInfo>
  6. <AssemblyName>System.Core</AssemblyName>
  7. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  8. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  9. </AssemblyInfo>
  10. <Base>
  11. <BaseTypeName>System.Object</BaseTypeName>
  12. </Base>
  13. <Interfaces />
  14. <Docs>
  15. <remarks>
  16. <attribution license="cc4" from="Microsoft" modified="false" />
  17. <para>The methods in this class provide an implementation of the standard query operators for querying data sources that implement <see cref="T:System.Collections.Generic.IEnumerable`1" />. The standard query operators are general purpose methods that follow the vbteclinq pattern and enable you to express traversal, filter, and projection operations over data in any .NET-based programming language.</para>
  18. <para>The majority of the methods in this class are defined as extension methods that extend <see cref="T:System.Collections.Generic.IEnumerable`1" />. This means they can be called like an instance method on any object that implements <see cref="T:System.Collections.Generic.IEnumerable`1" />.</para>
  19. <para>Methods that are used in a query that returns a sequence of values do not consume the target data until the query object is enumerated. This is known as deferred execution. Methods that are used in a query that returns a singleton value execute and consume the target data immediately.</para>
  20. </remarks>
  21. <summary>
  22. <attribution license="cc4" from="Microsoft" modified="false" />
  23. <para>Provides a set of static (Shared in Visual Basic) methods for querying objects that implement <see cref="T:System.Collections.Generic.IEnumerable`1" />.</para>
  24. </summary>
  25. </Docs>
  26. <Members>
  27. <Member MemberName="Aggregate&lt;TSource&gt;">
  28. <MemberSignature Language="C#" Value="public static TSource Aggregate&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TSource,TSource&gt; func);" />
  29. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource Aggregate&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`3&lt;!!TSource, !!TSource, !!TSource&gt; func) cil managed" />
  30. <MemberType>Method</MemberType>
  31. <AssemblyInfo>
  32. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  33. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  34. </AssemblyInfo>
  35. <ReturnValue>
  36. <ReturnType>TSource</ReturnType>
  37. </ReturnValue>
  38. <TypeParameters>
  39. <TypeParameter Name="TSource" />
  40. </TypeParameters>
  41. <Parameters>
  42. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  43. <Parameter Name="func" Type="System.Func&lt;TSource,TSource,TSource&gt;" />
  44. </Parameters>
  45. <Docs>
  46. <remarks>
  47. <attribution license="cc4" from="Microsoft" modified="false" />
  48. <para>The <see cref="M:System.Linq.Enumerable.Aggregate``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``0,``0})" /> method makes it simple to perform a calculation over a sequence of values. This method works by calling <paramref name="func" /> one time for each element in <paramref name="source" /> except the first one. Each time <paramref name="func" /> is called, <see cref="M:System.Linq.Enumerable.Aggregate``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``0,``0})" /> passes both the element from the sequence and an aggregated value (as the first argument to <paramref name="func" />). The first element of <paramref name="source" /> is used as the initial aggregate value. The result of <paramref name="func" /> replaces the previous aggregated value. <see cref="M:System.Linq.Enumerable.Aggregate``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``0,``0})" /> returns the final result of <paramref name="func" />.</para>
  49. <para>This overload of the <see cref="M:System.Linq.Enumerable.Aggregate``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``0,``0})" /> method isn't suitable for all cases because it uses the first element of <paramref name="source" /> as the initial aggregate value. You should choose another overload if the return value should include only the elements of <paramref name="source" /> that meet a certain condition. For example, this overload isn't reliable if you want to calculate the sum of the even numbers in <paramref name="source" />. The result will be incorrect if the first element is odd instead of even.</para>
  50. <para>To simplify common aggregation operations, the standard query operators also include a general purpose count method, <see cref="M:System.Linq.Enumerable.Count``1(System.Collections.Generic.IEnumerable{``0})" />, and four numeric aggregation methods, namely <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Decimal})" />, <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Decimal})" />, <see cref="M:System.Linq.Enumerable.Sum(System.Collections.Generic.IEnumerable{System.Decimal})" />, and <see cref="M:System.Linq.Enumerable.Average(System.Collections.Generic.IEnumerable{System.Decimal})" />.</para>
  51. </remarks>
  52. <summary>
  53. <attribution license="cc4" from="Microsoft" modified="false" />
  54. <para>Applies an accumulator function over a sequence.</para>
  55. </summary>
  56. <returns>
  57. <attribution license="cc4" from="Microsoft" modified="false" />
  58. <para>The final accumulator value.</para>
  59. </returns>
  60. <param name="source">
  61. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to aggregate over.</param>
  62. <param name="func">
  63. <attribution license="cc4" from="Microsoft" modified="false" />An accumulator function to be invoked on each element.</param>
  64. <typeparam name="TSource">
  65. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  66. </Docs>
  67. </Member>
  68. <Member MemberName="Aggregate&lt;TSource,TAccumulate&gt;">
  69. <MemberSignature Language="C#" Value="public static TAccumulate Aggregate&lt;TSource,TAccumulate&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, TAccumulate seed, Func&lt;TAccumulate,TSource,TAccumulate&gt; func);" />
  70. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TAccumulate Aggregate&lt;TSource, TAccumulate&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, !!TAccumulate seed, class System.Func`3&lt;!!TAccumulate, !!TSource, !!TAccumulate&gt; func) cil managed" />
  71. <MemberType>Method</MemberType>
  72. <AssemblyInfo>
  73. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  74. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  75. </AssemblyInfo>
  76. <ReturnValue>
  77. <ReturnType>TAccumulate</ReturnType>
  78. </ReturnValue>
  79. <TypeParameters>
  80. <TypeParameter Name="TSource" />
  81. <TypeParameter Name="TAccumulate" />
  82. </TypeParameters>
  83. <Parameters>
  84. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  85. <Parameter Name="seed" Type="TAccumulate" />
  86. <Parameter Name="func" Type="System.Func&lt;TAccumulate,TSource,TAccumulate&gt;" />
  87. </Parameters>
  88. <Docs>
  89. <remarks>
  90. <attribution license="cc4" from="Microsoft" modified="false" />
  91. <para>The <see cref="M:System.Linq.Enumerable.Aggregate``2(System.Collections.Generic.IEnumerable{``0},``1,System.Func{``1,``0,``1})" /> method makes it simple to perform a calculation over a sequence of values. This method works by calling <paramref name="func" /> one time for each element in <paramref name="source" />. Each time <paramref name="func" /> is called, <see cref="M:System.Linq.Enumerable.Aggregate``2(System.Collections.Generic.IEnumerable{``0},``1,System.Func{``1,``0,``1})" /> passes both the element from the sequence and an aggregated value (as the first argument to <paramref name="func" />). The value of the <paramref name="seed" /> parameter is used as the initial aggregate value. The result of <paramref name="func" /> replaces the previous aggregated value. <see cref="M:System.Linq.Enumerable.Aggregate``2(System.Collections.Generic.IEnumerable{``0},``1,System.Func{``1,``0,``1})" /> returns the final result of <paramref name="func" />.</para>
  92. <para>To simplify common aggregation operations, the standard query operators also include a general purpose count method, <see cref="M:System.Linq.Enumerable.Count``1(System.Collections.Generic.IEnumerable{``0})" />, and four numeric aggregation methods, namely <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Decimal})" />, <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Decimal})" />, <see cref="M:System.Linq.Enumerable.Sum(System.Collections.Generic.IEnumerable{System.Decimal})" />, and <see cref="M:System.Linq.Enumerable.Average(System.Collections.Generic.IEnumerable{System.Decimal})" />.</para>
  93. </remarks>
  94. <summary>
  95. <attribution license="cc4" from="Microsoft" modified="false" />
  96. <para>Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.</para>
  97. </summary>
  98. <returns>
  99. <attribution license="cc4" from="Microsoft" modified="false" />
  100. <para>The final accumulator value.</para>
  101. </returns>
  102. <param name="source">
  103. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to aggregate over.</param>
  104. <param name="seed">
  105. <attribution license="cc4" from="Microsoft" modified="false" />The initial accumulator value.</param>
  106. <param name="func">
  107. <attribution license="cc4" from="Microsoft" modified="false" />An accumulator function to be invoked on each element.</param>
  108. <typeparam name="TSource">
  109. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  110. <typeparam name="TAccumulate">
  111. <attribution license="cc4" from="Microsoft" modified="false" />The type of the accumulator value.</typeparam>
  112. </Docs>
  113. </Member>
  114. <Member MemberName="Aggregate&lt;TSource,TAccumulate,TResult&gt;">
  115. <MemberSignature Language="C#" Value="public static TResult Aggregate&lt;TSource,TAccumulate,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, TAccumulate seed, Func&lt;TAccumulate,TSource,TAccumulate&gt; func, Func&lt;TAccumulate,TResult&gt; resultSelector);" />
  116. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TResult Aggregate&lt;TSource, TAccumulate, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, !!TAccumulate seed, class System.Func`3&lt;!!TAccumulate, !!TSource, !!TAccumulate&gt; func, class System.Func`2&lt;!!TAccumulate, !!TResult&gt; resultSelector) cil managed" />
  117. <MemberType>Method</MemberType>
  118. <AssemblyInfo>
  119. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  120. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  121. </AssemblyInfo>
  122. <ReturnValue>
  123. <ReturnType>TResult</ReturnType>
  124. </ReturnValue>
  125. <TypeParameters>
  126. <TypeParameter Name="TSource" />
  127. <TypeParameter Name="TAccumulate" />
  128. <TypeParameter Name="TResult" />
  129. </TypeParameters>
  130. <Parameters>
  131. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  132. <Parameter Name="seed" Type="TAccumulate" />
  133. <Parameter Name="func" Type="System.Func&lt;TAccumulate,TSource,TAccumulate&gt;" />
  134. <Parameter Name="resultSelector" Type="System.Func&lt;TAccumulate,TResult&gt;" />
  135. </Parameters>
  136. <Docs>
  137. <remarks>
  138. <attribution license="cc4" from="Microsoft" modified="false" />
  139. <para>The <see cref="M:System.Linq.Enumerable.Aggregate``3(System.Collections.Generic.IEnumerable{``0},``1,System.Func{``1,``0,``1},System.Func{``1,``2})" /> method makes it simple to perform a calculation over a sequence of values. This method works by calling <paramref name="func" /> one time for each element in <paramref name="source" />. Each time <paramref name="func" /> is called, <see cref="M:System.Linq.Enumerable.Aggregate``3(System.Collections.Generic.IEnumerable{``0},``1,System.Func{``1,``0,``1},System.Func{``1,``2})" /> passes both the element from the sequence and an aggregated value (as the first argument to <paramref name="func" />). The value of the <paramref name="seed" /> parameter is used as the initial aggregate value. The result of <paramref name="func" /> replaces the previous aggregated value. The final result of <paramref name="func" /> is passed to <paramref name="resultSelector" /> to obtain the final result of <see cref="M:System.Linq.Enumerable.Aggregate``3(System.Collections.Generic.IEnumerable{``0},``1,System.Func{``1,``0,``1},System.Func{``1,``2})" />.</para>
  140. <para>To simplify common aggregation operations, the standard query operators also include a general purpose count method, <see cref="M:System.Linq.Enumerable.Count``1(System.Collections.Generic.IEnumerable{``0})" />, and four numeric aggregation methods, namely <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Decimal})" />, <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Decimal})" />, <see cref="M:System.Linq.Enumerable.Sum(System.Collections.Generic.IEnumerable{System.Decimal})" />, and <see cref="M:System.Linq.Enumerable.Average(System.Collections.Generic.IEnumerable{System.Decimal})" />.</para>
  141. </remarks>
  142. <summary>
  143. <attribution license="cc4" from="Microsoft" modified="false" />
  144. <para>Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.</para>
  145. </summary>
  146. <returns>
  147. <attribution license="cc4" from="Microsoft" modified="false" />
  148. <para>The transformed final accumulator value.</para>
  149. </returns>
  150. <param name="source">
  151. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to aggregate over.</param>
  152. <param name="seed">
  153. <attribution license="cc4" from="Microsoft" modified="false" />The initial accumulator value.</param>
  154. <param name="func">
  155. <attribution license="cc4" from="Microsoft" modified="false" />An accumulator function to be invoked on each element.</param>
  156. <param name="resultSelector">
  157. <attribution license="cc4" from="Microsoft" modified="false" />A function to transform the final accumulator value into the result value.</param>
  158. <typeparam name="TSource">
  159. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  160. <typeparam name="TAccumulate">
  161. <attribution license="cc4" from="Microsoft" modified="false" />The type of the accumulator value.</typeparam>
  162. <typeparam name="TResult">
  163. <attribution license="cc4" from="Microsoft" modified="false" />The type of the resulting value.</typeparam>
  164. </Docs>
  165. </Member>
  166. <Member MemberName="All&lt;TSource&gt;">
  167. <MemberSignature Language="C#" Value="public static bool All&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  168. <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool All&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  169. <MemberType>Method</MemberType>
  170. <AssemblyInfo>
  171. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  172. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  173. </AssemblyInfo>
  174. <ReturnValue>
  175. <ReturnType>System.Boolean</ReturnType>
  176. </ReturnValue>
  177. <TypeParameters>
  178. <TypeParameter Name="TSource" />
  179. </TypeParameters>
  180. <Parameters>
  181. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  182. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  183. </Parameters>
  184. <Docs>
  185. <remarks>
  186. <attribution license="cc4" from="Microsoft" modified="false" />
  187. <block subset="none" type="note">
  188. <para>This method does not return all the elements of a collection. Instead, it determines whether all the elements of a collection satisfy a condition.</para>
  189. </block>
  190. <para>The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.</para>
  191. <para>In vbprvb query expression syntax, an Aggregate Into All() clause translates to an invocation of <see cref="M:System.Linq.Enumerable.All``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" />.</para>
  192. </remarks>
  193. <summary>
  194. <attribution license="cc4" from="Microsoft" modified="false" />
  195. <para>Determines whether all elements of a sequence satisfy a condition.</para>
  196. </summary>
  197. <returns>
  198. <attribution license="cc4" from="Microsoft" modified="false" />
  199. <para>true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false.</para>
  200. </returns>
  201. <param name="source">
  202. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements to apply the predicate to.</param>
  203. <param name="predicate">
  204. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  205. <typeparam name="TSource">
  206. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  207. </Docs>
  208. </Member>
  209. <Member MemberName="Any&lt;TSource&gt;">
  210. <MemberSignature Language="C#" Value="public static bool Any&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  211. <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Any&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  212. <MemberType>Method</MemberType>
  213. <AssemblyInfo>
  214. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  215. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  216. </AssemblyInfo>
  217. <ReturnValue>
  218. <ReturnType>System.Boolean</ReturnType>
  219. </ReturnValue>
  220. <TypeParameters>
  221. <TypeParameter Name="TSource" />
  222. </TypeParameters>
  223. <Parameters>
  224. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  225. </Parameters>
  226. <Docs>
  227. <remarks>
  228. <attribution license="cc4" from="Microsoft" modified="false" />
  229. <block subset="none" type="note">
  230. <para>This method does not return any one element of a collection. Instead, it determines whether the collection contains any elements.</para>
  231. </block>
  232. <para>The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.</para>
  233. <para>In vbprvb query expression syntax, an Aggregate Into Any() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Any" />.</para>
  234. </remarks>
  235. <summary>
  236. <attribution license="cc4" from="Microsoft" modified="false" />
  237. <para>Determines whether a sequence contains any elements.</para>
  238. </summary>
  239. <returns>
  240. <attribution license="cc4" from="Microsoft" modified="false" />
  241. <para>true if the source sequence contains any elements; otherwise, false.</para>
  242. </returns>
  243. <param name="source">
  244. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to check for emptiness.</param>
  245. <typeparam name="TSource">
  246. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  247. </Docs>
  248. </Member>
  249. <Member MemberName="Any&lt;TSource&gt;">
  250. <MemberSignature Language="C#" Value="public static bool Any&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  251. <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Any&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  252. <MemberType>Method</MemberType>
  253. <AssemblyInfo>
  254. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  255. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  256. </AssemblyInfo>
  257. <ReturnValue>
  258. <ReturnType>System.Boolean</ReturnType>
  259. </ReturnValue>
  260. <TypeParameters>
  261. <TypeParameter Name="TSource" />
  262. </TypeParameters>
  263. <Parameters>
  264. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  265. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  266. </Parameters>
  267. <Docs>
  268. <remarks>
  269. <attribution license="cc4" from="Microsoft" modified="false" />
  270. <block subset="none" type="note">
  271. <para>This method does not return any one element of a collection. Instead, it determines whether any elements of a collection satisfy a condition.</para>
  272. </block>
  273. <para>The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.</para>
  274. <para>In vbprvb query expression syntax, an Aggregate Into Any() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Any" />.</para>
  275. </remarks>
  276. <summary>
  277. <attribution license="cc4" from="Microsoft" modified="false" />
  278. <para>Determines whether any element of a sequence satisfies a condition.</para>
  279. </summary>
  280. <returns>
  281. <attribution license="cc4" from="Microsoft" modified="false" />
  282. <para>true if any elements in the source sequence pass the test in the specified predicate; otherwise, false.</para>
  283. </returns>
  284. <param name="source">
  285. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to apply the predicate to.</param>
  286. <param name="predicate">
  287. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  288. <typeparam name="TSource">
  289. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  290. </Docs>
  291. </Member>
  292. <Member MemberName="AsEnumerable&lt;TSource&gt;">
  293. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; AsEnumerable&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  294. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; AsEnumerable&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  295. <MemberType>Method</MemberType>
  296. <AssemblyInfo>
  297. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  298. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  299. </AssemblyInfo>
  300. <ReturnValue>
  301. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  302. </ReturnValue>
  303. <TypeParameters>
  304. <TypeParameter Name="TSource" />
  305. </TypeParameters>
  306. <Parameters>
  307. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  308. </Parameters>
  309. <Docs>
  310. <remarks>
  311. <attribution license="cc4" from="Microsoft" modified="false" />
  312. <para>The <see cref="M:System.Linq.Enumerable.AsEnumerable``1(System.Collections.Generic.IEnumerable{``0})" /> method has no effect other than to change the compile-time type of <paramref name="source" /> from a type that implements <see cref="T:System.Collections.Generic.IEnumerable`1" /> to <see cref="T:System.Collections.Generic.IEnumerable`1" /> itself.</para>
  313. <para>
  314. <see cref="M:System.Linq.Enumerable.AsEnumerable``1(System.Collections.Generic.IEnumerable{``0})" /> can be used to choose between query implementations when a sequence implements <see cref="T:System.Collections.Generic.IEnumerable`1" /> but also has a different set of public query methods available. For example, given a generic class Table that implements <see cref="T:System.Collections.Generic.IEnumerable`1" /> and has its own methods such as Where, Select, and SelectMany, a call to Where would invoke the public Where method of Table. A Table type that represents a database table could have a Where method that takes the predicate argument as an expression tree and converts the tree to SQL for remote execution. If remote execution is not desired, for example because the predicate invokes a local method, the <see cref="M:System.Linq.Enumerable.AsEnumerable``1(System.Collections.Generic.IEnumerable{``0})" /> method can be used to hide the custom methods and instead make the standard query operators available.</para>
  315. </remarks>
  316. <summary>
  317. <attribution license="cc4" from="Microsoft" modified="false" />
  318. <para>Returns the input typed as <see cref="T:System.Collections.Generic.IEnumerable`1" />.</para>
  319. </summary>
  320. <returns>
  321. <attribution license="cc4" from="Microsoft" modified="false" />
  322. <para>The input sequence typed as <see cref="T:System.Collections.Generic.IEnumerable`1" />.</para>
  323. </returns>
  324. <param name="source">
  325. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to type as <see cref="T:System.Collections.Generic.IEnumerable`1" />.</param>
  326. <typeparam name="TSource">
  327. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  328. </Docs>
  329. </Member>
  330. <Member MemberName="Average">
  331. <MemberSignature Language="C#" Value="public static decimal Average (this System.Collections.Generic.IEnumerable&lt;decimal&gt; source);" />
  332. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Average(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Decimal&gt; source) cil managed" />
  333. <MemberType>Method</MemberType>
  334. <AssemblyInfo>
  335. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  336. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  337. </AssemblyInfo>
  338. <ReturnValue>
  339. <ReturnType>System.Decimal</ReturnType>
  340. </ReturnValue>
  341. <Parameters>
  342. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Decimal&gt;" RefType="this" />
  343. </Parameters>
  344. <Docs>
  345. <remarks>
  346. <attribution license="cc4" from="Microsoft" modified="false" />
  347. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  348. </remarks>
  349. <summary>
  350. <attribution license="cc4" from="Microsoft" modified="false" />
  351. <para>Computes the average of a sequence of <see cref="T:System.Decimal" /> values.</para>
  352. </summary>
  353. <returns>
  354. <attribution license="cc4" from="Microsoft" modified="false" />
  355. <para>The average of the sequence of values.</para>
  356. </returns>
  357. <param name="source">
  358. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Decimal" /> values to calculate the average of.</param>
  359. </Docs>
  360. </Member>
  361. <Member MemberName="Average">
  362. <MemberSignature Language="C#" Value="public static double Average (this System.Collections.Generic.IEnumerable&lt;double&gt; source);" />
  363. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Average(class System.Collections.Generic.IEnumerable`1&lt;float64&gt; source) cil managed" />
  364. <MemberType>Method</MemberType>
  365. <AssemblyInfo>
  366. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  367. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  368. </AssemblyInfo>
  369. <ReturnValue>
  370. <ReturnType>System.Double</ReturnType>
  371. </ReturnValue>
  372. <Parameters>
  373. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Double&gt;" RefType="this" />
  374. </Parameters>
  375. <Docs>
  376. <remarks>
  377. <attribution license="cc4" from="Microsoft" modified="false" />
  378. <para>If the sum of the elements is too large to represent as a <see cref="T:System.Double" />, this method returns positive or negative infinity.</para>
  379. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  380. </remarks>
  381. <summary>
  382. <attribution license="cc4" from="Microsoft" modified="false" />
  383. <para>Computes the average of a sequence of <see cref="T:System.Double" /> values.</para>
  384. </summary>
  385. <returns>
  386. <attribution license="cc4" from="Microsoft" modified="false" />
  387. <para>The average of the sequence of values.</para>
  388. </returns>
  389. <param name="source">
  390. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Double" /> values to calculate the average of.</param>
  391. </Docs>
  392. </Member>
  393. <Member MemberName="Average">
  394. <MemberSignature Language="C#" Value="public static double Average (this System.Collections.Generic.IEnumerable&lt;int&gt; source);" />
  395. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Average(class System.Collections.Generic.IEnumerable`1&lt;int32&gt; source) cil managed" />
  396. <MemberType>Method</MemberType>
  397. <AssemblyInfo>
  398. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  399. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  400. </AssemblyInfo>
  401. <ReturnValue>
  402. <ReturnType>System.Double</ReturnType>
  403. </ReturnValue>
  404. <Parameters>
  405. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int32&gt;" RefType="this" />
  406. </Parameters>
  407. <Docs>
  408. <remarks>
  409. <attribution license="cc4" from="Microsoft" modified="false" />
  410. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  411. </remarks>
  412. <summary>
  413. <attribution license="cc4" from="Microsoft" modified="false" />
  414. <para>Computes the average of a sequence of <see cref="T:System.Int32" /> values.</para>
  415. </summary>
  416. <returns>
  417. <attribution license="cc4" from="Microsoft" modified="false" />
  418. <para>The average of the sequence of values.</para>
  419. </returns>
  420. <param name="source">
  421. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int32" /> values to calculate the average of.</param>
  422. </Docs>
  423. </Member>
  424. <Member MemberName="Average">
  425. <MemberSignature Language="C#" Value="public static double Average (this System.Collections.Generic.IEnumerable&lt;long&gt; source);" />
  426. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Average(class System.Collections.Generic.IEnumerable`1&lt;int64&gt; source) cil managed" />
  427. <MemberType>Method</MemberType>
  428. <AssemblyInfo>
  429. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  430. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  431. </AssemblyInfo>
  432. <ReturnValue>
  433. <ReturnType>System.Double</ReturnType>
  434. </ReturnValue>
  435. <Parameters>
  436. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int64&gt;" RefType="this" />
  437. </Parameters>
  438. <Docs>
  439. <remarks>
  440. <attribution license="cc4" from="Microsoft" modified="false" />
  441. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  442. </remarks>
  443. <summary>
  444. <attribution license="cc4" from="Microsoft" modified="false" />
  445. <para>Computes the average of a sequence of <see cref="T:System.Int64" /> values.</para>
  446. </summary>
  447. <returns>
  448. <attribution license="cc4" from="Microsoft" modified="false" />
  449. <para>The average of the sequence of values.</para>
  450. </returns>
  451. <param name="source">
  452. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int64" /> values to calculate the average of.</param>
  453. </Docs>
  454. </Member>
  455. <Member MemberName="Average">
  456. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Average (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;decimal&gt;&gt; source);" />
  457. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Average(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; source) cil managed" />
  458. <MemberType>Method</MemberType>
  459. <AssemblyInfo>
  460. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  461. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  462. </AssemblyInfo>
  463. <ReturnValue>
  464. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  465. </ReturnValue>
  466. <Parameters>
  467. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Decimal&gt;&gt;" RefType="this" />
  468. </Parameters>
  469. <Docs>
  470. <remarks>
  471. <attribution license="cc4" from="Microsoft" modified="false" />
  472. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  473. </remarks>
  474. <summary>
  475. <attribution license="cc4" from="Microsoft" modified="false" />
  476. <para>Computes the average of a sequence of nullable <see cref="T:System.Decimal" /> values.</para>
  477. </summary>
  478. <returns>
  479. <attribution license="cc4" from="Microsoft" modified="false" />
  480. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  481. </returns>
  482. <param name="source">
  483. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Decimal" /> values to calculate the average of.</param>
  484. </Docs>
  485. </Member>
  486. <Member MemberName="Average">
  487. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Average (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;double&gt;&gt; source);" />
  488. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Average(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float64&gt;&gt; source) cil managed" />
  489. <MemberType>Method</MemberType>
  490. <AssemblyInfo>
  491. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  492. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  493. </AssemblyInfo>
  494. <ReturnValue>
  495. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  496. </ReturnValue>
  497. <Parameters>
  498. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Double&gt;&gt;" RefType="this" />
  499. </Parameters>
  500. <Docs>
  501. <remarks>
  502. <attribution license="cc4" from="Microsoft" modified="false" />
  503. <para>If the sum of the elements is too large to represent as a <see cref="T:System.Double" />, this method returns positive or negative infinity.</para>
  504. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  505. </remarks>
  506. <summary>
  507. <attribution license="cc4" from="Microsoft" modified="false" />
  508. <para>Computes the average of a sequence of nullable <see cref="T:System.Double" /> values.</para>
  509. </summary>
  510. <returns>
  511. <attribution license="cc4" from="Microsoft" modified="false" />
  512. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  513. </returns>
  514. <param name="source">
  515. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Double" /> values to calculate the average of.</param>
  516. </Docs>
  517. </Member>
  518. <Member MemberName="Average">
  519. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Average (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;int&gt;&gt; source);" />
  520. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Average(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int32&gt;&gt; source) cil managed" />
  521. <MemberType>Method</MemberType>
  522. <AssemblyInfo>
  523. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  524. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  525. </AssemblyInfo>
  526. <ReturnValue>
  527. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  528. </ReturnValue>
  529. <Parameters>
  530. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int32&gt;&gt;" RefType="this" />
  531. </Parameters>
  532. <Docs>
  533. <remarks>
  534. <attribution license="cc4" from="Microsoft" modified="false" />
  535. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  536. </remarks>
  537. <summary>
  538. <attribution license="cc4" from="Microsoft" modified="false" />
  539. <para>Computes the average of a sequence of nullable <see cref="T:System.Int32" /> values.</para>
  540. </summary>
  541. <returns>
  542. <attribution license="cc4" from="Microsoft" modified="false" />
  543. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  544. </returns>
  545. <param name="source">
  546. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int32" /> values to calculate the average of.</param>
  547. </Docs>
  548. </Member>
  549. <Member MemberName="Average">
  550. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Average (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;long&gt;&gt; source);" />
  551. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Average(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int64&gt;&gt; source) cil managed" />
  552. <MemberType>Method</MemberType>
  553. <AssemblyInfo>
  554. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  555. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  556. </AssemblyInfo>
  557. <ReturnValue>
  558. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  559. </ReturnValue>
  560. <Parameters>
  561. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int64&gt;&gt;" RefType="this" />
  562. </Parameters>
  563. <Docs>
  564. <remarks>
  565. <attribution license="cc4" from="Microsoft" modified="false" />
  566. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  567. </remarks>
  568. <summary>
  569. <attribution license="cc4" from="Microsoft" modified="false" />
  570. <para>Computes the average of a sequence of nullable <see cref="T:System.Int64" /> values.</para>
  571. </summary>
  572. <returns>
  573. <attribution license="cc4" from="Microsoft" modified="false" />
  574. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  575. </returns>
  576. <param name="source">
  577. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int64" /> values to calculate the average of.</param>
  578. </Docs>
  579. </Member>
  580. <Member MemberName="Average">
  581. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Average (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;float&gt;&gt; source);" />
  582. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Average(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float32&gt;&gt; source) cil managed" />
  583. <MemberType>Method</MemberType>
  584. <AssemblyInfo>
  585. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  586. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  587. </AssemblyInfo>
  588. <ReturnValue>
  589. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  590. </ReturnValue>
  591. <Parameters>
  592. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Single&gt;&gt;" RefType="this" />
  593. </Parameters>
  594. <Docs>
  595. <remarks>
  596. <attribution license="cc4" from="Microsoft" modified="false" />
  597. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  598. </remarks>
  599. <summary>
  600. <attribution license="cc4" from="Microsoft" modified="false" />
  601. <para>Computes the average of a sequence of nullable <see cref="T:System.Single" /> values.</para>
  602. </summary>
  603. <returns>
  604. <attribution license="cc4" from="Microsoft" modified="false" />
  605. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  606. </returns>
  607. <param name="source">
  608. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Single" /> values to calculate the average of.</param>
  609. </Docs>
  610. </Member>
  611. <Member MemberName="Average">
  612. <MemberSignature Language="C#" Value="public static float Average (this System.Collections.Generic.IEnumerable&lt;float&gt; source);" />
  613. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Average(class System.Collections.Generic.IEnumerable`1&lt;float32&gt; source) cil managed" />
  614. <MemberType>Method</MemberType>
  615. <AssemblyInfo>
  616. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  617. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  618. </AssemblyInfo>
  619. <ReturnValue>
  620. <ReturnType>System.Single</ReturnType>
  621. </ReturnValue>
  622. <Parameters>
  623. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Single&gt;" RefType="this" />
  624. </Parameters>
  625. <Docs>
  626. <remarks>
  627. <attribution license="cc4" from="Microsoft" modified="false" />
  628. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  629. </remarks>
  630. <summary>
  631. <attribution license="cc4" from="Microsoft" modified="false" />
  632. <para>Computes the average of a sequence of <see cref="T:System.Single" /> values.</para>
  633. </summary>
  634. <returns>
  635. <attribution license="cc4" from="Microsoft" modified="false" />
  636. <para>The average of the sequence of values.</para>
  637. </returns>
  638. <param name="source">
  639. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Single" /> values to calculate the average of.</param>
  640. </Docs>
  641. </Member>
  642. <Member MemberName="Average&lt;TSource&gt;">
  643. <MemberSignature Language="C#" Value="public static decimal Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,decimal&gt; selector);" />
  644. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Decimal&gt; selector) cil managed" />
  645. <MemberType>Method</MemberType>
  646. <AssemblyInfo>
  647. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  648. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  649. </AssemblyInfo>
  650. <ReturnValue>
  651. <ReturnType>System.Decimal</ReturnType>
  652. </ReturnValue>
  653. <TypeParameters>
  654. <TypeParameter Name="TSource" />
  655. </TypeParameters>
  656. <Parameters>
  657. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  658. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Decimal&gt;" />
  659. </Parameters>
  660. <Docs>
  661. <remarks>
  662. <attribution license="cc4" from="Microsoft" modified="false" />
  663. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  664. </remarks>
  665. <summary>
  666. <attribution license="cc4" from="Microsoft" modified="false" />
  667. <para>Computes the average of a sequence of <see cref="T:System.Decimal" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  668. </summary>
  669. <returns>
  670. <attribution license="cc4" from="Microsoft" modified="false" />
  671. <para>The average of the sequence of values.</para>
  672. </returns>
  673. <param name="source">
  674. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate an average.</param>
  675. <param name="selector">
  676. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  677. <typeparam name="TSource">
  678. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  679. </Docs>
  680. </Member>
  681. <Member MemberName="Average&lt;TSource&gt;">
  682. <MemberSignature Language="C#" Value="public static double Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,double&gt; selector);" />
  683. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float64&gt; selector) cil managed" />
  684. <MemberType>Method</MemberType>
  685. <AssemblyInfo>
  686. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  687. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  688. </AssemblyInfo>
  689. <ReturnValue>
  690. <ReturnType>System.Double</ReturnType>
  691. </ReturnValue>
  692. <TypeParameters>
  693. <TypeParameter Name="TSource" />
  694. </TypeParameters>
  695. <Parameters>
  696. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  697. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Double&gt;" />
  698. </Parameters>
  699. <Docs>
  700. <remarks>
  701. <attribution license="cc4" from="Microsoft" modified="false" />
  702. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  703. </remarks>
  704. <summary>
  705. <attribution license="cc4" from="Microsoft" modified="false" />
  706. <para>Computes the average of a sequence of <see cref="T:System.Double" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  707. </summary>
  708. <returns>
  709. <attribution license="cc4" from="Microsoft" modified="false" />
  710. <para>The average of the sequence of values.</para>
  711. </returns>
  712. <param name="source">
  713. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  714. <param name="selector">
  715. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  716. <typeparam name="TSource">
  717. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  718. </Docs>
  719. </Member>
  720. <Member MemberName="Average&lt;TSource&gt;">
  721. <MemberSignature Language="C#" Value="public static double Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int&gt; selector);" />
  722. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int32&gt; selector) cil managed" />
  723. <MemberType>Method</MemberType>
  724. <AssemblyInfo>
  725. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  726. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  727. </AssemblyInfo>
  728. <ReturnValue>
  729. <ReturnType>System.Double</ReturnType>
  730. </ReturnValue>
  731. <TypeParameters>
  732. <TypeParameter Name="TSource" />
  733. </TypeParameters>
  734. <Parameters>
  735. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  736. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int32&gt;" />
  737. </Parameters>
  738. <Docs>
  739. <remarks>
  740. <attribution license="cc4" from="Microsoft" modified="false" />
  741. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  742. </remarks>
  743. <summary>
  744. <attribution license="cc4" from="Microsoft" modified="false" />
  745. <para>Computes the average of a sequence of <see cref="T:System.Int32" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  746. </summary>
  747. <returns>
  748. <attribution license="cc4" from="Microsoft" modified="false" />
  749. <para>The average of the sequence of values.</para>
  750. </returns>
  751. <param name="source">
  752. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  753. <param name="selector">
  754. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  755. <typeparam name="TSource">
  756. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  757. </Docs>
  758. </Member>
  759. <Member MemberName="Average&lt;TSource&gt;">
  760. <MemberSignature Language="C#" Value="public static double Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,long&gt; selector);" />
  761. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int64&gt; selector) cil managed" />
  762. <MemberType>Method</MemberType>
  763. <AssemblyInfo>
  764. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  765. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  766. </AssemblyInfo>
  767. <ReturnValue>
  768. <ReturnType>System.Double</ReturnType>
  769. </ReturnValue>
  770. <TypeParameters>
  771. <TypeParameter Name="TSource" />
  772. </TypeParameters>
  773. <Parameters>
  774. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  775. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int64&gt;" />
  776. </Parameters>
  777. <Docs>
  778. <remarks>
  779. <attribution license="cc4" from="Microsoft" modified="false" />
  780. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  781. </remarks>
  782. <summary>
  783. <attribution license="cc4" from="Microsoft" modified="false" />
  784. <para>Computes the average of a sequence of <see cref="T:System.Int64" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  785. </summary>
  786. <returns>
  787. <attribution license="cc4" from="Microsoft" modified="false" />
  788. <para>The average of the sequence of values.</para>
  789. </returns>
  790. <param name="source">
  791. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  792. <param name="selector">
  793. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  794. <typeparam name="TSource">
  795. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of source.</typeparam>
  796. </Docs>
  797. </Member>
  798. <Member MemberName="Average&lt;TSource&gt;">
  799. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;decimal&gt;&gt; selector);" />
  800. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; selector) cil managed" />
  801. <MemberType>Method</MemberType>
  802. <AssemblyInfo>
  803. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  804. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  805. </AssemblyInfo>
  806. <ReturnValue>
  807. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  808. </ReturnValue>
  809. <TypeParameters>
  810. <TypeParameter Name="TSource" />
  811. </TypeParameters>
  812. <Parameters>
  813. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  814. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Decimal&gt;&gt;" />
  815. </Parameters>
  816. <Docs>
  817. <remarks>
  818. <attribution license="cc4" from="Microsoft" modified="false" />
  819. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  820. </remarks>
  821. <summary>
  822. <attribution license="cc4" from="Microsoft" modified="false" />
  823. <para>Computes the average of a sequence of nullable <see cref="T:System.Decimal" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  824. </summary>
  825. <returns>
  826. <attribution license="cc4" from="Microsoft" modified="false" />
  827. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  828. </returns>
  829. <param name="source">
  830. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  831. <param name="selector">
  832. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  833. <typeparam name="TSource">
  834. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  835. </Docs>
  836. </Member>
  837. <Member MemberName="Average&lt;TSource&gt;">
  838. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;double&gt;&gt; selector);" />
  839. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float64&gt;&gt; selector) cil managed" />
  840. <MemberType>Method</MemberType>
  841. <AssemblyInfo>
  842. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  843. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  844. </AssemblyInfo>
  845. <ReturnValue>
  846. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  847. </ReturnValue>
  848. <TypeParameters>
  849. <TypeParameter Name="TSource" />
  850. </TypeParameters>
  851. <Parameters>
  852. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  853. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Double&gt;&gt;" />
  854. </Parameters>
  855. <Docs>
  856. <remarks>
  857. <attribution license="cc4" from="Microsoft" modified="false" />
  858. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  859. </remarks>
  860. <summary>
  861. <attribution license="cc4" from="Microsoft" modified="false" />
  862. <para>Computes the average of a sequence of nullable <see cref="T:System.Double" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  863. </summary>
  864. <returns>
  865. <attribution license="cc4" from="Microsoft" modified="false" />
  866. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  867. </returns>
  868. <param name="source">
  869. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  870. <param name="selector">
  871. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  872. <typeparam name="TSource">
  873. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  874. </Docs>
  875. </Member>
  876. <Member MemberName="Average&lt;TSource&gt;">
  877. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;int&gt;&gt; selector);" />
  878. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int32&gt;&gt; selector) cil managed" />
  879. <MemberType>Method</MemberType>
  880. <AssemblyInfo>
  881. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  882. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  883. </AssemblyInfo>
  884. <ReturnValue>
  885. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  886. </ReturnValue>
  887. <TypeParameters>
  888. <TypeParameter Name="TSource" />
  889. </TypeParameters>
  890. <Parameters>
  891. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  892. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int32&gt;&gt;" />
  893. </Parameters>
  894. <Docs>
  895. <remarks>
  896. <attribution license="cc4" from="Microsoft" modified="false" />
  897. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  898. </remarks>
  899. <summary>
  900. <attribution license="cc4" from="Microsoft" modified="false" />
  901. <para>Computes the average of a sequence of nullable <see cref="T:System.Int32" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  902. </summary>
  903. <returns>
  904. <attribution license="cc4" from="Microsoft" modified="false" />
  905. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  906. </returns>
  907. <param name="source">
  908. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  909. <param name="selector">
  910. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  911. <typeparam name="TSource">
  912. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  913. </Docs>
  914. </Member>
  915. <Member MemberName="Average&lt;TSource&gt;">
  916. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;long&gt;&gt; selector);" />
  917. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int64&gt;&gt; selector) cil managed" />
  918. <MemberType>Method</MemberType>
  919. <AssemblyInfo>
  920. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  921. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  922. </AssemblyInfo>
  923. <ReturnValue>
  924. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  925. </ReturnValue>
  926. <TypeParameters>
  927. <TypeParameter Name="TSource" />
  928. </TypeParameters>
  929. <Parameters>
  930. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  931. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int64&gt;&gt;" />
  932. </Parameters>
  933. <Docs>
  934. <remarks>
  935. <attribution license="cc4" from="Microsoft" modified="false" />
  936. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  937. </remarks>
  938. <summary>
  939. <attribution license="cc4" from="Microsoft" modified="false" />
  940. <para>Computes the average of a sequence of nullable <see cref="T:System.Int64" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  941. </summary>
  942. <returns>
  943. <attribution license="cc4" from="Microsoft" modified="false" />
  944. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  945. </returns>
  946. <param name="source">
  947. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  948. <param name="selector">
  949. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  950. <typeparam name="TSource">
  951. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  952. </Docs>
  953. </Member>
  954. <Member MemberName="Average&lt;TSource&gt;">
  955. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;float&gt;&gt; selector);" />
  956. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float32&gt;&gt; selector) cil managed" />
  957. <MemberType>Method</MemberType>
  958. <AssemblyInfo>
  959. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  960. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  961. </AssemblyInfo>
  962. <ReturnValue>
  963. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  964. </ReturnValue>
  965. <TypeParameters>
  966. <TypeParameter Name="TSource" />
  967. </TypeParameters>
  968. <Parameters>
  969. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  970. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Single&gt;&gt;" />
  971. </Parameters>
  972. <Docs>
  973. <remarks>
  974. <attribution license="cc4" from="Microsoft" modified="false" />
  975. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  976. </remarks>
  977. <summary>
  978. <attribution license="cc4" from="Microsoft" modified="false" />
  979. <para>Computes the average of a sequence of nullable <see cref="T:System.Single" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  980. </summary>
  981. <returns>
  982. <attribution license="cc4" from="Microsoft" modified="false" />
  983. <para>The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.</para>
  984. </returns>
  985. <param name="source">
  986. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  987. <param name="selector">
  988. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  989. <typeparam name="TSource">
  990. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  991. </Docs>
  992. </Member>
  993. <Member MemberName="Average&lt;TSource&gt;">
  994. <MemberSignature Language="C#" Value="public static float Average&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,float&gt; selector);" />
  995. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Average&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float32&gt; selector) cil managed" />
  996. <MemberType>Method</MemberType>
  997. <AssemblyInfo>
  998. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  999. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1000. </AssemblyInfo>
  1001. <ReturnValue>
  1002. <ReturnType>System.Single</ReturnType>
  1003. </ReturnValue>
  1004. <TypeParameters>
  1005. <TypeParameter Name="TSource" />
  1006. </TypeParameters>
  1007. <Parameters>
  1008. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1009. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Single&gt;" />
  1010. </Parameters>
  1011. <Docs>
  1012. <remarks>
  1013. <attribution license="cc4" from="Microsoft" modified="false" />
  1014. <para>In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Average" />.</para>
  1015. </remarks>
  1016. <summary>
  1017. <attribution license="cc4" from="Microsoft" modified="false" />
  1018. <para>Computes the average of a sequence of <see cref="T:System.Single" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  1019. </summary>
  1020. <returns>
  1021. <attribution license="cc4" from="Microsoft" modified="false" />
  1022. <para>The average of the sequence of values.</para>
  1023. </returns>
  1024. <param name="source">
  1025. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to calculate the average of.</param>
  1026. <param name="selector">
  1027. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  1028. <typeparam name="TSource">
  1029. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1030. </Docs>
  1031. </Member>
  1032. <Member MemberName="Cast&lt;TResult&gt;">
  1033. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Cast&lt;TResult&gt; (this System.Collections.IEnumerable source);" />
  1034. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Cast&lt;TResult&gt;(class System.Collections.IEnumerable source) cil managed" />
  1035. <MemberType>Method</MemberType>
  1036. <AssemblyInfo>
  1037. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1038. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1039. </AssemblyInfo>
  1040. <ReturnValue>
  1041. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  1042. </ReturnValue>
  1043. <TypeParameters>
  1044. <TypeParameter Name="TResult" />
  1045. </TypeParameters>
  1046. <Parameters>
  1047. <Parameter Name="source" Type="System.Collections.IEnumerable" RefType="this" />
  1048. </Parameters>
  1049. <Docs>
  1050. <remarks>
  1051. <attribution license="cc4" from="Microsoft" modified="false" />
  1052. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1053. <para>The <see cref="M:System.Linq.Enumerable.Cast``1(System.Collections.IEnumerable)" /> method enables the standard query operators to be invoked on non-generic collections by supplying the necessary type information. For example, <see cref="T:System.Collections.ArrayList" /> does not implement <see cref="T:System.Collections.Generic.IEnumerable`1" />, but by calling <see cref="M:System.Linq.Enumerable.Cast``1(System.Collections.IEnumerable)" /> on the <see cref="T:System.Collections.ArrayList" /> object, the standard query operators can then be used to query the sequence.</para>
  1054. <para>If an element cannot be cast to type <paramref name="TResult" />, this method will throw an exception. To obtain only those elements that can be cast to type <paramref name="TResult" />, use the <see cref="M:System.Linq.Enumerable.OfType``1(System.Collections.IEnumerable)" /> method instead of <see cref="M:System.Linq.Enumerable.Cast``1(System.Collections.IEnumerable)" />.</para>
  1055. <para>In a query expression, an explicitly typed iteration variable translates to an invocation of <see cref="M:System.Linq.Enumerable.Cast``1(System.Collections.IEnumerable)" />. This example shows the syntax for an explicitly typed range variable.</para>
  1056. <code>from int i in objects</code>
  1057. <code>From i As Integer In objects</code>
  1058. </remarks>
  1059. <summary>
  1060. <attribution license="cc4" from="Microsoft" modified="false" />
  1061. <para>Casts the elements of an <see cref="T:System.Collections.IEnumerable" /> to the specified type.</para>
  1062. </summary>
  1063. <returns>
  1064. <attribution license="cc4" from="Microsoft" modified="false" />
  1065. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains each element of the source sequence cast to the specified type.</para>
  1066. </returns>
  1067. <param name="source">
  1068. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.IEnumerable" /> that contains the elements to be cast to type <paramref name="TResult" />.</param>
  1069. <typeparam name="TResult">
  1070. <attribution license="cc4" from="Microsoft" modified="false" />The type to cast the elements of <paramref name="source" /> to.</typeparam>
  1071. </Docs>
  1072. </Member>
  1073. <Member MemberName="Concat&lt;TSource&gt;">
  1074. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Concat&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second);" />
  1075. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Concat&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second) cil managed" />
  1076. <MemberType>Method</MemberType>
  1077. <AssemblyInfo>
  1078. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1079. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1080. </AssemblyInfo>
  1081. <ReturnValue>
  1082. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  1083. </ReturnValue>
  1084. <TypeParameters>
  1085. <TypeParameter Name="TSource" />
  1086. </TypeParameters>
  1087. <Parameters>
  1088. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1089. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  1090. </Parameters>
  1091. <Docs>
  1092. <remarks>
  1093. <attribution license="cc4" from="Microsoft" modified="false" />
  1094. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1095. <para>The <see cref="M:System.Linq.Enumerable.Concat``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method differs from the <see cref="M:System.Linq.Enumerable.Union``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method because the <see cref="M:System.Linq.Enumerable.Concat``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method returns all the original elements in the input sequences. The <see cref="M:System.Linq.Enumerable.Union``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method returns only unique elements.</para>
  1096. </remarks>
  1097. <summary>
  1098. <attribution license="cc4" from="Microsoft" modified="false" />
  1099. <para>Concatenates two sequences.</para>
  1100. </summary>
  1101. <returns>
  1102. <attribution license="cc4" from="Microsoft" modified="false" />
  1103. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the concatenated elements of the two input sequences.</para>
  1104. </returns>
  1105. <param name="first">
  1106. <attribution license="cc4" from="Microsoft" modified="false" />The first sequence to concatenate.</param>
  1107. <param name="second">
  1108. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to concatenate to the first sequence.</param>
  1109. <typeparam name="TSource">
  1110. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  1111. </Docs>
  1112. </Member>
  1113. <Member MemberName="Contains&lt;TSource&gt;">
  1114. <MemberSignature Language="C#" Value="public static bool Contains&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, TSource value);" />
  1115. <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Contains&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, !!TSource value) cil managed" />
  1116. <MemberType>Method</MemberType>
  1117. <AssemblyInfo>
  1118. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1119. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1120. </AssemblyInfo>
  1121. <ReturnValue>
  1122. <ReturnType>System.Boolean</ReturnType>
  1123. </ReturnValue>
  1124. <TypeParameters>
  1125. <TypeParameter Name="TSource" />
  1126. </TypeParameters>
  1127. <Parameters>
  1128. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1129. <Parameter Name="value" Type="TSource" />
  1130. </Parameters>
  1131. <Docs>
  1132. <remarks>
  1133. <attribution license="cc4" from="Microsoft" modified="false" />
  1134. <para>If the type of <paramref name="source" /> implements <see cref="T:System.Collections.Generic.ICollection`1" />, the <unmanagedCodeEntityReference>Contains</unmanagedCodeEntityReference> method in that implementation is invoked to obtain the result. Otherwise, this method determines whether <paramref name="source" /> contains the specified element.</para>
  1135. <para>Enumeration is terminated as soon as a matching element is found.</para>
  1136. <para>Elements are compared to the specified value by using the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />.</para>
  1137. </remarks>
  1138. <summary>
  1139. <attribution license="cc4" from="Microsoft" modified="false" />
  1140. <para>Determines whether a sequence contains a specified element by using the default equality comparer.</para>
  1141. </summary>
  1142. <returns>
  1143. <attribution license="cc4" from="Microsoft" modified="false" />
  1144. <para>true if the source sequence contains an element that has the specified value; otherwise, false.</para>
  1145. </returns>
  1146. <param name="source">
  1147. <attribution license="cc4" from="Microsoft" modified="false" />A sequence in which to locate a value.</param>
  1148. <param name="value">
  1149. <attribution license="cc4" from="Microsoft" modified="false" />The value to locate in the sequence.</param>
  1150. <typeparam name="TSource">
  1151. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1152. </Docs>
  1153. </Member>
  1154. <Member MemberName="Contains&lt;TSource&gt;">
  1155. <MemberSignature Language="C#" Value="public static bool Contains&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, TSource value, System.Collections.Generic.IEqualityComparer&lt;TSource&gt; comparer);" />
  1156. <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Contains&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, !!TSource value, class System.Collections.Generic.IEqualityComparer`1&lt;!!TSource&gt; comparer) cil managed" />
  1157. <MemberType>Method</MemberType>
  1158. <AssemblyInfo>
  1159. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1160. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1161. </AssemblyInfo>
  1162. <ReturnValue>
  1163. <ReturnType>System.Boolean</ReturnType>
  1164. </ReturnValue>
  1165. <TypeParameters>
  1166. <TypeParameter Name="TSource" />
  1167. </TypeParameters>
  1168. <Parameters>
  1169. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1170. <Parameter Name="value" Type="TSource" />
  1171. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TSource&gt;" />
  1172. </Parameters>
  1173. <Docs>
  1174. <remarks>
  1175. <attribution license="cc4" from="Microsoft" modified="false" />
  1176. <para>Enumeration is terminated as soon as a matching element is found.</para>
  1177. <para>If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare elements to the specified value.</para>
  1178. </remarks>
  1179. <summary>
  1180. <attribution license="cc4" from="Microsoft" modified="false" />
  1181. <para>Determines whether a sequence contains a specified element by using a specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" />.</para>
  1182. </summary>
  1183. <returns>
  1184. <attribution license="cc4" from="Microsoft" modified="false" />
  1185. <para>true if the source sequence contains an element that has the specified value; otherwise, false.</para>
  1186. </returns>
  1187. <param name="source">
  1188. <attribution license="cc4" from="Microsoft" modified="false" />A sequence in which to locate a value.</param>
  1189. <param name="value">
  1190. <attribution license="cc4" from="Microsoft" modified="false" />The value to locate in the sequence.</param>
  1191. <param name="comparer">
  1192. <attribution license="cc4" from="Microsoft" modified="false" />An equality comparer to compare values.</param>
  1193. <typeparam name="TSource">
  1194. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1195. </Docs>
  1196. </Member>
  1197. <Member MemberName="Count&lt;TSource&gt;">
  1198. <MemberSignature Language="C#" Value="public static int Count&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  1199. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Count&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  1200. <MemberType>Method</MemberType>
  1201. <AssemblyInfo>
  1202. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1203. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1204. </AssemblyInfo>
  1205. <ReturnValue>
  1206. <ReturnType>System.Int32</ReturnType>
  1207. </ReturnValue>
  1208. <TypeParameters>
  1209. <TypeParameter Name="TSource" />
  1210. </TypeParameters>
  1211. <Parameters>
  1212. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1213. </Parameters>
  1214. <Docs>
  1215. <remarks>
  1216. <attribution license="cc4" from="Microsoft" modified="false" />
  1217. <para>If the type of <paramref name="source" /> implements <see cref="T:System.Collections.Generic.ICollection`1" />, that implementation is used to obtain the count of elements. Otherwise, this method determines the count.</para>
  1218. <para>Use the <see cref="M:System.Linq.Enumerable.LongCount``1(System.Collections.Generic.IEnumerable{``0})" /> method when you expect and want to allow the result to be greater than <see cref="F:System.Int32.MaxValue" />.</para>
  1219. <para>In vbprvb query expression syntax, an Aggregate Into Count() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Count" />.</para>
  1220. </remarks>
  1221. <summary>
  1222. <attribution license="cc4" from="Microsoft" modified="false" />
  1223. <para>Returns the number of elements in a sequence.</para>
  1224. </summary>
  1225. <returns>
  1226. <attribution license="cc4" from="Microsoft" modified="false" />
  1227. <para>The number of elements in the input sequence.</para>
  1228. </returns>
  1229. <param name="source">
  1230. <attribution license="cc4" from="Microsoft" modified="false" />A sequence that contains elements to be counted.</param>
  1231. <typeparam name="TSource">
  1232. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1233. </Docs>
  1234. </Member>
  1235. <Member MemberName="Count&lt;TSource&gt;">
  1236. <MemberSignature Language="C#" Value="public static int Count&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  1237. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Count&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  1238. <MemberType>Method</MemberType>
  1239. <AssemblyInfo>
  1240. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1241. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1242. </AssemblyInfo>
  1243. <ReturnValue>
  1244. <ReturnType>System.Int32</ReturnType>
  1245. </ReturnValue>
  1246. <TypeParameters>
  1247. <TypeParameter Name="TSource" />
  1248. </TypeParameters>
  1249. <Parameters>
  1250. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1251. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  1252. </Parameters>
  1253. <Docs>
  1254. <remarks>
  1255. <attribution license="cc4" from="Microsoft" modified="false" />
  1256. <para>If the type of <paramref name="source" /> implements <see cref="T:System.Collections.Generic.ICollection`1" />, that implementation is used to obtain the count of elements. Otherwise, this method determines the count.</para>
  1257. <para>You should use the <see cref="M:System.Linq.Enumerable.LongCount``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method when you expect and want to allow the result to be greater than <see cref="F:System.Int32.MaxValue" />.</para>
  1258. <para>In vbprvb query expression syntax, an Aggregate Into Count() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Count" />.</para>
  1259. </remarks>
  1260. <summary>
  1261. <attribution license="cc4" from="Microsoft" modified="false" />
  1262. <para>Returns a number that represents how many elements in the specified sequence satisfy a condition.</para>
  1263. </summary>
  1264. <returns>
  1265. <attribution license="cc4" from="Microsoft" modified="false" />
  1266. <para>A number that represents how many elements in the sequence satisfy the condition in the predicate function.</para>
  1267. </returns>
  1268. <param name="source">
  1269. <attribution license="cc4" from="Microsoft" modified="false" />A sequence that contains elements to be tested and counted.</param>
  1270. <param name="predicate">
  1271. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  1272. <typeparam name="TSource">
  1273. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1274. </Docs>
  1275. </Member>
  1276. <Member MemberName="DefaultIfEmpty&lt;TSource&gt;">
  1277. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; DefaultIfEmpty&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  1278. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; DefaultIfEmpty&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  1279. <MemberType>Method</MemberType>
  1280. <AssemblyInfo>
  1281. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1282. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1283. </AssemblyInfo>
  1284. <ReturnValue>
  1285. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  1286. </ReturnValue>
  1287. <TypeParameters>
  1288. <TypeParameter Name="TSource" />
  1289. </TypeParameters>
  1290. <Parameters>
  1291. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1292. </Parameters>
  1293. <Docs>
  1294. <remarks>
  1295. <attribution license="cc4" from="Microsoft" modified="false" />
  1296. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1297. <para>The default value for reference and nullable types is null.</para>
  1298. <para>This method can be used to produce a left outer join when it is combined with the <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" />) method.</para>
  1299. </remarks>
  1300. <summary>
  1301. <attribution license="cc4" from="Microsoft" modified="false" />
  1302. <para>Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.</para>
  1303. </summary>
  1304. <returns>
  1305. <attribution license="cc4" from="Microsoft" modified="false" />
  1306. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> object that contains the default value for the <paramref name="TSource" /> type if <paramref name="source" /> is empty; otherwise, <paramref name="source" />.</para>
  1307. </returns>
  1308. <param name="source">
  1309. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to return a default value for if it is empty.</param>
  1310. <typeparam name="TSource">
  1311. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1312. </Docs>
  1313. </Member>
  1314. <Member MemberName="DefaultIfEmpty&lt;TSource&gt;">
  1315. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; DefaultIfEmpty&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, TSource defaultValue);" />
  1316. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; DefaultIfEmpty&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, !!TSource defaultValue) cil managed" />
  1317. <MemberType>Method</MemberType>
  1318. <AssemblyInfo>
  1319. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1320. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1321. </AssemblyInfo>
  1322. <ReturnValue>
  1323. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  1324. </ReturnValue>
  1325. <TypeParameters>
  1326. <TypeParameter Name="TSource" />
  1327. </TypeParameters>
  1328. <Parameters>
  1329. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1330. <Parameter Name="defaultValue" Type="TSource" />
  1331. </Parameters>
  1332. <Docs>
  1333. <remarks>
  1334. <attribution license="cc4" from="Microsoft" modified="false" />
  1335. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1336. <para>This method can be used to produce a left outer join when it is combined with the <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" />) method.</para>
  1337. </remarks>
  1338. <summary>
  1339. <attribution license="cc4" from="Microsoft" modified="false" />
  1340. <para>Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.</para>
  1341. </summary>
  1342. <returns>
  1343. <attribution license="cc4" from="Microsoft" modified="false" />
  1344. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains <paramref name="defaultValue" /> if <paramref name="source" /> is empty; otherwise, <paramref name="source" />.</para>
  1345. </returns>
  1346. <param name="source">
  1347. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to return the specified value for if it is empty.</param>
  1348. <param name="defaultValue">
  1349. <attribution license="cc4" from="Microsoft" modified="false" />The value to return if the sequence is empty.</param>
  1350. <typeparam name="TSource">
  1351. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1352. </Docs>
  1353. </Member>
  1354. <Member MemberName="Distinct&lt;TSource&gt;">
  1355. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Distinct&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  1356. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Distinct&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  1357. <MemberType>Method</MemberType>
  1358. <AssemblyInfo>
  1359. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1360. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1361. </AssemblyInfo>
  1362. <ReturnValue>
  1363. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  1364. </ReturnValue>
  1365. <TypeParameters>
  1366. <TypeParameter Name="TSource" />
  1367. </TypeParameters>
  1368. <Parameters>
  1369. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1370. </Parameters>
  1371. <Docs>
  1372. <remarks>
  1373. <attribution license="cc4" from="Microsoft" modified="false" />
  1374. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1375. <para>The <see cref="M:System.Linq.Enumerable.Distinct``1(System.Collections.Generic.IEnumerable{``0})" /> method returns an unordered sequence that contains no duplicate values. It uses the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, to compare values.</para>
  1376. <para>In vbprvb query expression syntax, a Distinct clause translates to an invocation of <see cref="M:System.Linq.Enumerable.Distinct``1(System.Collections.Generic.IEnumerable{``0})" />.</para>
  1377. <para>The default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values of the types that implement the <see cref="T:System.IEquatable`1" /> generic interface. To compare a custom data type, you need to implement this interface and provide your own <see cref="M:System.Object.GetHashCode" /> and <see cref="M:System.Object.Equals(System.Object)" /> methods for the type.</para>
  1378. <para>For an example that uses <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to define a custom comparer, see <see cref="M:System.Linq.Enumerable.Distinct``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEqualityComparer{``0})" />.</para>
  1379. </remarks>
  1380. <summary>
  1381. <attribution license="cc4" from="Microsoft" modified="false" />
  1382. <para>Returns distinct elements from a sequence by using the default equality comparer to compare values.</para>
  1383. </summary>
  1384. <returns>
  1385. <attribution license="cc4" from="Microsoft" modified="false" />
  1386. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains distinct elements from the source sequence.</para>
  1387. </returns>
  1388. <param name="source">
  1389. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to remove duplicate elements from.</param>
  1390. <typeparam name="TSource">
  1391. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1392. </Docs>
  1393. </Member>
  1394. <Member MemberName="Distinct&lt;TSource&gt;">
  1395. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Distinct&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, System.Collections.Generic.IEqualityComparer&lt;TSource&gt; comparer);" />
  1396. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Distinct&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Collections.Generic.IEqualityComparer`1&lt;!!TSource&gt; comparer) cil managed" />
  1397. <MemberType>Method</MemberType>
  1398. <AssemblyInfo>
  1399. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1400. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1401. </AssemblyInfo>
  1402. <ReturnValue>
  1403. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  1404. </ReturnValue>
  1405. <TypeParameters>
  1406. <TypeParameter Name="TSource" />
  1407. </TypeParameters>
  1408. <Parameters>
  1409. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1410. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TSource&gt;" />
  1411. </Parameters>
  1412. <Docs>
  1413. <remarks>
  1414. <attribution license="cc4" from="Microsoft" modified="false" />
  1415. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1416. <para>The <see cref="M:System.Linq.Enumerable.Distinct``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEqualityComparer{``0})" /> method returns an unordered sequence that contains no duplicate values. If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values.</para>
  1417. </remarks>
  1418. <summary>
  1419. <attribution license="cc4" from="Microsoft" modified="false" />
  1420. <para>Returns distinct elements from a sequence by using a specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare values.</para>
  1421. </summary>
  1422. <returns>
  1423. <attribution license="cc4" from="Microsoft" modified="false" />
  1424. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains distinct elements from the source sequence.</para>
  1425. </returns>
  1426. <param name="source">
  1427. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to remove duplicate elements from.</param>
  1428. <param name="comparer">
  1429. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare values.</param>
  1430. <typeparam name="TSource">
  1431. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1432. </Docs>
  1433. </Member>
  1434. <Member MemberName="ElementAt&lt;TSource&gt;">
  1435. <MemberSignature Language="C#" Value="public static TSource ElementAt&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, int index);" />
  1436. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource ElementAt&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, int32 index) cil managed" />
  1437. <MemberType>Method</MemberType>
  1438. <AssemblyInfo>
  1439. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1440. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1441. </AssemblyInfo>
  1442. <ReturnValue>
  1443. <ReturnType>TSource</ReturnType>
  1444. </ReturnValue>
  1445. <TypeParameters>
  1446. <TypeParameter Name="TSource" />
  1447. </TypeParameters>
  1448. <Parameters>
  1449. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1450. <Parameter Name="index" Type="System.Int32" />
  1451. </Parameters>
  1452. <Docs>
  1453. <remarks>
  1454. <attribution license="cc4" from="Microsoft" modified="false" />
  1455. <para>If the type of <paramref name="source" /> implements <see cref="T:System.Collections.Generic.IList`1" />, that implementation is used to obtain the element at the specified index. Otherwise, this method obtains the specified element.</para>
  1456. <para>This method throws an exception if <paramref name="index" /> is out of range. To instead return a default value when the specified index is out of range, use the <see cref="M:System.Linq.Enumerable.ElementAtOrDefault``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" /> method.</para>
  1457. </remarks>
  1458. <summary>
  1459. <attribution license="cc4" from="Microsoft" modified="false" />
  1460. <para>Returns the element at a specified index in a sequence.</para>
  1461. </summary>
  1462. <returns>
  1463. <attribution license="cc4" from="Microsoft" modified="false" />
  1464. <para>The element at the specified position in the source sequence.</para>
  1465. </returns>
  1466. <param name="source">
  1467. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return an element from.</param>
  1468. <param name="index">
  1469. <attribution license="cc4" from="Microsoft" modified="false" />The zero-based index of the element to retrieve.</param>
  1470. <typeparam name="TSource">
  1471. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1472. </Docs>
  1473. </Member>
  1474. <Member MemberName="ElementAtOrDefault&lt;TSource&gt;">
  1475. <MemberSignature Language="C#" Value="public static TSource ElementAtOrDefault&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, int index);" />
  1476. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource ElementAtOrDefault&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, int32 index) cil managed" />
  1477. <MemberType>Method</MemberType>
  1478. <AssemblyInfo>
  1479. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1480. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1481. </AssemblyInfo>
  1482. <ReturnValue>
  1483. <ReturnType>TSource</ReturnType>
  1484. </ReturnValue>
  1485. <TypeParameters>
  1486. <TypeParameter Name="TSource" />
  1487. </TypeParameters>
  1488. <Parameters>
  1489. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1490. <Parameter Name="index" Type="System.Int32" />
  1491. </Parameters>
  1492. <Docs>
  1493. <remarks>
  1494. <attribution license="cc4" from="Microsoft" modified="false" />
  1495. <para>If the type of <paramref name="source" /> implements <see cref="T:System.Collections.Generic.IList`1" />, that implementation is used to obtain the element at the specified index. Otherwise, this method obtains the specified element.</para>
  1496. <para>The default value for reference and nullable types is null.</para>
  1497. </remarks>
  1498. <summary>
  1499. <attribution license="cc4" from="Microsoft" modified="false" />
  1500. <para>Returns the element at a specified index in a sequence or a default value if the index is out of range.</para>
  1501. </summary>
  1502. <returns>
  1503. <attribution license="cc4" from="Microsoft" modified="false" />
  1504. <para>default(<paramref name="TSource" />) if the index is outside the bounds of the source sequence; otherwise, the element at the specified position in the source sequence.</para>
  1505. </returns>
  1506. <param name="source">
  1507. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return an element from.</param>
  1508. <param name="index">
  1509. <attribution license="cc4" from="Microsoft" modified="false" />The zero-based index of the element to retrieve.</param>
  1510. <typeparam name="TSource">
  1511. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1512. </Docs>
  1513. </Member>
  1514. <Member MemberName="Empty&lt;TResult&gt;">
  1515. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Empty&lt;TResult&gt; ();" />
  1516. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Empty&lt;TResult&gt;() cil managed" />
  1517. <MemberType>Method</MemberType>
  1518. <AssemblyInfo>
  1519. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1520. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1521. </AssemblyInfo>
  1522. <ReturnValue>
  1523. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  1524. </ReturnValue>
  1525. <TypeParameters>
  1526. <TypeParameter Name="TResult" />
  1527. </TypeParameters>
  1528. <Parameters />
  1529. <Docs>
  1530. <remarks>
  1531. <attribution license="cc4" from="Microsoft" modified="false" />
  1532. <para>The <see cref="M:System.Linq.Enumerable.Empty``1" /> method caches an empty sequence of type <paramref name="TResult" />. When the object it returns is enumerated, it yields no elements.</para>
  1533. <para>In some cases, this method is useful for passing an empty sequence to a user-defined method that takes an <see cref="T:System.Collections.Generic.IEnumerable`1" />. It can also be used to generate a neutral element for methods such as <see cref="M:System.Linq.Enumerable.Union``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" />. See the Example section for an example of this use of <see cref="M:System.Linq.Enumerable.Empty``1" />.</para>
  1534. </remarks>
  1535. <summary>
  1536. <attribution license="cc4" from="Microsoft" modified="false" />
  1537. <para>Returns an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> that has the specified type argument.</para>
  1538. </summary>
  1539. <returns>
  1540. <attribution license="cc4" from="Microsoft" modified="false" />
  1541. <para>An empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose type argument is <paramref name="TResult" />.</para>
  1542. </returns>
  1543. <typeparam name="TResult">
  1544. <attribution license="cc4" from="Microsoft" modified="false" />The type to assign to the type parameter of the returned generic <see cref="T:System.Collections.Generic.IEnumerable`1" />.</typeparam>
  1545. </Docs>
  1546. </Member>
  1547. <Member MemberName="Except&lt;TSource&gt;">
  1548. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Except&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second);" />
  1549. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Except&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second) cil managed" />
  1550. <MemberType>Method</MemberType>
  1551. <AssemblyInfo>
  1552. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1553. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1554. </AssemblyInfo>
  1555. <ReturnValue>
  1556. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  1557. </ReturnValue>
  1558. <TypeParameters>
  1559. <TypeParameter Name="TSource" />
  1560. </TypeParameters>
  1561. <Parameters>
  1562. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1563. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  1564. </Parameters>
  1565. <Docs>
  1566. <remarks>
  1567. <attribution license="cc4" from="Microsoft" modified="false" />
  1568. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1569. <para>The set difference of two sets is defined as the members of the first set that do not appear in the second set.</para>
  1570. <block subset="none" type="note">
  1571. <para>This method returns those elements in <paramref name="first" /> that do not appear in <paramref name="second" />. It does not also return those elements in <paramref name="second" /> that do not appear in <paramref name="first" />.</para>
  1572. </block>
  1573. <para>The default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values of the types that implement the <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> generic interface. To compare a custom data type, you need to implement this interface and provide your own <see cref="M:System.Object.GetHashCode" /> and <see cref="M:System.Object.Equals(System.Object)" /> methods for the type.</para>
  1574. </remarks>
  1575. <summary>
  1576. <attribution license="cc4" from="Microsoft" modified="false" />
  1577. <para>Produces the set difference of two sequences by using the default equality comparer to compare values.</para>
  1578. </summary>
  1579. <returns>
  1580. <attribution license="cc4" from="Microsoft" modified="false" />
  1581. <para>A sequence that contains the set difference of the elements of two sequences.</para>
  1582. </returns>
  1583. <param name="first">
  1584. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements that are not also in <paramref name="second" /> will be returned.</param>
  1585. <param name="second">
  1586. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.</param>
  1587. <typeparam name="TSource">
  1588. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  1589. </Docs>
  1590. </Member>
  1591. <Member MemberName="Except&lt;TSource&gt;">
  1592. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Except&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second, System.Collections.Generic.IEqualityComparer&lt;TSource&gt; comparer);" />
  1593. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Except&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second, class System.Collections.Generic.IEqualityComparer`1&lt;!!TSource&gt; comparer) cil managed" />
  1594. <MemberType>Method</MemberType>
  1595. <AssemblyInfo>
  1596. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1597. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1598. </AssemblyInfo>
  1599. <ReturnValue>
  1600. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  1601. </ReturnValue>
  1602. <TypeParameters>
  1603. <TypeParameter Name="TSource" />
  1604. </TypeParameters>
  1605. <Parameters>
  1606. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1607. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  1608. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TSource&gt;" />
  1609. </Parameters>
  1610. <Docs>
  1611. <remarks>
  1612. <attribution license="cc4" from="Microsoft" modified="false" />
  1613. <para>If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values.</para>
  1614. </remarks>
  1615. <summary>
  1616. <attribution license="cc4" from="Microsoft" modified="false" />
  1617. <para>Produces the set difference of two sequences by using the specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare values.</para>
  1618. </summary>
  1619. <returns>
  1620. <attribution license="cc4" from="Microsoft" modified="false" />
  1621. <para>A sequence that contains the set difference of the elements of two sequences.</para>
  1622. </returns>
  1623. <param name="first">
  1624. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements that are not also in <paramref name="second" /> will be returned.</param>
  1625. <param name="second">
  1626. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.</param>
  1627. <param name="comparer">
  1628. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare values.</param>
  1629. <typeparam name="TSource">
  1630. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  1631. </Docs>
  1632. </Member>
  1633. <Member MemberName="First&lt;TSource&gt;">
  1634. <MemberSignature Language="C#" Value="public static TSource First&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  1635. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource First&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  1636. <MemberType>Method</MemberType>
  1637. <AssemblyInfo>
  1638. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1639. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1640. </AssemblyInfo>
  1641. <ReturnValue>
  1642. <ReturnType>TSource</ReturnType>
  1643. </ReturnValue>
  1644. <TypeParameters>
  1645. <TypeParameter Name="TSource" />
  1646. </TypeParameters>
  1647. <Parameters>
  1648. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1649. </Parameters>
  1650. <Docs>
  1651. <remarks>
  1652. <attribution license="cc4" from="Microsoft" modified="false" />
  1653. <para>The <see cref="M:System.Linq.Enumerable.First``1(System.Collections.Generic.IEnumerable{``0})" /> method throws an exception if <paramref name="source" /> contains no elements. To instead return a default value when the source sequence is empty, use the <see cref="M:System.Linq.Enumerable.FirstOrDefault``1(System.Collections.Generic.IEnumerable{``0})" /> method.</para>
  1654. </remarks>
  1655. <summary>
  1656. <attribution license="cc4" from="Microsoft" modified="false" />
  1657. <para>Returns the first element of a sequence.</para>
  1658. </summary>
  1659. <returns>
  1660. <attribution license="cc4" from="Microsoft" modified="false" />
  1661. <para>The first element in the specified sequence.</para>
  1662. </returns>
  1663. <param name="source">
  1664. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return the first element of.</param>
  1665. <typeparam name="TSource">
  1666. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1667. </Docs>
  1668. </Member>
  1669. <Member MemberName="First&lt;TSource&gt;">
  1670. <MemberSignature Language="C#" Value="public static TSource First&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  1671. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource First&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  1672. <MemberType>Method</MemberType>
  1673. <AssemblyInfo>
  1674. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1675. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1676. </AssemblyInfo>
  1677. <ReturnValue>
  1678. <ReturnType>TSource</ReturnType>
  1679. </ReturnValue>
  1680. <TypeParameters>
  1681. <TypeParameter Name="TSource" />
  1682. </TypeParameters>
  1683. <Parameters>
  1684. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1685. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  1686. </Parameters>
  1687. <Docs>
  1688. <remarks>
  1689. <attribution license="cc4" from="Microsoft" modified="false" />
  1690. <para>The <see cref="M:System.Linq.Enumerable.First``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method throws an exception if no matching element is found in <paramref name="source" />. To instead return a default value when no matching element is found, use the <see cref="M:System.Linq.Enumerable.FirstOrDefault``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method.</para>
  1691. </remarks>
  1692. <summary>
  1693. <attribution license="cc4" from="Microsoft" modified="false" />
  1694. <para>Returns the first element in a sequence that satisfies a specified condition.</para>
  1695. </summary>
  1696. <returns>
  1697. <attribution license="cc4" from="Microsoft" modified="false" />
  1698. <para>The first element in the sequence that passes the test in the specified predicate function.</para>
  1699. </returns>
  1700. <param name="source">
  1701. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return an element from.</param>
  1702. <param name="predicate">
  1703. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  1704. <typeparam name="TSource">
  1705. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1706. </Docs>
  1707. </Member>
  1708. <Member MemberName="FirstOrDefault&lt;TSource&gt;">
  1709. <MemberSignature Language="C#" Value="public static TSource FirstOrDefault&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  1710. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource FirstOrDefault&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  1711. <MemberType>Method</MemberType>
  1712. <AssemblyInfo>
  1713. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1714. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1715. </AssemblyInfo>
  1716. <ReturnValue>
  1717. <ReturnType>TSource</ReturnType>
  1718. </ReturnValue>
  1719. <TypeParameters>
  1720. <TypeParameter Name="TSource" />
  1721. </TypeParameters>
  1722. <Parameters>
  1723. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1724. </Parameters>
  1725. <Docs>
  1726. <remarks>
  1727. <attribution license="cc4" from="Microsoft" modified="false" />
  1728. <para>The default value for reference and nullable types is null.</para>
  1729. <para>The <see cref="Overload:System.Linq.Enumerable.FirstOrDefault" /> method does not provide a way to specify a default value. If you want to specify a default value other than default(<paramref name="TSource" />), use the <see cref="M:System.Linq.Enumerable.DefaultIfEmpty``1(System.Collections.Generic.IEnumerable{``0},``0)" /> method as described in the Example section.</para>
  1730. </remarks>
  1731. <summary>
  1732. <attribution license="cc4" from="Microsoft" modified="false" />
  1733. <para>Returns the first element of a sequence, or a default value if the sequence contains no elements.</para>
  1734. </summary>
  1735. <returns>
  1736. <attribution license="cc4" from="Microsoft" modified="false" />
  1737. <para>default(<paramref name="TSource" />) if <paramref name="source" /> is empty; otherwise, the first element in <paramref name="source" />.</para>
  1738. </returns>
  1739. <param name="source">
  1740. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return the first element of.</param>
  1741. <typeparam name="TSource">
  1742. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1743. </Docs>
  1744. </Member>
  1745. <Member MemberName="FirstOrDefault&lt;TSource&gt;">
  1746. <MemberSignature Language="C#" Value="public static TSource FirstOrDefault&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  1747. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource FirstOrDefault&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  1748. <MemberType>Method</MemberType>
  1749. <AssemblyInfo>
  1750. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1751. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1752. </AssemblyInfo>
  1753. <ReturnValue>
  1754. <ReturnType>TSource</ReturnType>
  1755. </ReturnValue>
  1756. <TypeParameters>
  1757. <TypeParameter Name="TSource" />
  1758. </TypeParameters>
  1759. <Parameters>
  1760. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1761. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  1762. </Parameters>
  1763. <Docs>
  1764. <remarks>
  1765. <attribution license="cc4" from="Microsoft" modified="false" />
  1766. <para>The default value for reference and nullable types is null.</para>
  1767. </remarks>
  1768. <summary>
  1769. <attribution license="cc4" from="Microsoft" modified="false" />
  1770. <para>Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.</para>
  1771. </summary>
  1772. <returns>
  1773. <attribution license="cc4" from="Microsoft" modified="false" />
  1774. <para>default(<paramref name="TSource" />) if <paramref name="source" /> is empty or if no element passes the test specified by <paramref name="predicate" />; otherwise, the first element in <paramref name="source" /> that passes the test specified by <paramref name="predicate" />.</para>
  1775. </returns>
  1776. <param name="source">
  1777. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return an element from.</param>
  1778. <param name="predicate">
  1779. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  1780. <typeparam name="TSource">
  1781. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1782. </Docs>
  1783. </Member>
  1784. <Member MemberName="GroupBy&lt;TSource,TKey&gt;">
  1785. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TSource&gt;&gt; GroupBy&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector);" />
  1786. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;class System.Linq.IGrouping`2&lt;!!TKey, !!TSource&gt;&gt; GroupBy&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector) cil managed" />
  1787. <MemberType>Method</MemberType>
  1788. <AssemblyInfo>
  1789. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1790. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1791. </AssemblyInfo>
  1792. <ReturnValue>
  1793. <ReturnType>System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TSource&gt;&gt;</ReturnType>
  1794. </ReturnValue>
  1795. <TypeParameters>
  1796. <TypeParameter Name="TSource" />
  1797. <TypeParameter Name="TKey" />
  1798. </TypeParameters>
  1799. <Parameters>
  1800. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1801. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  1802. </Parameters>
  1803. <Docs>
  1804. <remarks>
  1805. <attribution license="cc4" from="Microsoft" modified="false" />
  1806. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1807. <block subset="none" type="note">
  1808. <para>For examples of GroupBy, see the following topics.</para>
  1809. <list type="bullet">
  1810. <item>
  1811. <para>
  1812. <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2})" />
  1813. </para>
  1814. </item>
  1815. <item>
  1816. <para>
  1817. <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``1,System.Collections.Generic.IEnumerable{``0},``2})" />
  1818. </para>
  1819. </item>
  1820. <item>
  1821. <para>
  1822. <see cref="M:System.Linq.Enumerable.GroupBy``4(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2},System.Func{``1,System.Collections.Generic.IEnumerable{``2},``3})" />
  1823. </para>
  1824. </item>
  1825. </list>
  1826. </block>
  1827. <para>The <see cref="M:System.Linq.Enumerable.GroupBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})" /> method returns a collection of <see cref="T:System.Linq.IGrouping`2" /> objects, one for each distinct key that was encountered. An <see cref="T:System.Linq.IGrouping`2" /> is an <see cref="T:System.Collections.Generic.IEnumerable`1" /> that also has a key associated with its elements.</para>
  1828. <para>The <see cref="T:System.Linq.IGrouping`2" /> objects are yielded in an order based on the order of the elements in <paramref name="source" /> that produced the first key of each <see cref="T:System.Linq.IGrouping`2" />. Elements in a grouping are yielded in the order they appear in <paramref name="source" />.</para>
  1829. <para>The default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  1830. <para>In query expression syntax, a group by (csprcs) or Group By Into (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.GroupBy" />. For more information and usage examples, see <format type="text/html"><a href="c817242e-b12c-4baa-a57e-73ee138f34d1">group clause (C# Reference)</a></format> and <format type="text/html"><a href="b1b5dcea-6654-473b-a2db-01f7e4c265d7">Group By Clause (Visual Basic)</a></format>.</para>
  1831. </remarks>
  1832. <summary>
  1833. <attribution license="cc4" from="Microsoft" modified="false" />
  1834. <para>Groups the elements of a sequence according to a specified key selector function.</para>
  1835. </summary>
  1836. <returns>
  1837. <attribution license="cc4" from="Microsoft" modified="false" />
  1838. <para>An <unmanagedCodeEntityReference>IEnumerable&lt;IGrouping&lt;TKey, TSource&gt;&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of IGrouping(Of TKey, TSource))</unmanagedCodeEntityReference> in vbprvb where each <see cref="T:System.Linq.IGrouping`2" /> object contains a sequence of objects and a key.</para>
  1839. </returns>
  1840. <param name="source">
  1841. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  1842. <param name="keySelector">
  1843. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  1844. <typeparam name="TSource">
  1845. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1846. <typeparam name="TKey">
  1847. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  1848. </Docs>
  1849. </Member>
  1850. <Member MemberName="GroupBy&lt;TSource,TKey&gt;">
  1851. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TSource&gt;&gt; GroupBy&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  1852. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;class System.Linq.IGrouping`2&lt;!!TKey, !!TSource&gt;&gt; GroupBy&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  1853. <MemberType>Method</MemberType>
  1854. <AssemblyInfo>
  1855. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1856. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1857. </AssemblyInfo>
  1858. <ReturnValue>
  1859. <ReturnType>System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TSource&gt;&gt;</ReturnType>
  1860. </ReturnValue>
  1861. <TypeParameters>
  1862. <TypeParameter Name="TSource" />
  1863. <TypeParameter Name="TKey" />
  1864. </TypeParameters>
  1865. <Parameters>
  1866. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1867. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  1868. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  1869. </Parameters>
  1870. <Docs>
  1871. <remarks>
  1872. <attribution license="cc4" from="Microsoft" modified="false" />
  1873. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1874. <block subset="none" type="note">
  1875. <para>For examples of GroupBy, see the following topics.</para>
  1876. <list type="bullet">
  1877. <item>
  1878. <para>
  1879. <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2})" />
  1880. </para>
  1881. </item>
  1882. <item>
  1883. <para>
  1884. <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``1,System.Collections.Generic.IEnumerable{``0},``2})" />
  1885. </para>
  1886. </item>
  1887. <item>
  1888. <para>
  1889. <see cref="M:System.Linq.Enumerable.GroupBy``4(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2},System.Func{``1,System.Collections.Generic.IEnumerable{``2},``3})" />
  1890. </para>
  1891. </item>
  1892. </list>
  1893. </block>
  1894. <para>The <see cref="M:System.Linq.Enumerable.GroupBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IEqualityComparer{``1})" /> method returns a collection of <see cref="T:System.Linq.IGrouping`2" /> objects, one for each distinct key that was encountered. An <see cref="T:System.Linq.IGrouping`2" /> is an <see cref="T:System.Collections.Generic.IEnumerable`1" /> that also has a key associated with its elements.</para>
  1895. <para>The <see cref="T:System.Linq.IGrouping`2" /> objects are yielded in an order based on the order of the elements in <paramref name="source" /> that produced the first key of each <see cref="T:System.Linq.IGrouping`2" />. Elements in a grouping are yielded in the order they appear in <paramref name="source" />.</para>
  1896. <para>If <paramref name="comparer" /> is null, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  1897. <para>If two keys are considered equal according to <paramref name="comparer" />, the first key is chosen as the key for that grouping.</para>
  1898. <para>In query expression syntax, a group by (csprcs) or Group By Into (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.GroupBy" />. For more information and usage examples, see <format type="text/html"><a href="c817242e-b12c-4baa-a57e-73ee138f34d1">group clause (C# Reference)</a></format> and <format type="text/html"><a href="b1b5dcea-6654-473b-a2db-01f7e4c265d7">Group By Clause (Visual Basic)</a></format>.</para>
  1899. </remarks>
  1900. <summary>
  1901. <attribution license="cc4" from="Microsoft" modified="false" />
  1902. <para>Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.</para>
  1903. </summary>
  1904. <returns>
  1905. <attribution license="cc4" from="Microsoft" modified="false" />
  1906. <para>An <unmanagedCodeEntityReference>IEnumerable&lt;IGrouping&lt;TKey, TSource&gt;&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of IGrouping(Of TKey, TSource))</unmanagedCodeEntityReference> in vbprvb where each <see cref="T:System.Linq.IGrouping`2" /> object contains a collection of objects and a key.</para>
  1907. </returns>
  1908. <param name="source">
  1909. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  1910. <param name="keySelector">
  1911. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  1912. <param name="comparer">
  1913. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys.</param>
  1914. <typeparam name="TSource">
  1915. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1916. <typeparam name="TKey">
  1917. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  1918. </Docs>
  1919. </Member>
  1920. <Member MemberName="GroupBy&lt;TSource,TKey,TElement&gt;">
  1921. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TElement&gt;&gt; GroupBy&lt;TSource,TKey,TElement&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector);" />
  1922. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;class System.Linq.IGrouping`2&lt;!!TKey, !!TElement&gt;&gt; GroupBy&lt;TSource, TKey, TElement&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector) cil managed" />
  1923. <MemberType>Method</MemberType>
  1924. <AssemblyInfo>
  1925. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1926. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1927. </AssemblyInfo>
  1928. <ReturnValue>
  1929. <ReturnType>System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TElement&gt;&gt;</ReturnType>
  1930. </ReturnValue>
  1931. <TypeParameters>
  1932. <TypeParameter Name="TSource" />
  1933. <TypeParameter Name="TKey" />
  1934. <TypeParameter Name="TElement" />
  1935. </TypeParameters>
  1936. <Parameters>
  1937. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1938. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  1939. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  1940. </Parameters>
  1941. <Docs>
  1942. <remarks>
  1943. <attribution license="cc4" from="Microsoft" modified="false" />
  1944. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1945. <para>The <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2})" /> method returns a collection of <see cref="T:System.Linq.IGrouping`2" /> objects, one for each distinct key that was encountered. An <see cref="T:System.Linq.IGrouping`2" /> is an <see cref="T:System.Collections.Generic.IEnumerable`1" /> that also has a key associated with its elements.</para>
  1946. <para>The <see cref="T:System.Linq.IGrouping`2" /> objects are yielded in an order based on the order of the elements in <paramref name="source" /> that produced the first key of each <see cref="T:System.Linq.IGrouping`2" />. Elements in a grouping are yielded in the order that the elements that produced them appear in <paramref name="source" />.</para>
  1947. <para>The default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  1948. </remarks>
  1949. <summary>
  1950. <attribution license="cc4" from="Microsoft" modified="false" />
  1951. <para>Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.</para>
  1952. </summary>
  1953. <returns>
  1954. <attribution license="cc4" from="Microsoft" modified="false" />
  1955. <para>An <unmanagedCodeEntityReference>IEnumerable&lt;IGrouping&lt;TKey, TElement&gt;&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of IGrouping(Of TKey, TElement))</unmanagedCodeEntityReference> in vbprvb where each <see cref="T:System.Linq.IGrouping`2" /> object contains a collection of objects of type <paramref name="TElement" /> and a key.</para>
  1956. </returns>
  1957. <param name="source">
  1958. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  1959. <param name="keySelector">
  1960. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  1961. <param name="elementSelector">
  1962. <attribution license="cc4" from="Microsoft" modified="false" />A function to map each source element to an element in the <see cref="T:System.Linq.IGrouping`2" />.</param>
  1963. <typeparam name="TSource">
  1964. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  1965. <typeparam name="TKey">
  1966. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  1967. <typeparam name="TElement">
  1968. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements in the <see cref="T:System.Linq.IGrouping`2" />.</typeparam>
  1969. </Docs>
  1970. </Member>
  1971. <Member MemberName="GroupBy&lt;TSource,TKey,TElement&gt;">
  1972. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TElement&gt;&gt; GroupBy&lt;TSource,TKey,TElement&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  1973. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;class System.Linq.IGrouping`2&lt;!!TKey, !!TElement&gt;&gt; GroupBy&lt;TSource, TKey, TElement&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  1974. <MemberType>Method</MemberType>
  1975. <AssemblyInfo>
  1976. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  1977. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  1978. </AssemblyInfo>
  1979. <ReturnValue>
  1980. <ReturnType>System.Collections.Generic.IEnumerable&lt;System.Linq.IGrouping&lt;TKey,TElement&gt;&gt;</ReturnType>
  1981. </ReturnValue>
  1982. <TypeParameters>
  1983. <TypeParameter Name="TSource" />
  1984. <TypeParameter Name="TKey" />
  1985. <TypeParameter Name="TElement" />
  1986. </TypeParameters>
  1987. <Parameters>
  1988. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  1989. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  1990. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  1991. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  1992. </Parameters>
  1993. <Docs>
  1994. <remarks>
  1995. <attribution license="cc4" from="Microsoft" modified="false" />
  1996. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  1997. <block subset="none" type="note">
  1998. <para>For examples of GroupBy, see the following topics.</para>
  1999. <list type="bullet">
  2000. <item>
  2001. <para>
  2002. <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2})" />
  2003. </para>
  2004. </item>
  2005. <item>
  2006. <para>
  2007. <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``1,System.Collections.Generic.IEnumerable{``0},``2})" />
  2008. </para>
  2009. </item>
  2010. <item>
  2011. <para>
  2012. <see cref="M:System.Linq.Enumerable.GroupBy``4(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2},System.Func{``1,System.Collections.Generic.IEnumerable{``2},``3})" />
  2013. </para>
  2014. </item>
  2015. </list>
  2016. </block>
  2017. <para>The <see cref="M:System.Linq.Enumerable.GroupBy``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2},System.Collections.Generic.IEqualityComparer{``1})" /> method returns a collection of <see cref="T:System.Linq.IGrouping`2" /> objects, one for each distinct key that was encountered. An <see cref="T:System.Linq.IGrouping`2" /> is an <see cref="T:System.Collections.Generic.IEnumerable`1" /> that also has a key associated with its elements.</para>
  2018. <para>The <see cref="T:System.Linq.IGrouping`2" /> objects are yielded in an order based on the order of the elements in <paramref name="source" /> that produced the first key of each <see cref="T:System.Linq.IGrouping`2" />. Elements in a grouping are yielded in the order that the elements that produced them appear in <paramref name="source" />.</para>
  2019. <para>If <paramref name="comparer" /> is null, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  2020. <para>If two keys are considered equal according to <paramref name="comparer" />, the first key is chosen as the key for that grouping.</para>
  2021. <para>In query expression syntax, a group by (csprcs) or Group By Into (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.GroupBy" />. For more information and usage examples, see <format type="text/html"><a href="c817242e-b12c-4baa-a57e-73ee138f34d1">group clause (C# Reference)</a></format> and <format type="text/html"><a href="b1b5dcea-6654-473b-a2db-01f7e4c265d7">Group By Clause (Visual Basic)</a></format>.</para>
  2022. </remarks>
  2023. <summary>
  2024. <attribution license="cc4" from="Microsoft" modified="false" />
  2025. <para>Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.</para>
  2026. </summary>
  2027. <returns>
  2028. <attribution license="cc4" from="Microsoft" modified="false" />
  2029. <para>An <unmanagedCodeEntityReference>IEnumerable&lt;IGrouping&lt;TKey, TElement&gt;&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of IGrouping(Of TKey, TElement))</unmanagedCodeEntityReference> in vbprvb where each <see cref="T:System.Linq.IGrouping`2" /> object contains a collection of objects of type <paramref name="TElement" /> and a key.</para>
  2030. </returns>
  2031. <param name="source">
  2032. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  2033. <param name="keySelector">
  2034. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  2035. <param name="elementSelector">
  2036. <attribution license="cc4" from="Microsoft" modified="false" />A function to map each source element to an element in an <see cref="T:System.Linq.IGrouping`2" />.</param>
  2037. <param name="comparer">
  2038. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys.</param>
  2039. <typeparam name="TSource">
  2040. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2041. <typeparam name="TKey">
  2042. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  2043. <typeparam name="TElement">
  2044. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements in the <see cref="T:System.Linq.IGrouping`2" />.</typeparam>
  2045. </Docs>
  2046. </Member>
  2047. <Member MemberName="GroupBy&lt;TSource,TKey,TResult&gt;">
  2048. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; GroupBy&lt;TSource,TKey,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TSource&gt;,TResult&gt; resultSelector);" />
  2049. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; GroupBy&lt;TSource, TKey, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`3&lt;!!TKey, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt;, !!TResult&gt; resultSelector) cil managed" />
  2050. <MemberType>Method</MemberType>
  2051. <AssemblyInfo>
  2052. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2053. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2054. </AssemblyInfo>
  2055. <ReturnValue>
  2056. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2057. </ReturnValue>
  2058. <TypeParameters>
  2059. <TypeParameter Name="TSource" />
  2060. <TypeParameter Name="TKey" />
  2061. <TypeParameter Name="TResult" />
  2062. </TypeParameters>
  2063. <Parameters>
  2064. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2065. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  2066. <Parameter Name="resultSelector" Type="System.Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TSource&gt;,TResult&gt;" />
  2067. </Parameters>
  2068. <Docs>
  2069. <remarks>
  2070. <attribution license="cc4" from="Microsoft" modified="false" />
  2071. <para>In query expression syntax, a group by (csprcs) or Group By Into (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.GroupBy" />.</para>
  2072. </remarks>
  2073. <summary>
  2074. <attribution license="cc4" from="Microsoft" modified="false" />
  2075. <para>Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.</para>
  2076. </summary>
  2077. <returns>
  2078. <attribution license="cc4" from="Microsoft" modified="false" />
  2079. <para>A collection of elements of type <paramref name="TResult" /> where each element represents a projection over a group and its key.</para>
  2080. </returns>
  2081. <param name="source">
  2082. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  2083. <param name="keySelector">
  2084. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  2085. <param name="resultSelector">
  2086. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result value from each group.</param>
  2087. <typeparam name="TSource">
  2088. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2089. <typeparam name="TKey">
  2090. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  2091. <typeparam name="TResult">
  2092. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result value returned by <paramref name="resultSelector" />.</typeparam>
  2093. </Docs>
  2094. </Member>
  2095. <Member MemberName="GroupBy&lt;TSource,TKey,TResult&gt;">
  2096. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; GroupBy&lt;TSource,TKey,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TSource&gt;,TResult&gt; resultSelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  2097. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; GroupBy&lt;TSource, TKey, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`3&lt;!!TKey, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt;, !!TResult&gt; resultSelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  2098. <MemberType>Method</MemberType>
  2099. <AssemblyInfo>
  2100. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2101. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2102. </AssemblyInfo>
  2103. <ReturnValue>
  2104. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2105. </ReturnValue>
  2106. <TypeParameters>
  2107. <TypeParameter Name="TSource" />
  2108. <TypeParameter Name="TKey" />
  2109. <TypeParameter Name="TResult" />
  2110. </TypeParameters>
  2111. <Parameters>
  2112. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2113. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  2114. <Parameter Name="resultSelector" Type="System.Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TSource&gt;,TResult&gt;" />
  2115. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  2116. </Parameters>
  2117. <Docs>
  2118. <remarks>To be added.</remarks>
  2119. <summary>
  2120. <attribution license="cc4" from="Microsoft" modified="false" />
  2121. <para>Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer.</para>
  2122. </summary>
  2123. <returns>
  2124. <attribution license="cc4" from="Microsoft" modified="false" />
  2125. <para>A collection of elements of type <paramref name="TResult" /> where each element represents a projection over a group and its key.</para>
  2126. </returns>
  2127. <param name="source">
  2128. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  2129. <param name="keySelector">
  2130. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  2131. <param name="resultSelector">
  2132. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result value from each group.</param>
  2133. <param name="comparer">
  2134. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys with.</param>
  2135. <typeparam name="TSource">
  2136. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2137. <typeparam name="TKey">
  2138. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  2139. <typeparam name="TResult">
  2140. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result value returned by <paramref name="resultSelector" />.</typeparam>
  2141. </Docs>
  2142. </Member>
  2143. <Member MemberName="GroupBy&lt;TSource,TKey,TElement,TResult&gt;">
  2144. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; GroupBy&lt;TSource,TKey,TElement,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector, Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TElement&gt;,TResult&gt; resultSelector);" />
  2145. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; GroupBy&lt;TSource, TKey, TElement, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector, class System.Func`3&lt;!!TKey, class System.Collections.Generic.IEnumerable`1&lt;!!TElement&gt;, !!TResult&gt; resultSelector) cil managed" />
  2146. <MemberType>Method</MemberType>
  2147. <AssemblyInfo>
  2148. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2149. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2150. </AssemblyInfo>
  2151. <ReturnValue>
  2152. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2153. </ReturnValue>
  2154. <TypeParameters>
  2155. <TypeParameter Name="TSource" />
  2156. <TypeParameter Name="TKey" />
  2157. <TypeParameter Name="TElement" />
  2158. <TypeParameter Name="TResult" />
  2159. </TypeParameters>
  2160. <Parameters>
  2161. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2162. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  2163. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  2164. <Parameter Name="resultSelector" Type="System.Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TElement&gt;,TResult&gt;" />
  2165. </Parameters>
  2166. <Docs>
  2167. <remarks>
  2168. <attribution license="cc4" from="Microsoft" modified="false" />
  2169. <para>In query expression syntax, a group by (csprcs) or Group By Into (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.GroupBy" />.</para>
  2170. </remarks>
  2171. <summary>
  2172. <attribution license="cc4" from="Microsoft" modified="false" />
  2173. <para>Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.</para>
  2174. </summary>
  2175. <returns>
  2176. <attribution license="cc4" from="Microsoft" modified="false" />
  2177. <para>A collection of elements of type <paramref name="TResult" /> where each element represents a projection over a group and its key.</para>
  2178. </returns>
  2179. <param name="source">
  2180. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  2181. <param name="keySelector">
  2182. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  2183. <param name="elementSelector">
  2184. <attribution license="cc4" from="Microsoft" modified="false" />A function to map each source element to an element in an <see cref="T:System.Linq.IGrouping`2" />.</param>
  2185. <param name="resultSelector">
  2186. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result value from each group.</param>
  2187. <typeparam name="TSource">
  2188. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2189. <typeparam name="TKey">
  2190. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  2191. <typeparam name="TElement">
  2192. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements in each <see cref="T:System.Linq.IGrouping`2" />.</typeparam>
  2193. <typeparam name="TResult">
  2194. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result value returned by <paramref name="resultSelector" />.</typeparam>
  2195. </Docs>
  2196. </Member>
  2197. <Member MemberName="GroupBy&lt;TSource,TKey,TElement,TResult&gt;">
  2198. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; GroupBy&lt;TSource,TKey,TElement,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector, Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TElement&gt;,TResult&gt; resultSelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  2199. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; GroupBy&lt;TSource, TKey, TElement, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector, class System.Func`3&lt;!!TKey, class System.Collections.Generic.IEnumerable`1&lt;!!TElement&gt;, !!TResult&gt; resultSelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  2200. <MemberType>Method</MemberType>
  2201. <AssemblyInfo>
  2202. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2203. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2204. </AssemblyInfo>
  2205. <ReturnValue>
  2206. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2207. </ReturnValue>
  2208. <TypeParameters>
  2209. <TypeParameter Name="TSource" />
  2210. <TypeParameter Name="TKey" />
  2211. <TypeParameter Name="TElement" />
  2212. <TypeParameter Name="TResult" />
  2213. </TypeParameters>
  2214. <Parameters>
  2215. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2216. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  2217. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  2218. <Parameter Name="resultSelector" Type="System.Func&lt;TKey,System.Collections.Generic.IEnumerable&lt;TElement&gt;,TResult&gt;" />
  2219. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  2220. </Parameters>
  2221. <Docs>
  2222. <remarks>To be added.</remarks>
  2223. <summary>
  2224. <attribution license="cc4" from="Microsoft" modified="false" />
  2225. <para>Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.</para>
  2226. </summary>
  2227. <returns>
  2228. <attribution license="cc4" from="Microsoft" modified="false" />
  2229. <para>A collection of elements of type <paramref name="TResult" /> where each element represents a projection over a group and its key.</para>
  2230. </returns>
  2231. <param name="source">
  2232. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements to group.</param>
  2233. <param name="keySelector">
  2234. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the key for each element.</param>
  2235. <param name="elementSelector">
  2236. <attribution license="cc4" from="Microsoft" modified="false" />A function to map each source element to an element in an <see cref="T:System.Linq.IGrouping`2" />.</param>
  2237. <param name="resultSelector">
  2238. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result value from each group.</param>
  2239. <param name="comparer">
  2240. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys with.</param>
  2241. <typeparam name="TSource">
  2242. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2243. <typeparam name="TKey">
  2244. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  2245. <typeparam name="TElement">
  2246. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements in each <see cref="T:System.Linq.IGrouping`2" />.</typeparam>
  2247. <typeparam name="TResult">
  2248. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result value returned by <paramref name="resultSelector" />.</typeparam>
  2249. </Docs>
  2250. </Member>
  2251. <Member MemberName="GroupJoin&lt;TOuter,TInner,TKey,TResult&gt;">
  2252. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; GroupJoin&lt;TOuter,TInner,TKey,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TOuter&gt; outer, System.Collections.Generic.IEnumerable&lt;TInner&gt; inner, Func&lt;TOuter,TKey&gt; outerKeySelector, Func&lt;TInner,TKey&gt; innerKeySelector, Func&lt;TOuter,System.Collections.Generic.IEnumerable&lt;TInner&gt;,TResult&gt; resultSelector);" />
  2253. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; GroupJoin&lt;TOuter, TInner, TKey, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TOuter&gt; outer, class System.Collections.Generic.IEnumerable`1&lt;!!TInner&gt; inner, class System.Func`2&lt;!!TOuter, !!TKey&gt; outerKeySelector, class System.Func`2&lt;!!TInner, !!TKey&gt; innerKeySelector, class System.Func`3&lt;!!TOuter, class System.Collections.Generic.IEnumerable`1&lt;!!TInner&gt;, !!TResult&gt; resultSelector) cil managed" />
  2254. <MemberType>Method</MemberType>
  2255. <AssemblyInfo>
  2256. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2257. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2258. </AssemblyInfo>
  2259. <ReturnValue>
  2260. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2261. </ReturnValue>
  2262. <TypeParameters>
  2263. <TypeParameter Name="TOuter" />
  2264. <TypeParameter Name="TInner" />
  2265. <TypeParameter Name="TKey" />
  2266. <TypeParameter Name="TResult" />
  2267. </TypeParameters>
  2268. <Parameters>
  2269. <Parameter Name="outer" Type="System.Collections.Generic.IEnumerable&lt;TOuter&gt;" RefType="this" />
  2270. <Parameter Name="inner" Type="System.Collections.Generic.IEnumerable&lt;TInner&gt;" />
  2271. <Parameter Name="outerKeySelector" Type="System.Func&lt;TOuter,TKey&gt;" />
  2272. <Parameter Name="innerKeySelector" Type="System.Func&lt;TInner,TKey&gt;" />
  2273. <Parameter Name="resultSelector" Type="System.Func&lt;TOuter,System.Collections.Generic.IEnumerable&lt;TInner&gt;,TResult&gt;" />
  2274. </Parameters>
  2275. <Docs>
  2276. <remarks>
  2277. <attribution license="cc4" from="Microsoft" modified="false" />
  2278. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  2279. <para>The default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to hash and compare keys.</para>
  2280. <para>
  2281. <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" /> produces hierarchical results, which means that elements from <paramref name="outer" /> are paired with collections of matching elements from <paramref name="inner" />. <unmanagedCodeEntityReference>GroupJoin</unmanagedCodeEntityReference> enables you to base your results on a whole set of matches for each element of <paramref name="outer" />.</para>
  2282. <block subset="none" type="note">
  2283. <para>If there are no correlated elements in <paramref name="inner" /> for a given element of <paramref name="outer" />, the sequence of matches for that element will be empty but will still appear in the results.</para>
  2284. </block>
  2285. <para>The <paramref name="resultSelector" /> function is called only one time for each <paramref name="outer" /> element together with a collection of all the <paramref name="inner" /> elements that match the <paramref name="outer" /> element. This differs from the <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> method, in which the result selector function is invoked on pairs that contain one element from <paramref name="outer" /> and one element from <paramref name="inner" />.</para>
  2286. <para>
  2287. <unmanagedCodeEntityReference>GroupJoin</unmanagedCodeEntityReference> preserves the order of the elements of <paramref name="outer" />, and for each element of <paramref name="outer" />, the order of the matching elements from <paramref name="inner" />.</para>
  2288. <para>
  2289. <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" /> has no direct equivalent in traditional relational database terms. However, this method does implement a superset of inner joins and left outer joins. Both of these operations can be written in terms of a grouped join. See <format type="text/html"><a href="442d176d-028c-4beb-8d22-407d4ef89107">Join Operations</a></format>.</para>
  2290. <para>In query expression syntax, a join … into (csprcs) or Group Join (vbprvb) clause translates to an invocation of <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" />.</para>
  2291. </remarks>
  2292. <summary>
  2293. <attribution license="cc4" from="Microsoft" modified="false" />
  2294. <para>Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.</para>
  2295. </summary>
  2296. <returns>
  2297. <attribution license="cc4" from="Microsoft" modified="false" />
  2298. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains elements of type <paramref name="TResult" /> that are obtained by performing a grouped join on two sequences.</para>
  2299. </returns>
  2300. <param name="outer">
  2301. <attribution license="cc4" from="Microsoft" modified="false" />The first sequence to join.</param>
  2302. <param name="inner">
  2303. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to join to the first sequence.</param>
  2304. <param name="outerKeySelector">
  2305. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the first sequence.</param>
  2306. <param name="innerKeySelector">
  2307. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the second sequence.</param>
  2308. <param name="resultSelector">
  2309. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.</param>
  2310. <typeparam name="TOuter">
  2311. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the first sequence.</typeparam>
  2312. <typeparam name="TInner">
  2313. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the second sequence.</typeparam>
  2314. <typeparam name="TKey">
  2315. <attribution license="cc4" from="Microsoft" modified="false" />The type of the keys returned by the key selector functions.</typeparam>
  2316. <typeparam name="TResult">
  2317. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result elements.</typeparam>
  2318. </Docs>
  2319. </Member>
  2320. <Member MemberName="GroupJoin&lt;TOuter,TInner,TKey,TResult&gt;">
  2321. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; GroupJoin&lt;TOuter,TInner,TKey,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TOuter&gt; outer, System.Collections.Generic.IEnumerable&lt;TInner&gt; inner, Func&lt;TOuter,TKey&gt; outerKeySelector, Func&lt;TInner,TKey&gt; innerKeySelector, Func&lt;TOuter,System.Collections.Generic.IEnumerable&lt;TInner&gt;,TResult&gt; resultSelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  2322. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; GroupJoin&lt;TOuter, TInner, TKey, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TOuter&gt; outer, class System.Collections.Generic.IEnumerable`1&lt;!!TInner&gt; inner, class System.Func`2&lt;!!TOuter, !!TKey&gt; outerKeySelector, class System.Func`2&lt;!!TInner, !!TKey&gt; innerKeySelector, class System.Func`3&lt;!!TOuter, class System.Collections.Generic.IEnumerable`1&lt;!!TInner&gt;, !!TResult&gt; resultSelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  2323. <MemberType>Method</MemberType>
  2324. <AssemblyInfo>
  2325. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2326. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2327. </AssemblyInfo>
  2328. <ReturnValue>
  2329. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2330. </ReturnValue>
  2331. <TypeParameters>
  2332. <TypeParameter Name="TOuter" />
  2333. <TypeParameter Name="TInner" />
  2334. <TypeParameter Name="TKey" />
  2335. <TypeParameter Name="TResult" />
  2336. </TypeParameters>
  2337. <Parameters>
  2338. <Parameter Name="outer" Type="System.Collections.Generic.IEnumerable&lt;TOuter&gt;" RefType="this" />
  2339. <Parameter Name="inner" Type="System.Collections.Generic.IEnumerable&lt;TInner&gt;" />
  2340. <Parameter Name="outerKeySelector" Type="System.Func&lt;TOuter,TKey&gt;" />
  2341. <Parameter Name="innerKeySelector" Type="System.Func&lt;TInner,TKey&gt;" />
  2342. <Parameter Name="resultSelector" Type="System.Func&lt;TOuter,System.Collections.Generic.IEnumerable&lt;TInner&gt;,TResult&gt;" />
  2343. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  2344. </Parameters>
  2345. <Docs>
  2346. <remarks>
  2347. <attribution license="cc4" from="Microsoft" modified="false" />
  2348. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  2349. <para>If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to hash and compare keys.</para>
  2350. <para>
  2351. <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" /> produces hierarchical results, which means that elements from <paramref name="outer" /> are paired with collections of matching elements from <paramref name="inner" />. <unmanagedCodeEntityReference>GroupJoin</unmanagedCodeEntityReference> enables you to base your results on a whole set of matches for each element of <paramref name="outer" />.</para>
  2352. <block subset="none" type="note">
  2353. <para>If there are no correlated elements in <paramref name="inner" /> for a given element of <paramref name="outer" />, the sequence of matches for that element will be empty but will still appear in the results.</para>
  2354. </block>
  2355. <para>The <paramref name="resultSelector" /> function is called only one time for each <paramref name="outer" /> element together with a collection of all the <paramref name="inner" /> elements that match the <paramref name="outer" /> element. This differs from the <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> method in which the result selector function is invoked on pairs that contain one element from <paramref name="outer" /> and one element from <paramref name="inner" />.</para>
  2356. <para>
  2357. <unmanagedCodeEntityReference>GroupJoin</unmanagedCodeEntityReference> preserves the order of the elements of <paramref name="outer" />, and for each element of <paramref name="outer" />, the order of the matching elements from <paramref name="inner" />.</para>
  2358. <para>
  2359. <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" /> has no direct equivalent in traditional relational database terms. However, this method does implement a superset of inner joins and left outer joins. Both of these operations can be written in terms of a grouped join. See <format type="text/html"><a href="442d176d-028c-4beb-8d22-407d4ef89107">Performing Join Operations</a></format>.</para>
  2360. </remarks>
  2361. <summary>
  2362. <attribution license="cc4" from="Microsoft" modified="false" />
  2363. <para>Correlates the elements of two sequences based on key equality and groups the results. A specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> is used to compare keys.</para>
  2364. </summary>
  2365. <returns>
  2366. <attribution license="cc4" from="Microsoft" modified="false" />
  2367. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains elements of type <paramref name="TResult" /> that are obtained by performing a grouped join on two sequences.</para>
  2368. </returns>
  2369. <param name="outer">
  2370. <attribution license="cc4" from="Microsoft" modified="false" />The first sequence to join.</param>
  2371. <param name="inner">
  2372. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to join to the first sequence.</param>
  2373. <param name="outerKeySelector">
  2374. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the first sequence.</param>
  2375. <param name="innerKeySelector">
  2376. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the second sequence.</param>
  2377. <param name="resultSelector">
  2378. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.</param>
  2379. <param name="comparer">
  2380. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to hash and compare keys.</param>
  2381. <typeparam name="TOuter">
  2382. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the first sequence.</typeparam>
  2383. <typeparam name="TInner">
  2384. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the second sequence.</typeparam>
  2385. <typeparam name="TKey">
  2386. <attribution license="cc4" from="Microsoft" modified="false" />The type of the keys returned by the key selector functions.</typeparam>
  2387. <typeparam name="TResult">
  2388. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result elements.</typeparam>
  2389. </Docs>
  2390. </Member>
  2391. <Member MemberName="Intersect&lt;TSource&gt;">
  2392. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Intersect&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second);" />
  2393. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Intersect&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second) cil managed" />
  2394. <MemberType>Method</MemberType>
  2395. <AssemblyInfo>
  2396. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2397. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2398. </AssemblyInfo>
  2399. <ReturnValue>
  2400. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  2401. </ReturnValue>
  2402. <TypeParameters>
  2403. <TypeParameter Name="TSource" />
  2404. </TypeParameters>
  2405. <Parameters>
  2406. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2407. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  2408. </Parameters>
  2409. <Docs>
  2410. <remarks>
  2411. <attribution license="cc4" from="Microsoft" modified="false" />
  2412. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  2413. <para>The intersection of two sets A and B is defined as the set that contains all the elements of A that also appear in B, but no other elements.</para>
  2414. <para>When the object returned by this method is enumerated, <see cref="M:System.Linq.Enumerable.Intersect``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> enumerates <paramref name="first" />, collecting all distinct elements of that sequence. It then enumerates <paramref name="second" />, marking those elements that occur in both sequences. Finally, the marked elements are yielded in the order in which they were collected.</para>
  2415. <para>The default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values of the types that implement the <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> generic interface. To compare a custom data type, you need to implement this interface and provide your own <see cref="M:System.Object.GetHashCode" /> and <see cref="M:System.Object.Equals(System.Object)" /> methods for the type.</para>
  2416. </remarks>
  2417. <summary>
  2418. <attribution license="cc4" from="Microsoft" modified="false" />
  2419. <para>Produces the set intersection of two sequences by using the default equality comparer to compare values.</para>
  2420. </summary>
  2421. <returns>
  2422. <attribution license="cc4" from="Microsoft" modified="false" />
  2423. <para>A sequence that contains the elements that form the set intersection of two sequences.</para>
  2424. </returns>
  2425. <param name="first">
  2426. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements that also appear in <paramref name="second" /> will be returned.</param>
  2427. <param name="second">
  2428. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements that also appear in the first sequence will be returned.</param>
  2429. <typeparam name="TSource">
  2430. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  2431. </Docs>
  2432. </Member>
  2433. <Member MemberName="Intersect&lt;TSource&gt;">
  2434. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Intersect&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second, System.Collections.Generic.IEqualityComparer&lt;TSource&gt; comparer);" />
  2435. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Intersect&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second, class System.Collections.Generic.IEqualityComparer`1&lt;!!TSource&gt; comparer) cil managed" />
  2436. <MemberType>Method</MemberType>
  2437. <AssemblyInfo>
  2438. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2439. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2440. </AssemblyInfo>
  2441. <ReturnValue>
  2442. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  2443. </ReturnValue>
  2444. <TypeParameters>
  2445. <TypeParameter Name="TSource" />
  2446. </TypeParameters>
  2447. <Parameters>
  2448. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2449. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  2450. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TSource&gt;" />
  2451. </Parameters>
  2452. <Docs>
  2453. <remarks>
  2454. <attribution license="cc4" from="Microsoft" modified="false" />
  2455. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  2456. <para>The intersection of two sets A and B is defined as the set that contains all the elements of A that also appear in B, but no other elements.</para>
  2457. <para>When the object returned by this method is enumerated, <see cref="M:System.Linq.Enumerable.Intersect``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> enumerates <paramref name="first" />, collecting all distinct elements of that sequence. It then enumerates <paramref name="second" />, marking those elements that occur in both sequences. Finally, the marked elements are yielded in the order in which they were collected.</para>
  2458. <para>If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values.</para>
  2459. </remarks>
  2460. <summary>
  2461. <attribution license="cc4" from="Microsoft" modified="false" />
  2462. <para>Produces the set intersection of two sequences by using the specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare values.</para>
  2463. </summary>
  2464. <returns>
  2465. <attribution license="cc4" from="Microsoft" modified="false" />
  2466. <para>A sequence that contains the elements that form the set intersection of two sequences.</para>
  2467. </returns>
  2468. <param name="first">
  2469. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements that also appear in <paramref name="second" /> will be returned.</param>
  2470. <param name="second">
  2471. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements that also appear in the first sequence will be returned.</param>
  2472. <param name="comparer">
  2473. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare values.</param>
  2474. <typeparam name="TSource">
  2475. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  2476. </Docs>
  2477. </Member>
  2478. <Member MemberName="Join&lt;TOuter,TInner,TKey,TResult&gt;">
  2479. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Join&lt;TOuter,TInner,TKey,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TOuter&gt; outer, System.Collections.Generic.IEnumerable&lt;TInner&gt; inner, Func&lt;TOuter,TKey&gt; outerKeySelector, Func&lt;TInner,TKey&gt; innerKeySelector, Func&lt;TOuter,TInner,TResult&gt; resultSelector);" />
  2480. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Join&lt;TOuter, TInner, TKey, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TOuter&gt; outer, class System.Collections.Generic.IEnumerable`1&lt;!!TInner&gt; inner, class System.Func`2&lt;!!TOuter, !!TKey&gt; outerKeySelector, class System.Func`2&lt;!!TInner, !!TKey&gt; innerKeySelector, class System.Func`3&lt;!!TOuter, !!TInner, !!TResult&gt; resultSelector) cil managed" />
  2481. <MemberType>Method</MemberType>
  2482. <AssemblyInfo>
  2483. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2484. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2485. </AssemblyInfo>
  2486. <ReturnValue>
  2487. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2488. </ReturnValue>
  2489. <TypeParameters>
  2490. <TypeParameter Name="TOuter" />
  2491. <TypeParameter Name="TInner" />
  2492. <TypeParameter Name="TKey" />
  2493. <TypeParameter Name="TResult" />
  2494. </TypeParameters>
  2495. <Parameters>
  2496. <Parameter Name="outer" Type="System.Collections.Generic.IEnumerable&lt;TOuter&gt;" RefType="this" />
  2497. <Parameter Name="inner" Type="System.Collections.Generic.IEnumerable&lt;TInner&gt;" />
  2498. <Parameter Name="outerKeySelector" Type="System.Func&lt;TOuter,TKey&gt;" />
  2499. <Parameter Name="innerKeySelector" Type="System.Func&lt;TInner,TKey&gt;" />
  2500. <Parameter Name="resultSelector" Type="System.Func&lt;TOuter,TInner,TResult&gt;" />
  2501. </Parameters>
  2502. <Docs>
  2503. <remarks>
  2504. <attribution license="cc4" from="Microsoft" modified="false" />
  2505. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  2506. <para>The default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to hash and compare keys.</para>
  2507. <para>A join refers to the operation of correlating the elements of two sources of information based on a common key. <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> brings the two information sources and the keys by which they are matched together in one method call. This differs from the use of <unmanagedCodeEntityReference>SelectMany</unmanagedCodeEntityReference>, which requires more than one method call to perform the same operation.</para>
  2508. <para>
  2509. <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> preserves the order of the elements of <paramref name="outer" />, and for each of these elements, the order of the matching elements of <paramref name="inner" />.</para>
  2510. <para>In query expression syntax, a join (csprcs) or Join (vbprvb) clause translates to an invocation of <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" />.</para>
  2511. <para>In relational database terms, the <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> method implements an inner equijoin. 'Inner' means that only elements that have a match in the other sequence are included in the results. An 'equijoin' is a join in which the keys are compared for equality. A left outer join operation has no dedicated standard query operator, but can be performed by using the <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" /> method. See <format type="text/html"><a href="442d176d-028c-4beb-8d22-407d4ef89107">Joining</a></format>.</para>
  2512. </remarks>
  2513. <summary>
  2514. <attribution license="cc4" from="Microsoft" modified="false" />
  2515. <para>Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.</para>
  2516. </summary>
  2517. <returns>
  2518. <attribution license="cc4" from="Microsoft" modified="false" />
  2519. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that has elements of type <paramref name="TResult" /> that are obtained by performing an inner join on two sequences.</para>
  2520. </returns>
  2521. <param name="outer">
  2522. <attribution license="cc4" from="Microsoft" modified="false" />The first sequence to join.</param>
  2523. <param name="inner">
  2524. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to join to the first sequence.</param>
  2525. <param name="outerKeySelector">
  2526. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the first sequence.</param>
  2527. <param name="innerKeySelector">
  2528. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the second sequence.</param>
  2529. <param name="resultSelector">
  2530. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result element from two matching elements.</param>
  2531. <typeparam name="TOuter">
  2532. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the first sequence.</typeparam>
  2533. <typeparam name="TInner">
  2534. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the second sequence.</typeparam>
  2535. <typeparam name="TKey">
  2536. <attribution license="cc4" from="Microsoft" modified="false" />The type of the keys returned by the key selector functions.</typeparam>
  2537. <typeparam name="TResult">
  2538. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result elements.</typeparam>
  2539. </Docs>
  2540. </Member>
  2541. <Member MemberName="Join&lt;TOuter,TInner,TKey,TResult&gt;">
  2542. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Join&lt;TOuter,TInner,TKey,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TOuter&gt; outer, System.Collections.Generic.IEnumerable&lt;TInner&gt; inner, Func&lt;TOuter,TKey&gt; outerKeySelector, Func&lt;TInner,TKey&gt; innerKeySelector, Func&lt;TOuter,TInner,TResult&gt; resultSelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  2543. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Join&lt;TOuter, TInner, TKey, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TOuter&gt; outer, class System.Collections.Generic.IEnumerable`1&lt;!!TInner&gt; inner, class System.Func`2&lt;!!TOuter, !!TKey&gt; outerKeySelector, class System.Func`2&lt;!!TInner, !!TKey&gt; innerKeySelector, class System.Func`3&lt;!!TOuter, !!TInner, !!TResult&gt; resultSelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  2544. <MemberType>Method</MemberType>
  2545. <AssemblyInfo>
  2546. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2547. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2548. </AssemblyInfo>
  2549. <ReturnValue>
  2550. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  2551. </ReturnValue>
  2552. <TypeParameters>
  2553. <TypeParameter Name="TOuter" />
  2554. <TypeParameter Name="TInner" />
  2555. <TypeParameter Name="TKey" />
  2556. <TypeParameter Name="TResult" />
  2557. </TypeParameters>
  2558. <Parameters>
  2559. <Parameter Name="outer" Type="System.Collections.Generic.IEnumerable&lt;TOuter&gt;" RefType="this" />
  2560. <Parameter Name="inner" Type="System.Collections.Generic.IEnumerable&lt;TInner&gt;" />
  2561. <Parameter Name="outerKeySelector" Type="System.Func&lt;TOuter,TKey&gt;" />
  2562. <Parameter Name="innerKeySelector" Type="System.Func&lt;TInner,TKey&gt;" />
  2563. <Parameter Name="resultSelector" Type="System.Func&lt;TOuter,TInner,TResult&gt;" />
  2564. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  2565. </Parameters>
  2566. <Docs>
  2567. <remarks>
  2568. <attribution license="cc4" from="Microsoft" modified="false" />
  2569. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  2570. <para>If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to hash and compare keys.</para>
  2571. <para>A join refers to the operation of correlating the elements of two sources of information based on a common key. <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> brings the two information sources and the keys by which they are matched together in one method call. This differs from the use of <unmanagedCodeEntityReference>SelectMany</unmanagedCodeEntityReference>, which requires more than one method call to perform the same operation.</para>
  2572. <para>
  2573. <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> preserves the order of the elements of <paramref name="outer" />, and for each of these elements, the order of the matching elements of <paramref name="inner" />.</para>
  2574. <para>In relational database terms, the <see cref="M:System.Linq.Enumerable.Join``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,``1,``3})" /> method implements an inner equijoin. 'Inner' means that only elements that have a match in the other sequence are included in the results. An 'equijoin' is a join in which the keys are compared for equality. A left outer join operation has no dedicated standard query operator, but can be performed by using the <see cref="M:System.Linq.Enumerable.GroupJoin``4(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``1},System.Func{``0,``2},System.Func{``1,``2},System.Func{``0,System.Collections.Generic.IEnumerable{``1},``3})" /> method. See <format type="text/html"><a href="442d176d-028c-4beb-8d22-407d4ef89107">Joining</a></format>.</para>
  2575. </remarks>
  2576. <summary>
  2577. <attribution license="cc4" from="Microsoft" modified="false" />
  2578. <para>Correlates the elements of two sequences based on matching keys. A specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> is used to compare keys.</para>
  2579. </summary>
  2580. <returns>
  2581. <attribution license="cc4" from="Microsoft" modified="false" />
  2582. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that has elements of type <paramref name="TResult" /> that are obtained by performing an inner join on two sequences.</para>
  2583. </returns>
  2584. <param name="outer">
  2585. <attribution license="cc4" from="Microsoft" modified="false" />The first sequence to join.</param>
  2586. <param name="inner">
  2587. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to join to the first sequence.</param>
  2588. <param name="outerKeySelector">
  2589. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the first sequence.</param>
  2590. <param name="innerKeySelector">
  2591. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract the join key from each element of the second sequence.</param>
  2592. <param name="resultSelector">
  2593. <attribution license="cc4" from="Microsoft" modified="false" />A function to create a result element from two matching elements.</param>
  2594. <param name="comparer">
  2595. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to hash and compare keys.</param>
  2596. <typeparam name="TOuter">
  2597. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the first sequence.</typeparam>
  2598. <typeparam name="TInner">
  2599. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the second sequence.</typeparam>
  2600. <typeparam name="TKey">
  2601. <attribution license="cc4" from="Microsoft" modified="false" />The type of the keys returned by the key selector functions.</typeparam>
  2602. <typeparam name="TResult">
  2603. <attribution license="cc4" from="Microsoft" modified="false" />The type of the result elements.</typeparam>
  2604. </Docs>
  2605. </Member>
  2606. <Member MemberName="Last&lt;TSource&gt;">
  2607. <MemberSignature Language="C#" Value="public static TSource Last&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  2608. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource Last&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  2609. <MemberType>Method</MemberType>
  2610. <AssemblyInfo>
  2611. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2612. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2613. </AssemblyInfo>
  2614. <ReturnValue>
  2615. <ReturnType>TSource</ReturnType>
  2616. </ReturnValue>
  2617. <TypeParameters>
  2618. <TypeParameter Name="TSource" />
  2619. </TypeParameters>
  2620. <Parameters>
  2621. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2622. </Parameters>
  2623. <Docs>
  2624. <remarks>
  2625. <attribution license="cc4" from="Microsoft" modified="false" />
  2626. <para>The <see cref="M:System.Linq.Enumerable.Last``1(System.Collections.Generic.IEnumerable{``0})" /> method throws an exception if <paramref name="source" /> contains no elements. To instead return a default value when the source sequence is empty, use the <see cref="M:System.Linq.Enumerable.LastOrDefault``1(System.Collections.Generic.IEnumerable{``0})" /> method.</para>
  2627. </remarks>
  2628. <summary>
  2629. <attribution license="cc4" from="Microsoft" modified="false" />
  2630. <para>Returns the last element of a sequence.</para>
  2631. </summary>
  2632. <returns>
  2633. <attribution license="cc4" from="Microsoft" modified="false" />
  2634. <para>The value at the last position in the source sequence.</para>
  2635. </returns>
  2636. <param name="source">
  2637. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return the last element of.</param>
  2638. <typeparam name="TSource">
  2639. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2640. </Docs>
  2641. </Member>
  2642. <Member MemberName="Last&lt;TSource&gt;">
  2643. <MemberSignature Language="C#" Value="public static TSource Last&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  2644. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource Last&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  2645. <MemberType>Method</MemberType>
  2646. <AssemblyInfo>
  2647. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2648. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2649. </AssemblyInfo>
  2650. <ReturnValue>
  2651. <ReturnType>TSource</ReturnType>
  2652. </ReturnValue>
  2653. <TypeParameters>
  2654. <TypeParameter Name="TSource" />
  2655. </TypeParameters>
  2656. <Parameters>
  2657. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2658. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  2659. </Parameters>
  2660. <Docs>
  2661. <remarks>
  2662. <attribution license="cc4" from="Microsoft" modified="false" />
  2663. <para>The <see cref="M:System.Linq.Enumerable.Last``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method throws an exception if no matching element is found in <paramref name="source" />. To instead return a default value when no matching element is found, use the <see cref="M:System.Linq.Enumerable.LastOrDefault``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method.</para>
  2664. </remarks>
  2665. <summary>
  2666. <attribution license="cc4" from="Microsoft" modified="false" />
  2667. <para>Returns the last element of a sequence that satisfies a specified condition.</para>
  2668. </summary>
  2669. <returns>
  2670. <attribution license="cc4" from="Microsoft" modified="false" />
  2671. <para>The last element in the sequence that passes the test in the specified predicate function.</para>
  2672. </returns>
  2673. <param name="source">
  2674. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return an element from.</param>
  2675. <param name="predicate">
  2676. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  2677. <typeparam name="TSource">
  2678. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2679. </Docs>
  2680. </Member>
  2681. <Member MemberName="LastOrDefault&lt;TSource&gt;">
  2682. <MemberSignature Language="C#" Value="public static TSource LastOrDefault&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  2683. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource LastOrDefault&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  2684. <MemberType>Method</MemberType>
  2685. <AssemblyInfo>
  2686. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2687. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2688. </AssemblyInfo>
  2689. <ReturnValue>
  2690. <ReturnType>TSource</ReturnType>
  2691. </ReturnValue>
  2692. <TypeParameters>
  2693. <TypeParameter Name="TSource" />
  2694. </TypeParameters>
  2695. <Parameters>
  2696. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2697. </Parameters>
  2698. <Docs>
  2699. <remarks>
  2700. <attribution license="cc4" from="Microsoft" modified="false" />
  2701. <para>The default value for reference and nullable types is null.</para>
  2702. <para>The <see cref="Overload:System.Linq.Enumerable.LastOrDefault" /> method does not provide a way to specify a default value. If you want to specify a default value other than default(<paramref name="TSource" />), use the <see cref="M:System.Linq.Enumerable.DefaultIfEmpty``1(System.Collections.Generic.IEnumerable{``0},``0)" /> method as described in the Example section.</para>
  2703. </remarks>
  2704. <summary>
  2705. <attribution license="cc4" from="Microsoft" modified="false" />
  2706. <para>Returns the last element of a sequence, or a default value if the sequence contains no elements.</para>
  2707. </summary>
  2708. <returns>
  2709. <attribution license="cc4" from="Microsoft" modified="false" />
  2710. <para>default(<paramref name="TSource" />) if the source sequence is empty; otherwise, the last element in the <see cref="T:System.Collections.Generic.IEnumerable`1" />.</para>
  2711. </returns>
  2712. <param name="source">
  2713. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return the last element of.</param>
  2714. <typeparam name="TSource">
  2715. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2716. </Docs>
  2717. </Member>
  2718. <Member MemberName="LastOrDefault&lt;TSource&gt;">
  2719. <MemberSignature Language="C#" Value="public static TSource LastOrDefault&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  2720. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource LastOrDefault&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  2721. <MemberType>Method</MemberType>
  2722. <AssemblyInfo>
  2723. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2724. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2725. </AssemblyInfo>
  2726. <ReturnValue>
  2727. <ReturnType>TSource</ReturnType>
  2728. </ReturnValue>
  2729. <TypeParameters>
  2730. <TypeParameter Name="TSource" />
  2731. </TypeParameters>
  2732. <Parameters>
  2733. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2734. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  2735. </Parameters>
  2736. <Docs>
  2737. <remarks>
  2738. <attribution license="cc4" from="Microsoft" modified="false" />
  2739. <para>The default value for reference and nullable types is null.</para>
  2740. </remarks>
  2741. <summary>
  2742. <attribution license="cc4" from="Microsoft" modified="false" />
  2743. <para>Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.</para>
  2744. </summary>
  2745. <returns>
  2746. <attribution license="cc4" from="Microsoft" modified="false" />
  2747. <para>default(<paramref name="TSource" />) if the sequence is empty or if no elements pass the test in the predicate function; otherwise, the last element that passes the test in the predicate function.</para>
  2748. </returns>
  2749. <param name="source">
  2750. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return an element from.</param>
  2751. <param name="predicate">
  2752. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  2753. <typeparam name="TSource">
  2754. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2755. </Docs>
  2756. </Member>
  2757. <Member MemberName="LongCount&lt;TSource&gt;">
  2758. <MemberSignature Language="C#" Value="public static long LongCount&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  2759. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 LongCount&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  2760. <MemberType>Method</MemberType>
  2761. <AssemblyInfo>
  2762. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2763. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2764. </AssemblyInfo>
  2765. <ReturnValue>
  2766. <ReturnType>System.Int64</ReturnType>
  2767. </ReturnValue>
  2768. <TypeParameters>
  2769. <TypeParameter Name="TSource" />
  2770. </TypeParameters>
  2771. <Parameters>
  2772. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2773. </Parameters>
  2774. <Docs>
  2775. <remarks>
  2776. <attribution license="cc4" from="Microsoft" modified="false" />
  2777. <para>Use this method rather than <see cref="M:System.Linq.Enumerable.Count``1(System.Collections.Generic.IEnumerable{``0})" /> when you expect the result to be greater than <see cref="F:System.Int32.MaxValue" />.</para>
  2778. <para>In vbprvb query expression syntax, an Aggregate Into LongCount() clause translates to an invocation of <see cref="M:System.Linq.Enumerable.LongCount``1(System.Collections.Generic.IEnumerable{``0})" />.</para>
  2779. </remarks>
  2780. <summary>
  2781. <attribution license="cc4" from="Microsoft" modified="false" />
  2782. <para>Returns an <see cref="T:System.Int64" /> that represents the total number of elements in a sequence.</para>
  2783. </summary>
  2784. <returns>
  2785. <attribution license="cc4" from="Microsoft" modified="false" />
  2786. <para>The number of elements in the source sequence.</para>
  2787. </returns>
  2788. <param name="source">
  2789. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements to be counted.</param>
  2790. <typeparam name="TSource">
  2791. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2792. </Docs>
  2793. </Member>
  2794. <Member MemberName="LongCount&lt;TSource&gt;">
  2795. <MemberSignature Language="C#" Value="public static long LongCount&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  2796. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 LongCount&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  2797. <MemberType>Method</MemberType>
  2798. <AssemblyInfo>
  2799. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2800. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2801. </AssemblyInfo>
  2802. <ReturnValue>
  2803. <ReturnType>System.Int64</ReturnType>
  2804. </ReturnValue>
  2805. <TypeParameters>
  2806. <TypeParameter Name="TSource" />
  2807. </TypeParameters>
  2808. <Parameters>
  2809. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  2810. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  2811. </Parameters>
  2812. <Docs>
  2813. <remarks>
  2814. <attribution license="cc4" from="Microsoft" modified="false" />
  2815. <para>Use this method rather than <see cref="M:System.Linq.Enumerable.Count``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> when you expect the result to be greater than <see cref="F:System.Int32.MaxValue" />.</para>
  2816. <para>In vbprvb query expression syntax, an Aggregate Into LongCount() clause translates to an invocation of <see cref="M:System.Linq.Enumerable.LongCount``1(System.Collections.Generic.IEnumerable{``0})" />.</para>
  2817. </remarks>
  2818. <summary>
  2819. <attribution license="cc4" from="Microsoft" modified="false" />
  2820. <para>Returns an <see cref="T:System.Int64" /> that represents how many elements in a sequence satisfy a condition.</para>
  2821. </summary>
  2822. <returns>
  2823. <attribution license="cc4" from="Microsoft" modified="false" />
  2824. <para>A number that represents how many elements in the sequence satisfy the condition in the predicate function.</para>
  2825. </returns>
  2826. <param name="source">
  2827. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements to be counted.</param>
  2828. <param name="predicate">
  2829. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  2830. <typeparam name="TSource">
  2831. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  2832. </Docs>
  2833. </Member>
  2834. <Member MemberName="Max">
  2835. <MemberSignature Language="C#" Value="public static decimal Max (this System.Collections.Generic.IEnumerable&lt;decimal&gt; source);" />
  2836. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Max(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Decimal&gt; source) cil managed" />
  2837. <MemberType>Method</MemberType>
  2838. <AssemblyInfo>
  2839. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2840. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2841. </AssemblyInfo>
  2842. <ReturnValue>
  2843. <ReturnType>System.Decimal</ReturnType>
  2844. </ReturnValue>
  2845. <Parameters>
  2846. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Decimal&gt;" RefType="this" />
  2847. </Parameters>
  2848. <Docs>
  2849. <remarks>
  2850. <attribution license="cc4" from="Microsoft" modified="false" />
  2851. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Decimal})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  2852. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  2853. </remarks>
  2854. <summary>
  2855. <attribution license="cc4" from="Microsoft" modified="false" />
  2856. <para>Returns the maximum value in a sequence of <see cref="T:System.Decimal" /> values.</para>
  2857. </summary>
  2858. <returns>
  2859. <attribution license="cc4" from="Microsoft" modified="false" />
  2860. <para>The maximum value in the sequence.</para>
  2861. </returns>
  2862. <param name="source">
  2863. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Decimal" /> values to determine the maximum value of.</param>
  2864. </Docs>
  2865. </Member>
  2866. <Member MemberName="Max">
  2867. <MemberSignature Language="C#" Value="public static double Max (this System.Collections.Generic.IEnumerable&lt;double&gt; source);" />
  2868. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Max(class System.Collections.Generic.IEnumerable`1&lt;float64&gt; source) cil managed" />
  2869. <MemberType>Method</MemberType>
  2870. <AssemblyInfo>
  2871. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2872. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2873. </AssemblyInfo>
  2874. <ReturnValue>
  2875. <ReturnType>System.Double</ReturnType>
  2876. </ReturnValue>
  2877. <Parameters>
  2878. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Double&gt;" RefType="this" />
  2879. </Parameters>
  2880. <Docs>
  2881. <remarks>
  2882. <attribution license="cc4" from="Microsoft" modified="false" />
  2883. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Double})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  2884. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  2885. </remarks>
  2886. <summary>
  2887. <attribution license="cc4" from="Microsoft" modified="false" />
  2888. <para>Returns the maximum value in a sequence of <see cref="T:System.Double" /> values.</para>
  2889. </summary>
  2890. <returns>
  2891. <attribution license="cc4" from="Microsoft" modified="false" />
  2892. <para>The maximum value in the sequence.</para>
  2893. </returns>
  2894. <param name="source">
  2895. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Double" /> values to determine the maximum value of.</param>
  2896. </Docs>
  2897. </Member>
  2898. <Member MemberName="Max">
  2899. <MemberSignature Language="C#" Value="public static int Max (this System.Collections.Generic.IEnumerable&lt;int&gt; source);" />
  2900. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Max(class System.Collections.Generic.IEnumerable`1&lt;int32&gt; source) cil managed" />
  2901. <MemberType>Method</MemberType>
  2902. <AssemblyInfo>
  2903. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2904. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2905. </AssemblyInfo>
  2906. <ReturnValue>
  2907. <ReturnType>System.Int32</ReturnType>
  2908. </ReturnValue>
  2909. <Parameters>
  2910. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int32&gt;" RefType="this" />
  2911. </Parameters>
  2912. <Docs>
  2913. <remarks>
  2914. <attribution license="cc4" from="Microsoft" modified="false" />
  2915. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Int32})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  2916. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  2917. </remarks>
  2918. <summary>
  2919. <attribution license="cc4" from="Microsoft" modified="false" />
  2920. <para>Returns the maximum value in a sequence of <see cref="T:System.Int32" /> values.</para>
  2921. </summary>
  2922. <returns>
  2923. <attribution license="cc4" from="Microsoft" modified="false" />
  2924. <para>The maximum value in the sequence.</para>
  2925. </returns>
  2926. <param name="source">
  2927. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int32" /> values to determine the maximum value of.</param>
  2928. </Docs>
  2929. </Member>
  2930. <Member MemberName="Max">
  2931. <MemberSignature Language="C#" Value="public static long Max (this System.Collections.Generic.IEnumerable&lt;long&gt; source);" />
  2932. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 Max(class System.Collections.Generic.IEnumerable`1&lt;int64&gt; source) cil managed" />
  2933. <MemberType>Method</MemberType>
  2934. <AssemblyInfo>
  2935. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2936. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2937. </AssemblyInfo>
  2938. <ReturnValue>
  2939. <ReturnType>System.Int64</ReturnType>
  2940. </ReturnValue>
  2941. <Parameters>
  2942. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int64&gt;" RefType="this" />
  2943. </Parameters>
  2944. <Docs>
  2945. <remarks>
  2946. <attribution license="cc4" from="Microsoft" modified="false" />
  2947. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Int64})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  2948. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  2949. </remarks>
  2950. <summary>
  2951. <attribution license="cc4" from="Microsoft" modified="false" />
  2952. <para>Returns the maximum value in a sequence of <see cref="T:System.Int64" /> values.</para>
  2953. </summary>
  2954. <returns>
  2955. <attribution license="cc4" from="Microsoft" modified="false" />
  2956. <para>The maximum value in the sequence.</para>
  2957. </returns>
  2958. <param name="source">
  2959. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int64" /> values to determine the maximum value of.</param>
  2960. </Docs>
  2961. </Member>
  2962. <Member MemberName="Max">
  2963. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Max (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;decimal&gt;&gt; source);" />
  2964. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Max(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; source) cil managed" />
  2965. <MemberType>Method</MemberType>
  2966. <AssemblyInfo>
  2967. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  2968. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  2969. </AssemblyInfo>
  2970. <ReturnValue>
  2971. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  2972. </ReturnValue>
  2973. <Parameters>
  2974. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Decimal&gt;&gt;" RefType="this" />
  2975. </Parameters>
  2976. <Docs>
  2977. <remarks>
  2978. <attribution license="cc4" from="Microsoft" modified="false" />
  2979. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Nullable{System.Decimal}})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  2980. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  2981. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  2982. </remarks>
  2983. <summary>
  2984. <attribution license="cc4" from="Microsoft" modified="false" />
  2985. <para>Returns the maximum value in a sequence of nullable <see cref="T:System.Decimal" /> values.</para>
  2986. </summary>
  2987. <returns>
  2988. <attribution license="cc4" from="Microsoft" modified="false" />
  2989. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Decimal&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Decimal)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence. </para>
  2990. </returns>
  2991. <param name="source">
  2992. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Decimal" /> values to determine the maximum value of.</param>
  2993. </Docs>
  2994. </Member>
  2995. <Member MemberName="Max">
  2996. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Max (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;double&gt;&gt; source);" />
  2997. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Max(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float64&gt;&gt; source) cil managed" />
  2998. <MemberType>Method</MemberType>
  2999. <AssemblyInfo>
  3000. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3001. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3002. </AssemblyInfo>
  3003. <ReturnValue>
  3004. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  3005. </ReturnValue>
  3006. <Parameters>
  3007. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Double&gt;&gt;" RefType="this" />
  3008. </Parameters>
  3009. <Docs>
  3010. <remarks>
  3011. <attribution license="cc4" from="Microsoft" modified="false" />
  3012. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Nullable{System.Double}})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3013. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3014. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3015. </remarks>
  3016. <summary>
  3017. <attribution license="cc4" from="Microsoft" modified="false" />
  3018. <para>Returns the maximum value in a sequence of nullable <see cref="T:System.Double" /> values.</para>
  3019. </summary>
  3020. <returns>
  3021. <attribution license="cc4" from="Microsoft" modified="false" />
  3022. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Double&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Double)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence.</para>
  3023. </returns>
  3024. <param name="source">
  3025. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Double" /> values to determine the maximum value of.</param>
  3026. </Docs>
  3027. </Member>
  3028. <Member MemberName="Max">
  3029. <MemberSignature Language="C#" Value="public static Nullable&lt;int&gt; Max (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;int&gt;&gt; source);" />
  3030. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int32&gt; Max(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int32&gt;&gt; source) cil managed" />
  3031. <MemberType>Method</MemberType>
  3032. <AssemblyInfo>
  3033. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3034. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3035. </AssemblyInfo>
  3036. <ReturnValue>
  3037. <ReturnType>System.Nullable&lt;System.Int32&gt;</ReturnType>
  3038. </ReturnValue>
  3039. <Parameters>
  3040. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int32&gt;&gt;" RefType="this" />
  3041. </Parameters>
  3042. <Docs>
  3043. <remarks>
  3044. <attribution license="cc4" from="Microsoft" modified="false" />
  3045. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Nullable{System.Int32}})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3046. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3047. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3048. </remarks>
  3049. <summary>
  3050. <attribution license="cc4" from="Microsoft" modified="false" />
  3051. <para>Returns the maximum value in a sequence of nullable <see cref="T:System.Int32" /> values.</para>
  3052. </summary>
  3053. <returns>
  3054. <attribution license="cc4" from="Microsoft" modified="false" />
  3055. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int32)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence. </para>
  3056. </returns>
  3057. <param name="source">
  3058. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int32" /> values to determine the maximum value of.</param>
  3059. </Docs>
  3060. </Member>
  3061. <Member MemberName="Max">
  3062. <MemberSignature Language="C#" Value="public static Nullable&lt;long&gt; Max (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;long&gt;&gt; source);" />
  3063. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int64&gt; Max(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int64&gt;&gt; source) cil managed" />
  3064. <MemberType>Method</MemberType>
  3065. <AssemblyInfo>
  3066. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3067. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3068. </AssemblyInfo>
  3069. <ReturnValue>
  3070. <ReturnType>System.Nullable&lt;System.Int64&gt;</ReturnType>
  3071. </ReturnValue>
  3072. <Parameters>
  3073. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int64&gt;&gt;" RefType="this" />
  3074. </Parameters>
  3075. <Docs>
  3076. <remarks>
  3077. <attribution license="cc4" from="Microsoft" modified="false" />
  3078. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Nullable{System.Int64}})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3079. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3080. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3081. </remarks>
  3082. <summary>
  3083. <attribution license="cc4" from="Microsoft" modified="false" />
  3084. <para>Returns the maximum value in a sequence of nullable <see cref="T:System.Int64" /> values.</para>
  3085. </summary>
  3086. <returns>
  3087. <attribution license="cc4" from="Microsoft" modified="false" />
  3088. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Int64&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int64)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence. </para>
  3089. </returns>
  3090. <param name="source">
  3091. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int64" /> values to determine the maximum value of.</param>
  3092. </Docs>
  3093. </Member>
  3094. <Member MemberName="Max">
  3095. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Max (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;float&gt;&gt; source);" />
  3096. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Max(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float32&gt;&gt; source) cil managed" />
  3097. <MemberType>Method</MemberType>
  3098. <AssemblyInfo>
  3099. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3100. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3101. </AssemblyInfo>
  3102. <ReturnValue>
  3103. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  3104. </ReturnValue>
  3105. <Parameters>
  3106. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Single&gt;&gt;" RefType="this" />
  3107. </Parameters>
  3108. <Docs>
  3109. <remarks>
  3110. <attribution license="cc4" from="Microsoft" modified="false" />
  3111. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Nullable{System.Single}})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3112. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3113. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3114. </remarks>
  3115. <summary>
  3116. <attribution license="cc4" from="Microsoft" modified="false" />
  3117. <para>Returns the maximum value in a sequence of nullable <see cref="T:System.Single" /> values.</para>
  3118. </summary>
  3119. <returns>
  3120. <attribution license="cc4" from="Microsoft" modified="false" />
  3121. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Single&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Single)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence.</para>
  3122. </returns>
  3123. <param name="source">
  3124. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Single" /> values to determine the maximum value of.</param>
  3125. </Docs>
  3126. </Member>
  3127. <Member MemberName="Max">
  3128. <MemberSignature Language="C#" Value="public static float Max (this System.Collections.Generic.IEnumerable&lt;float&gt; source);" />
  3129. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Max(class System.Collections.Generic.IEnumerable`1&lt;float32&gt; source) cil managed" />
  3130. <MemberType>Method</MemberType>
  3131. <AssemblyInfo>
  3132. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3133. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3134. </AssemblyInfo>
  3135. <ReturnValue>
  3136. <ReturnType>System.Single</ReturnType>
  3137. </ReturnValue>
  3138. <Parameters>
  3139. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Single&gt;" RefType="this" />
  3140. </Parameters>
  3141. <Docs>
  3142. <remarks>
  3143. <attribution license="cc4" from="Microsoft" modified="false" />
  3144. <para>The <see cref="M:System.Linq.Enumerable.Max(System.Collections.Generic.IEnumerable{System.Single})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3145. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3146. </remarks>
  3147. <summary>
  3148. <attribution license="cc4" from="Microsoft" modified="false" />
  3149. <para>Returns the maximum value in a sequence of <see cref="T:System.Single" /> values.</para>
  3150. </summary>
  3151. <returns>
  3152. <attribution license="cc4" from="Microsoft" modified="false" />
  3153. <para>The maximum value in the sequence.</para>
  3154. </returns>
  3155. <param name="source">
  3156. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Single" /> values to determine the maximum value of.</param>
  3157. </Docs>
  3158. </Member>
  3159. <Member MemberName="Max&lt;TSource&gt;">
  3160. <MemberSignature Language="C#" Value="public static TSource Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  3161. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  3162. <MemberType>Method</MemberType>
  3163. <AssemblyInfo>
  3164. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3165. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3166. </AssemblyInfo>
  3167. <ReturnValue>
  3168. <ReturnType>TSource</ReturnType>
  3169. </ReturnValue>
  3170. <TypeParameters>
  3171. <TypeParameter Name="TSource" />
  3172. </TypeParameters>
  3173. <Parameters>
  3174. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3175. </Parameters>
  3176. <Docs>
  3177. <remarks>
  3178. <attribution license="cc4" from="Microsoft" modified="false" />
  3179. <para>If type <paramref name="TSource" /> implements <see cref="T:System.IComparable`1" />, the <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0})" /> method uses that implementation to compare values. Otherwise, if type <paramref name="TSource" /> implements <see cref="T:System.IComparable" />, that implementation is used to compare values.</para>
  3180. <para>If <paramref name="TSource" /> is a reference type and the source sequence is empty or contains only values that are null, this method returns null.</para>
  3181. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3182. </remarks>
  3183. <summary>
  3184. <attribution license="cc4" from="Microsoft" modified="false" />
  3185. <para>Returns the maximum value in a generic sequence.</para>
  3186. </summary>
  3187. <returns>
  3188. <attribution license="cc4" from="Microsoft" modified="false" />
  3189. <para>The maximum value in the sequence.</para>
  3190. </returns>
  3191. <param name="source">
  3192. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3193. <typeparam name="TSource">
  3194. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3195. </Docs>
  3196. </Member>
  3197. <Member MemberName="Max&lt;TSource&gt;">
  3198. <MemberSignature Language="C#" Value="public static decimal Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,decimal&gt; selector);" />
  3199. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Decimal&gt; selector) cil managed" />
  3200. <MemberType>Method</MemberType>
  3201. <AssemblyInfo>
  3202. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3203. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3204. </AssemblyInfo>
  3205. <ReturnValue>
  3206. <ReturnType>System.Decimal</ReturnType>
  3207. </ReturnValue>
  3208. <TypeParameters>
  3209. <TypeParameter Name="TSource" />
  3210. </TypeParameters>
  3211. <Parameters>
  3212. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3213. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Decimal&gt;" />
  3214. </Parameters>
  3215. <Docs>
  3216. <remarks>
  3217. <attribution license="cc4" from="Microsoft" modified="false" />
  3218. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Decimal})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3219. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Decimal" />.</para>
  3220. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3221. </remarks>
  3222. <summary>
  3223. <attribution license="cc4" from="Microsoft" modified="false" />
  3224. <para>Invokes a transform function on each element of a sequence and returns the maximum <see cref="T:System.Decimal" /> value.</para>
  3225. </summary>
  3226. <returns>
  3227. <attribution license="cc4" from="Microsoft" modified="false" />
  3228. <para>The maximum value in the sequence.</para>
  3229. </returns>
  3230. <param name="source">
  3231. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3232. <param name="selector">
  3233. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3234. <typeparam name="TSource">
  3235. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3236. </Docs>
  3237. </Member>
  3238. <Member MemberName="Max&lt;TSource&gt;">
  3239. <MemberSignature Language="C#" Value="public static double Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,double&gt; selector);" />
  3240. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float64&gt; selector) cil managed" />
  3241. <MemberType>Method</MemberType>
  3242. <AssemblyInfo>
  3243. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3244. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3245. </AssemblyInfo>
  3246. <ReturnValue>
  3247. <ReturnType>System.Double</ReturnType>
  3248. </ReturnValue>
  3249. <TypeParameters>
  3250. <TypeParameter Name="TSource" />
  3251. </TypeParameters>
  3252. <Parameters>
  3253. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3254. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Double&gt;" />
  3255. </Parameters>
  3256. <Docs>
  3257. <remarks>
  3258. <attribution license="cc4" from="Microsoft" modified="false" />
  3259. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Double})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3260. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Double" />.</para>
  3261. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3262. </remarks>
  3263. <summary>
  3264. <attribution license="cc4" from="Microsoft" modified="false" />
  3265. <para>Invokes a transform function on each element of a sequence and returns the maximum <see cref="T:System.Double" /> value.</para>
  3266. </summary>
  3267. <returns>
  3268. <attribution license="cc4" from="Microsoft" modified="false" />
  3269. <para>The maximum value in the sequence.</para>
  3270. </returns>
  3271. <param name="source">
  3272. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3273. <param name="selector">
  3274. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3275. <typeparam name="TSource">
  3276. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3277. </Docs>
  3278. </Member>
  3279. <Member MemberName="Max&lt;TSource&gt;">
  3280. <MemberSignature Language="C#" Value="public static int Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int&gt; selector);" />
  3281. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int32&gt; selector) cil managed" />
  3282. <MemberType>Method</MemberType>
  3283. <AssemblyInfo>
  3284. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3285. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3286. </AssemblyInfo>
  3287. <ReturnValue>
  3288. <ReturnType>System.Int32</ReturnType>
  3289. </ReturnValue>
  3290. <TypeParameters>
  3291. <TypeParameter Name="TSource" />
  3292. </TypeParameters>
  3293. <Parameters>
  3294. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3295. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int32&gt;" />
  3296. </Parameters>
  3297. <Docs>
  3298. <remarks>
  3299. <attribution license="cc4" from="Microsoft" modified="false" />
  3300. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3301. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Int32" />.</para>
  3302. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3303. </remarks>
  3304. <summary>
  3305. <attribution license="cc4" from="Microsoft" modified="false" />
  3306. <para>Invokes a transform function on each element of a sequence and returns the maximum <see cref="T:System.Int32" /> value.</para>
  3307. </summary>
  3308. <returns>
  3309. <attribution license="cc4" from="Microsoft" modified="false" />
  3310. <para>The maximum value in the sequence.</para>
  3311. </returns>
  3312. <param name="source">
  3313. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3314. <param name="selector">
  3315. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3316. <typeparam name="TSource">
  3317. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3318. </Docs>
  3319. </Member>
  3320. <Member MemberName="Max&lt;TSource&gt;">
  3321. <MemberSignature Language="C#" Value="public static long Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,long&gt; selector);" />
  3322. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int64&gt; selector) cil managed" />
  3323. <MemberType>Method</MemberType>
  3324. <AssemblyInfo>
  3325. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3326. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3327. </AssemblyInfo>
  3328. <ReturnValue>
  3329. <ReturnType>System.Int64</ReturnType>
  3330. </ReturnValue>
  3331. <TypeParameters>
  3332. <TypeParameter Name="TSource" />
  3333. </TypeParameters>
  3334. <Parameters>
  3335. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3336. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int64&gt;" />
  3337. </Parameters>
  3338. <Docs>
  3339. <remarks>
  3340. <attribution license="cc4" from="Microsoft" modified="false" />
  3341. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int64})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3342. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Int64" />.</para>
  3343. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3344. </remarks>
  3345. <summary>
  3346. <attribution license="cc4" from="Microsoft" modified="false" />
  3347. <para>Invokes a transform function on each element of a sequence and returns the maximum <see cref="T:System.Int64" /> value.</para>
  3348. </summary>
  3349. <returns>
  3350. <attribution license="cc4" from="Microsoft" modified="false" />
  3351. <para>The maximum value in the sequence.</para>
  3352. </returns>
  3353. <param name="source">
  3354. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3355. <param name="selector">
  3356. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3357. <typeparam name="TSource">
  3358. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3359. </Docs>
  3360. </Member>
  3361. <Member MemberName="Max&lt;TSource&gt;">
  3362. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;decimal&gt;&gt; selector);" />
  3363. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; selector) cil managed" />
  3364. <MemberType>Method</MemberType>
  3365. <AssemblyInfo>
  3366. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3367. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3368. </AssemblyInfo>
  3369. <ReturnValue>
  3370. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  3371. </ReturnValue>
  3372. <TypeParameters>
  3373. <TypeParameter Name="TSource" />
  3374. </TypeParameters>
  3375. <Parameters>
  3376. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3377. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Decimal&gt;&gt;" />
  3378. </Parameters>
  3379. <Docs>
  3380. <remarks>
  3381. <attribution license="cc4" from="Microsoft" modified="false" />
  3382. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Decimal}})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3383. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Decimal&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Decimal)</unmanagedCodeEntityReference> in vbprvb.</para>
  3384. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3385. </remarks>
  3386. <summary>
  3387. <attribution license="cc4" from="Microsoft" modified="false" />
  3388. <para>Invokes a transform function on each element of a sequence and returns the maximum nullable <see cref="T:System.Decimal" /> value.</para>
  3389. </summary>
  3390. <returns>
  3391. <attribution license="cc4" from="Microsoft" modified="false" />
  3392. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Decimal&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Decimal)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence.</para>
  3393. </returns>
  3394. <param name="source">
  3395. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3396. <param name="selector">
  3397. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3398. <typeparam name="TSource">
  3399. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3400. </Docs>
  3401. </Member>
  3402. <Member MemberName="Max&lt;TSource&gt;">
  3403. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;double&gt;&gt; selector);" />
  3404. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float64&gt;&gt; selector) cil managed" />
  3405. <MemberType>Method</MemberType>
  3406. <AssemblyInfo>
  3407. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3408. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3409. </AssemblyInfo>
  3410. <ReturnValue>
  3411. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  3412. </ReturnValue>
  3413. <TypeParameters>
  3414. <TypeParameter Name="TSource" />
  3415. </TypeParameters>
  3416. <Parameters>
  3417. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3418. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Double&gt;&gt;" />
  3419. </Parameters>
  3420. <Docs>
  3421. <remarks>
  3422. <attribution license="cc4" from="Microsoft" modified="false" />
  3423. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Double}})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3424. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Double&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Double)</unmanagedCodeEntityReference> in vbprvb.</para>
  3425. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3426. </remarks>
  3427. <summary>
  3428. <attribution license="cc4" from="Microsoft" modified="false" />
  3429. <para>Invokes a transform function on each element of a sequence and returns the maximum nullable <see cref="T:System.Double" /> value.</para>
  3430. </summary>
  3431. <returns>
  3432. <attribution license="cc4" from="Microsoft" modified="false" />
  3433. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Double&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Double)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence.</para>
  3434. </returns>
  3435. <param name="source">
  3436. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3437. <param name="selector">
  3438. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3439. <typeparam name="TSource">
  3440. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3441. </Docs>
  3442. </Member>
  3443. <Member MemberName="Max&lt;TSource&gt;">
  3444. <MemberSignature Language="C#" Value="public static Nullable&lt;int&gt; Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;int&gt;&gt; selector);" />
  3445. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int32&gt; Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int32&gt;&gt; selector) cil managed" />
  3446. <MemberType>Method</MemberType>
  3447. <AssemblyInfo>
  3448. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3449. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3450. </AssemblyInfo>
  3451. <ReturnValue>
  3452. <ReturnType>System.Nullable&lt;System.Int32&gt;</ReturnType>
  3453. </ReturnValue>
  3454. <TypeParameters>
  3455. <TypeParameter Name="TSource" />
  3456. </TypeParameters>
  3457. <Parameters>
  3458. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3459. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int32&gt;&gt;" />
  3460. </Parameters>
  3461. <Docs>
  3462. <remarks>
  3463. <attribution license="cc4" from="Microsoft" modified="false" />
  3464. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Int32}})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3465. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int32)</unmanagedCodeEntityReference> in vbprvb.</para>
  3466. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3467. </remarks>
  3468. <summary>
  3469. <attribution license="cc4" from="Microsoft" modified="false" />
  3470. <para>Invokes a transform function on each element of a sequence and returns the maximum nullable <see cref="T:System.Int32" /> value.</para>
  3471. </summary>
  3472. <returns>
  3473. <attribution license="cc4" from="Microsoft" modified="false" />
  3474. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int32)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence.</para>
  3475. </returns>
  3476. <param name="source">
  3477. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3478. <param name="selector">
  3479. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3480. <typeparam name="TSource">
  3481. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3482. </Docs>
  3483. </Member>
  3484. <Member MemberName="Max&lt;TSource&gt;">
  3485. <MemberSignature Language="C#" Value="public static Nullable&lt;long&gt; Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;long&gt;&gt; selector);" />
  3486. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int64&gt; Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int64&gt;&gt; selector) cil managed" />
  3487. <MemberType>Method</MemberType>
  3488. <AssemblyInfo>
  3489. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3490. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3491. </AssemblyInfo>
  3492. <ReturnValue>
  3493. <ReturnType>System.Nullable&lt;System.Int64&gt;</ReturnType>
  3494. </ReturnValue>
  3495. <TypeParameters>
  3496. <TypeParameter Name="TSource" />
  3497. </TypeParameters>
  3498. <Parameters>
  3499. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3500. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int64&gt;&gt;" />
  3501. </Parameters>
  3502. <Docs>
  3503. <remarks>
  3504. <attribution license="cc4" from="Microsoft" modified="false" />
  3505. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Int64}})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3506. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Int64&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int64)</unmanagedCodeEntityReference> in vbprvb.</para>
  3507. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3508. </remarks>
  3509. <summary>
  3510. <attribution license="cc4" from="Microsoft" modified="false" />
  3511. <para>Invokes a transform function on each element of a sequence and returns the maximum nullable <see cref="T:System.Int64" /> value.</para>
  3512. </summary>
  3513. <returns>
  3514. <attribution license="cc4" from="Microsoft" modified="false" />
  3515. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Int64&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int64)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence.</para>
  3516. </returns>
  3517. <param name="source">
  3518. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3519. <param name="selector">
  3520. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3521. <typeparam name="TSource">
  3522. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3523. </Docs>
  3524. </Member>
  3525. <Member MemberName="Max&lt;TSource&gt;">
  3526. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;float&gt;&gt; selector);" />
  3527. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float32&gt;&gt; selector) cil managed" />
  3528. <MemberType>Method</MemberType>
  3529. <AssemblyInfo>
  3530. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3531. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3532. </AssemblyInfo>
  3533. <ReturnValue>
  3534. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  3535. </ReturnValue>
  3536. <TypeParameters>
  3537. <TypeParameter Name="TSource" />
  3538. </TypeParameters>
  3539. <Parameters>
  3540. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3541. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Single&gt;&gt;" />
  3542. </Parameters>
  3543. <Docs>
  3544. <remarks>
  3545. <attribution license="cc4" from="Microsoft" modified="false" />
  3546. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Single}})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3547. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Single&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Single)</unmanagedCodeEntityReference> in vbprvb.</para>
  3548. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3549. </remarks>
  3550. <summary>
  3551. <attribution license="cc4" from="Microsoft" modified="false" />
  3552. <para>Invokes a transform function on each element of a sequence and returns the maximum nullable <see cref="T:System.Single" /> value.</para>
  3553. </summary>
  3554. <returns>
  3555. <attribution license="cc4" from="Microsoft" modified="false" />
  3556. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Single&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Single)</unmanagedCodeEntityReference> in vbprvb that corresponds to the maximum value in the sequence.</para>
  3557. </returns>
  3558. <param name="source">
  3559. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3560. <param name="selector">
  3561. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3562. <typeparam name="TSource">
  3563. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3564. </Docs>
  3565. </Member>
  3566. <Member MemberName="Max&lt;TSource&gt;">
  3567. <MemberSignature Language="C#" Value="public static float Max&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,float&gt; selector);" />
  3568. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Max&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float32&gt; selector) cil managed" />
  3569. <MemberType>Method</MemberType>
  3570. <AssemblyInfo>
  3571. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3572. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3573. </AssemblyInfo>
  3574. <ReturnValue>
  3575. <ReturnType>System.Single</ReturnType>
  3576. </ReturnValue>
  3577. <TypeParameters>
  3578. <TypeParameter Name="TSource" />
  3579. </TypeParameters>
  3580. <Parameters>
  3581. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3582. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Single&gt;" />
  3583. </Parameters>
  3584. <Docs>
  3585. <remarks>
  3586. <attribution license="cc4" from="Microsoft" modified="false" />
  3587. <para>The <see cref="M:System.Linq.Enumerable.Max``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Single})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3588. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Single" />.</para>
  3589. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3590. </remarks>
  3591. <summary>
  3592. <attribution license="cc4" from="Microsoft" modified="false" />
  3593. <para>Invokes a transform function on each element of a sequence and returns the maximum <see cref="T:System.Single" /> value.</para>
  3594. </summary>
  3595. <returns>
  3596. <attribution license="cc4" from="Microsoft" modified="false" />
  3597. <para>The maximum value in the sequence.</para>
  3598. </returns>
  3599. <param name="source">
  3600. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3601. <param name="selector">
  3602. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3603. <typeparam name="TSource">
  3604. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3605. </Docs>
  3606. </Member>
  3607. <Member MemberName="Max&lt;TSource,TResult&gt;">
  3608. <MemberSignature Language="C#" Value="public static TResult Max&lt;TSource,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TResult&gt; selector);" />
  3609. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TResult Max&lt;TSource, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TResult&gt; selector) cil managed" />
  3610. <MemberType>Method</MemberType>
  3611. <AssemblyInfo>
  3612. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3613. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3614. </AssemblyInfo>
  3615. <ReturnValue>
  3616. <ReturnType>TResult</ReturnType>
  3617. </ReturnValue>
  3618. <TypeParameters>
  3619. <TypeParameter Name="TSource" />
  3620. <TypeParameter Name="TResult" />
  3621. </TypeParameters>
  3622. <Parameters>
  3623. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3624. <Parameter Name="selector" Type="System.Func&lt;TSource,TResult&gt;" />
  3625. </Parameters>
  3626. <Docs>
  3627. <remarks>
  3628. <attribution license="cc4" from="Microsoft" modified="false" />
  3629. <para>If type <paramref name="TResult" /> implements <see cref="T:System.IComparable`1" />, this method uses that implementation to compare values. Otherwise, if type <paramref name="TResult" /> implements <see cref="T:System.IComparable" />, that implementation is used to compare values.</para>
  3630. <para>In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Max" />.</para>
  3631. </remarks>
  3632. <summary>
  3633. <attribution license="cc4" from="Microsoft" modified="false" />
  3634. <para>Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.</para>
  3635. </summary>
  3636. <returns>
  3637. <attribution license="cc4" from="Microsoft" modified="false" />
  3638. <para>The maximum value in the sequence.</para>
  3639. </returns>
  3640. <param name="source">
  3641. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the maximum value of.</param>
  3642. <param name="selector">
  3643. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  3644. <typeparam name="TSource">
  3645. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  3646. <typeparam name="TResult">
  3647. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="selector" />.</typeparam>
  3648. </Docs>
  3649. </Member>
  3650. <Member MemberName="Min">
  3651. <MemberSignature Language="C#" Value="public static decimal Min (this System.Collections.Generic.IEnumerable&lt;decimal&gt; source);" />
  3652. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Min(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Decimal&gt; source) cil managed" />
  3653. <MemberType>Method</MemberType>
  3654. <AssemblyInfo>
  3655. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3656. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3657. </AssemblyInfo>
  3658. <ReturnValue>
  3659. <ReturnType>System.Decimal</ReturnType>
  3660. </ReturnValue>
  3661. <Parameters>
  3662. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Decimal&gt;" RefType="this" />
  3663. </Parameters>
  3664. <Docs>
  3665. <remarks>
  3666. <attribution license="cc4" from="Microsoft" modified="false" />
  3667. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Decimal})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3668. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3669. </remarks>
  3670. <summary>
  3671. <attribution license="cc4" from="Microsoft" modified="false" />
  3672. <para>Returns the minimum value in a sequence of <see cref="T:System.Decimal" /> values.</para>
  3673. </summary>
  3674. <returns>
  3675. <attribution license="cc4" from="Microsoft" modified="false" />
  3676. <para>The minimum value in the sequence.</para>
  3677. </returns>
  3678. <param name="source">
  3679. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Decimal" /> values to determine the minimum value of.</param>
  3680. </Docs>
  3681. </Member>
  3682. <Member MemberName="Min">
  3683. <MemberSignature Language="C#" Value="public static double Min (this System.Collections.Generic.IEnumerable&lt;double&gt; source);" />
  3684. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Min(class System.Collections.Generic.IEnumerable`1&lt;float64&gt; source) cil managed" />
  3685. <MemberType>Method</MemberType>
  3686. <AssemblyInfo>
  3687. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3688. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3689. </AssemblyInfo>
  3690. <ReturnValue>
  3691. <ReturnType>System.Double</ReturnType>
  3692. </ReturnValue>
  3693. <Parameters>
  3694. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Double&gt;" RefType="this" />
  3695. </Parameters>
  3696. <Docs>
  3697. <remarks>
  3698. <attribution license="cc4" from="Microsoft" modified="false" />
  3699. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Double})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3700. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3701. </remarks>
  3702. <summary>
  3703. <attribution license="cc4" from="Microsoft" modified="false" />
  3704. <para>Returns the minimum value in a sequence of <see cref="T:System.Double" /> values.</para>
  3705. </summary>
  3706. <returns>
  3707. <attribution license="cc4" from="Microsoft" modified="false" />
  3708. <para>The minimum value in the sequence.</para>
  3709. </returns>
  3710. <param name="source">
  3711. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Double" /> values to determine the minimum value of.</param>
  3712. </Docs>
  3713. </Member>
  3714. <Member MemberName="Min">
  3715. <MemberSignature Language="C#" Value="public static int Min (this System.Collections.Generic.IEnumerable&lt;int&gt; source);" />
  3716. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Min(class System.Collections.Generic.IEnumerable`1&lt;int32&gt; source) cil managed" />
  3717. <MemberType>Method</MemberType>
  3718. <AssemblyInfo>
  3719. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3720. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3721. </AssemblyInfo>
  3722. <ReturnValue>
  3723. <ReturnType>System.Int32</ReturnType>
  3724. </ReturnValue>
  3725. <Parameters>
  3726. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int32&gt;" RefType="this" />
  3727. </Parameters>
  3728. <Docs>
  3729. <remarks>
  3730. <attribution license="cc4" from="Microsoft" modified="false" />
  3731. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Int32})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3732. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3733. </remarks>
  3734. <summary>
  3735. <attribution license="cc4" from="Microsoft" modified="false" />
  3736. <para>Returns the minimum value in a sequence of <see cref="T:System.Int32" /> values.</para>
  3737. </summary>
  3738. <returns>
  3739. <attribution license="cc4" from="Microsoft" modified="false" />
  3740. <para>The minimum value in the sequence.</para>
  3741. </returns>
  3742. <param name="source">
  3743. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int32" /> values to determine the minimum value of.</param>
  3744. </Docs>
  3745. </Member>
  3746. <Member MemberName="Min">
  3747. <MemberSignature Language="C#" Value="public static long Min (this System.Collections.Generic.IEnumerable&lt;long&gt; source);" />
  3748. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 Min(class System.Collections.Generic.IEnumerable`1&lt;int64&gt; source) cil managed" />
  3749. <MemberType>Method</MemberType>
  3750. <AssemblyInfo>
  3751. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3752. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3753. </AssemblyInfo>
  3754. <ReturnValue>
  3755. <ReturnType>System.Int64</ReturnType>
  3756. </ReturnValue>
  3757. <Parameters>
  3758. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int64&gt;" RefType="this" />
  3759. </Parameters>
  3760. <Docs>
  3761. <remarks>
  3762. <attribution license="cc4" from="Microsoft" modified="false" />
  3763. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Int64})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3764. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3765. </remarks>
  3766. <summary>
  3767. <attribution license="cc4" from="Microsoft" modified="false" />
  3768. <para>Returns the minimum value in a sequence of <see cref="T:System.Int64" /> values.</para>
  3769. </summary>
  3770. <returns>
  3771. <attribution license="cc4" from="Microsoft" modified="false" />
  3772. <para>The minimum value in the sequence.</para>
  3773. </returns>
  3774. <param name="source">
  3775. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int64" /> values to determine the minimum value of.</param>
  3776. </Docs>
  3777. </Member>
  3778. <Member MemberName="Min">
  3779. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Min (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;decimal&gt;&gt; source);" />
  3780. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Min(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; source) cil managed" />
  3781. <MemberType>Method</MemberType>
  3782. <AssemblyInfo>
  3783. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3784. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3785. </AssemblyInfo>
  3786. <ReturnValue>
  3787. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  3788. </ReturnValue>
  3789. <Parameters>
  3790. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Decimal&gt;&gt;" RefType="this" />
  3791. </Parameters>
  3792. <Docs>
  3793. <remarks>
  3794. <attribution license="cc4" from="Microsoft" modified="false" />
  3795. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Nullable{System.Decimal}})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3796. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3797. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3798. </remarks>
  3799. <summary>
  3800. <attribution license="cc4" from="Microsoft" modified="false" />
  3801. <para>Returns the minimum value in a sequence of nullable <see cref="T:System.Decimal" /> values.</para>
  3802. </summary>
  3803. <returns>
  3804. <attribution license="cc4" from="Microsoft" modified="false" />
  3805. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Decimal&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Decimal)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  3806. </returns>
  3807. <param name="source">
  3808. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Decimal" /> values to determine the minimum value of.</param>
  3809. </Docs>
  3810. </Member>
  3811. <Member MemberName="Min">
  3812. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Min (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;double&gt;&gt; source);" />
  3813. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Min(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float64&gt;&gt; source) cil managed" />
  3814. <MemberType>Method</MemberType>
  3815. <AssemblyInfo>
  3816. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3817. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3818. </AssemblyInfo>
  3819. <ReturnValue>
  3820. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  3821. </ReturnValue>
  3822. <Parameters>
  3823. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Double&gt;&gt;" RefType="this" />
  3824. </Parameters>
  3825. <Docs>
  3826. <remarks>
  3827. <attribution license="cc4" from="Microsoft" modified="false" />
  3828. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Nullable{System.Double}})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3829. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3830. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3831. </remarks>
  3832. <summary>
  3833. <attribution license="cc4" from="Microsoft" modified="false" />
  3834. <para>Returns the minimum value in a sequence of nullable <see cref="T:System.Double" /> values.</para>
  3835. </summary>
  3836. <returns>
  3837. <attribution license="cc4" from="Microsoft" modified="false" />
  3838. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Double&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Double)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  3839. </returns>
  3840. <param name="source">
  3841. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Double" /> values to determine the minimum value of.</param>
  3842. </Docs>
  3843. </Member>
  3844. <Member MemberName="Min">
  3845. <MemberSignature Language="C#" Value="public static Nullable&lt;int&gt; Min (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;int&gt;&gt; source);" />
  3846. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int32&gt; Min(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int32&gt;&gt; source) cil managed" />
  3847. <MemberType>Method</MemberType>
  3848. <AssemblyInfo>
  3849. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3850. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3851. </AssemblyInfo>
  3852. <ReturnValue>
  3853. <ReturnType>System.Nullable&lt;System.Int32&gt;</ReturnType>
  3854. </ReturnValue>
  3855. <Parameters>
  3856. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int32&gt;&gt;" RefType="this" />
  3857. </Parameters>
  3858. <Docs>
  3859. <remarks>
  3860. <attribution license="cc4" from="Microsoft" modified="false" />
  3861. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Nullable{System.Int32}})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3862. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3863. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3864. </remarks>
  3865. <summary>
  3866. <attribution license="cc4" from="Microsoft" modified="false" />
  3867. <para>Returns the minimum value in a sequence of nullable <see cref="T:System.Int32" /> values.</para>
  3868. </summary>
  3869. <returns>
  3870. <attribution license="cc4" from="Microsoft" modified="false" />
  3871. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int32)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  3872. </returns>
  3873. <param name="source">
  3874. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int32" /> values to determine the minimum value of.</param>
  3875. </Docs>
  3876. </Member>
  3877. <Member MemberName="Min">
  3878. <MemberSignature Language="C#" Value="public static Nullable&lt;long&gt; Min (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;long&gt;&gt; source);" />
  3879. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int64&gt; Min(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int64&gt;&gt; source) cil managed" />
  3880. <MemberType>Method</MemberType>
  3881. <AssemblyInfo>
  3882. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3883. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3884. </AssemblyInfo>
  3885. <ReturnValue>
  3886. <ReturnType>System.Nullable&lt;System.Int64&gt;</ReturnType>
  3887. </ReturnValue>
  3888. <Parameters>
  3889. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int64&gt;&gt;" RefType="this" />
  3890. </Parameters>
  3891. <Docs>
  3892. <remarks>
  3893. <attribution license="cc4" from="Microsoft" modified="false" />
  3894. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Nullable{System.Int64}})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3895. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3896. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3897. </remarks>
  3898. <summary>
  3899. <attribution license="cc4" from="Microsoft" modified="false" />
  3900. <para>Returns the minimum value in a sequence of nullable <see cref="T:System.Int64" /> values.</para>
  3901. </summary>
  3902. <returns>
  3903. <attribution license="cc4" from="Microsoft" modified="false" />
  3904. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Int64&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int64)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  3905. </returns>
  3906. <param name="source">
  3907. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int64" /> values to determine the minimum value of.</param>
  3908. </Docs>
  3909. </Member>
  3910. <Member MemberName="Min">
  3911. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Min (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;float&gt;&gt; source);" />
  3912. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Min(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float32&gt;&gt; source) cil managed" />
  3913. <MemberType>Method</MemberType>
  3914. <AssemblyInfo>
  3915. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3916. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3917. </AssemblyInfo>
  3918. <ReturnValue>
  3919. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  3920. </ReturnValue>
  3921. <Parameters>
  3922. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Single&gt;&gt;" RefType="this" />
  3923. </Parameters>
  3924. <Docs>
  3925. <remarks>
  3926. <attribution license="cc4" from="Microsoft" modified="false" />
  3927. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Nullable{System.Single}})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  3928. <para>If the source sequence is empty or contains only values that are null, this function returns null.</para>
  3929. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3930. </remarks>
  3931. <summary>
  3932. <attribution license="cc4" from="Microsoft" modified="false" />
  3933. <para>Returns the minimum value in a sequence of nullable <see cref="T:System.Single" /> values.</para>
  3934. </summary>
  3935. <returns>
  3936. <attribution license="cc4" from="Microsoft" modified="false" />
  3937. <para>A value of type <unmanagedCodeEntityReference>Nullable&lt;Single&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Single)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  3938. </returns>
  3939. <param name="source">
  3940. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Single" /> values to determine the minimum value of.</param>
  3941. </Docs>
  3942. </Member>
  3943. <Member MemberName="Min">
  3944. <MemberSignature Language="C#" Value="public static float Min (this System.Collections.Generic.IEnumerable&lt;float&gt; source);" />
  3945. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Min(class System.Collections.Generic.IEnumerable`1&lt;float32&gt; source) cil managed" />
  3946. <MemberType>Method</MemberType>
  3947. <AssemblyInfo>
  3948. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3949. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3950. </AssemblyInfo>
  3951. <ReturnValue>
  3952. <ReturnType>System.Single</ReturnType>
  3953. </ReturnValue>
  3954. <Parameters>
  3955. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Single&gt;" RefType="this" />
  3956. </Parameters>
  3957. <Docs>
  3958. <remarks>
  3959. <attribution license="cc4" from="Microsoft" modified="false" />
  3960. <para>The <see cref="M:System.Linq.Enumerable.Min(System.Collections.Generic.IEnumerable{System.Single})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  3961. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3962. </remarks>
  3963. <summary>
  3964. <attribution license="cc4" from="Microsoft" modified="false" />
  3965. <para>Returns the minimum value in a sequence of <see cref="T:System.Single" /> values.</para>
  3966. </summary>
  3967. <returns>
  3968. <attribution license="cc4" from="Microsoft" modified="false" />
  3969. <para>The minimum value in the sequence.</para>
  3970. </returns>
  3971. <param name="source">
  3972. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Single" /> values to determine the minimum value of.</param>
  3973. </Docs>
  3974. </Member>
  3975. <Member MemberName="Min&lt;TSource&gt;">
  3976. <MemberSignature Language="C#" Value="public static TSource Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  3977. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  3978. <MemberType>Method</MemberType>
  3979. <AssemblyInfo>
  3980. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  3981. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  3982. </AssemblyInfo>
  3983. <ReturnValue>
  3984. <ReturnType>TSource</ReturnType>
  3985. </ReturnValue>
  3986. <TypeParameters>
  3987. <TypeParameter Name="TSource" />
  3988. </TypeParameters>
  3989. <Parameters>
  3990. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  3991. </Parameters>
  3992. <Docs>
  3993. <remarks>
  3994. <attribution license="cc4" from="Microsoft" modified="false" />
  3995. <para>If type <paramref name="TSource" /> implements <see cref="T:System.IComparable`1" />, this method uses that implementation to compare values. Otherwise, if type <paramref name="TSource" /> implements <see cref="T:System.IComparable" />, that implementation is used to compare values. </para>
  3996. <para>If <paramref name="TSource" /> is a reference type and the source sequence is empty or contains only values that are null, this function returns null.</para>
  3997. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  3998. </remarks>
  3999. <summary>
  4000. <attribution license="cc4" from="Microsoft" modified="false" />
  4001. <para>Returns the minimum value in a generic sequence.</para>
  4002. </summary>
  4003. <returns>
  4004. <attribution license="cc4" from="Microsoft" modified="false" />
  4005. <para>The minimum value in the sequence.</para>
  4006. </returns>
  4007. <param name="source">
  4008. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4009. <typeparam name="TSource">
  4010. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4011. </Docs>
  4012. </Member>
  4013. <Member MemberName="Min&lt;TSource&gt;">
  4014. <MemberSignature Language="C#" Value="public static decimal Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,decimal&gt; selector);" />
  4015. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Decimal&gt; selector) cil managed" />
  4016. <MemberType>Method</MemberType>
  4017. <AssemblyInfo>
  4018. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4019. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4020. </AssemblyInfo>
  4021. <ReturnValue>
  4022. <ReturnType>System.Decimal</ReturnType>
  4023. </ReturnValue>
  4024. <TypeParameters>
  4025. <TypeParameter Name="TSource" />
  4026. </TypeParameters>
  4027. <Parameters>
  4028. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4029. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Decimal&gt;" />
  4030. </Parameters>
  4031. <Docs>
  4032. <remarks>
  4033. <attribution license="cc4" from="Microsoft" modified="false" />
  4034. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Decimal})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values.</para>
  4035. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Decimal" />.</para>
  4036. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4037. </remarks>
  4038. <summary>
  4039. <attribution license="cc4" from="Microsoft" modified="false" />
  4040. <para>Invokes a transform function on each element of a sequence and returns the minimum <see cref="T:System.Decimal" /> value.</para>
  4041. </summary>
  4042. <returns>
  4043. <attribution license="cc4" from="Microsoft" modified="false" />
  4044. <para>The minimum value in the sequence.</para>
  4045. </returns>
  4046. <param name="source">
  4047. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4048. <param name="selector">
  4049. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4050. <typeparam name="TSource">
  4051. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4052. </Docs>
  4053. </Member>
  4054. <Member MemberName="Min&lt;TSource&gt;">
  4055. <MemberSignature Language="C#" Value="public static double Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,double&gt; selector);" />
  4056. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float64&gt; selector) cil managed" />
  4057. <MemberType>Method</MemberType>
  4058. <AssemblyInfo>
  4059. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4060. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4061. </AssemblyInfo>
  4062. <ReturnValue>
  4063. <ReturnType>System.Double</ReturnType>
  4064. </ReturnValue>
  4065. <TypeParameters>
  4066. <TypeParameter Name="TSource" />
  4067. </TypeParameters>
  4068. <Parameters>
  4069. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4070. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Double&gt;" />
  4071. </Parameters>
  4072. <Docs>
  4073. <remarks>
  4074. <attribution license="cc4" from="Microsoft" modified="false" />
  4075. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Double})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4076. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Double" />.</para>
  4077. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4078. </remarks>
  4079. <summary>
  4080. <attribution license="cc4" from="Microsoft" modified="false" />
  4081. <para>Invokes a transform function on each element of a sequence and returns the minimum <see cref="T:System.Double" /> value.</para>
  4082. </summary>
  4083. <returns>
  4084. <attribution license="cc4" from="Microsoft" modified="false" />
  4085. <para>The minimum value in the sequence.</para>
  4086. </returns>
  4087. <param name="source">
  4088. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4089. <param name="selector">
  4090. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4091. <typeparam name="TSource">
  4092. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4093. </Docs>
  4094. </Member>
  4095. <Member MemberName="Min&lt;TSource&gt;">
  4096. <MemberSignature Language="C#" Value="public static int Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int&gt; selector);" />
  4097. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int32&gt; selector) cil managed" />
  4098. <MemberType>Method</MemberType>
  4099. <AssemblyInfo>
  4100. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4101. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4102. </AssemblyInfo>
  4103. <ReturnValue>
  4104. <ReturnType>System.Int32</ReturnType>
  4105. </ReturnValue>
  4106. <TypeParameters>
  4107. <TypeParameter Name="TSource" />
  4108. </TypeParameters>
  4109. <Parameters>
  4110. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4111. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int32&gt;" />
  4112. </Parameters>
  4113. <Docs>
  4114. <remarks>
  4115. <attribution license="cc4" from="Microsoft" modified="false" />
  4116. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4117. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Int32" />.</para>
  4118. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4119. </remarks>
  4120. <summary>
  4121. <attribution license="cc4" from="Microsoft" modified="false" />
  4122. <para>Invokes a transform function on each element of a sequence and returns the minimum <see cref="T:System.Int32" /> value.</para>
  4123. </summary>
  4124. <returns>
  4125. <attribution license="cc4" from="Microsoft" modified="false" />
  4126. <para>The minimum value in the sequence.</para>
  4127. </returns>
  4128. <param name="source">
  4129. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4130. <param name="selector">
  4131. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4132. <typeparam name="TSource">
  4133. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4134. </Docs>
  4135. </Member>
  4136. <Member MemberName="Min&lt;TSource&gt;">
  4137. <MemberSignature Language="C#" Value="public static long Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,long&gt; selector);" />
  4138. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int64&gt; selector) cil managed" />
  4139. <MemberType>Method</MemberType>
  4140. <AssemblyInfo>
  4141. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4142. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4143. </AssemblyInfo>
  4144. <ReturnValue>
  4145. <ReturnType>System.Int64</ReturnType>
  4146. </ReturnValue>
  4147. <TypeParameters>
  4148. <TypeParameter Name="TSource" />
  4149. </TypeParameters>
  4150. <Parameters>
  4151. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4152. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int64&gt;" />
  4153. </Parameters>
  4154. <Docs>
  4155. <remarks>
  4156. <attribution license="cc4" from="Microsoft" modified="false" />
  4157. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int64})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4158. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Int64" />.</para>
  4159. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4160. </remarks>
  4161. <summary>
  4162. <attribution license="cc4" from="Microsoft" modified="false" />
  4163. <para>Invokes a transform function on each element of a sequence and returns the minimum <see cref="T:System.Int64" /> value.</para>
  4164. </summary>
  4165. <returns>
  4166. <attribution license="cc4" from="Microsoft" modified="false" />
  4167. <para>The minimum value in the sequence.</para>
  4168. </returns>
  4169. <param name="source">
  4170. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4171. <param name="selector">
  4172. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4173. <typeparam name="TSource">
  4174. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4175. </Docs>
  4176. </Member>
  4177. <Member MemberName="Min&lt;TSource&gt;">
  4178. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;decimal&gt;&gt; selector);" />
  4179. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; selector) cil managed" />
  4180. <MemberType>Method</MemberType>
  4181. <AssemblyInfo>
  4182. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4183. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4184. </AssemblyInfo>
  4185. <ReturnValue>
  4186. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  4187. </ReturnValue>
  4188. <TypeParameters>
  4189. <TypeParameter Name="TSource" />
  4190. </TypeParameters>
  4191. <Parameters>
  4192. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4193. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Decimal&gt;&gt;" />
  4194. </Parameters>
  4195. <Docs>
  4196. <remarks>
  4197. <attribution license="cc4" from="Microsoft" modified="false" />
  4198. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Decimal}})" /> method uses the <see cref="T:System.Decimal" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4199. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Decimal&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Decimal)</unmanagedCodeEntityReference> in vbprvb.</para>
  4200. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4201. </remarks>
  4202. <summary>
  4203. <attribution license="cc4" from="Microsoft" modified="false" />
  4204. <para>Invokes a transform function on each element of a sequence and returns the minimum nullable <see cref="T:System.Decimal" /> value.</para>
  4205. </summary>
  4206. <returns>
  4207. <attribution license="cc4" from="Microsoft" modified="false" />
  4208. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Decimal&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Decimal)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  4209. </returns>
  4210. <param name="source">
  4211. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4212. <param name="selector">
  4213. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4214. <typeparam name="TSource">
  4215. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4216. </Docs>
  4217. </Member>
  4218. <Member MemberName="Min&lt;TSource&gt;">
  4219. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;double&gt;&gt; selector);" />
  4220. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float64&gt;&gt; selector) cil managed" />
  4221. <MemberType>Method</MemberType>
  4222. <AssemblyInfo>
  4223. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4224. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4225. </AssemblyInfo>
  4226. <ReturnValue>
  4227. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  4228. </ReturnValue>
  4229. <TypeParameters>
  4230. <TypeParameter Name="TSource" />
  4231. </TypeParameters>
  4232. <Parameters>
  4233. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4234. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Double&gt;&gt;" />
  4235. </Parameters>
  4236. <Docs>
  4237. <remarks>
  4238. <attribution license="cc4" from="Microsoft" modified="false" />
  4239. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Double}})" /> method uses the <see cref="T:System.Double" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4240. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Double&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Double)</unmanagedCodeEntityReference> in vbprvb.</para>
  4241. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4242. </remarks>
  4243. <summary>
  4244. <attribution license="cc4" from="Microsoft" modified="false" />
  4245. <para>Invokes a transform function on each element of a sequence and returns the minimum nullable <see cref="T:System.Double" /> value.</para>
  4246. </summary>
  4247. <returns>
  4248. <attribution license="cc4" from="Microsoft" modified="false" />
  4249. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Double&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Double)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  4250. </returns>
  4251. <param name="source">
  4252. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4253. <param name="selector">
  4254. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4255. <typeparam name="TSource">
  4256. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4257. </Docs>
  4258. </Member>
  4259. <Member MemberName="Min&lt;TSource&gt;">
  4260. <MemberSignature Language="C#" Value="public static Nullable&lt;int&gt; Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;int&gt;&gt; selector);" />
  4261. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int32&gt; Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int32&gt;&gt; selector) cil managed" />
  4262. <MemberType>Method</MemberType>
  4263. <AssemblyInfo>
  4264. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4265. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4266. </AssemblyInfo>
  4267. <ReturnValue>
  4268. <ReturnType>System.Nullable&lt;System.Int32&gt;</ReturnType>
  4269. </ReturnValue>
  4270. <TypeParameters>
  4271. <TypeParameter Name="TSource" />
  4272. </TypeParameters>
  4273. <Parameters>
  4274. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4275. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int32&gt;&gt;" />
  4276. </Parameters>
  4277. <Docs>
  4278. <remarks>
  4279. <attribution license="cc4" from="Microsoft" modified="false" />
  4280. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Int32}})" /> method uses the <see cref="T:System.Int32" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4281. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of source into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int32)</unmanagedCodeEntityReference> in vbprvb.</para>
  4282. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4283. </remarks>
  4284. <summary>
  4285. <attribution license="cc4" from="Microsoft" modified="false" />
  4286. <para>Invokes a transform function on each element of a sequence and returns the minimum nullable <see cref="T:System.Int32" /> value.</para>
  4287. </summary>
  4288. <returns>
  4289. <attribution license="cc4" from="Microsoft" modified="false" />
  4290. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int32)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  4291. </returns>
  4292. <param name="source">
  4293. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4294. <param name="selector">
  4295. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4296. <typeparam name="TSource">
  4297. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4298. </Docs>
  4299. </Member>
  4300. <Member MemberName="Min&lt;TSource&gt;">
  4301. <MemberSignature Language="C#" Value="public static Nullable&lt;long&gt; Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;long&gt;&gt; selector);" />
  4302. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int64&gt; Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int64&gt;&gt; selector) cil managed" />
  4303. <MemberType>Method</MemberType>
  4304. <AssemblyInfo>
  4305. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4306. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4307. </AssemblyInfo>
  4308. <ReturnValue>
  4309. <ReturnType>System.Nullable&lt;System.Int64&gt;</ReturnType>
  4310. </ReturnValue>
  4311. <TypeParameters>
  4312. <TypeParameter Name="TSource" />
  4313. </TypeParameters>
  4314. <Parameters>
  4315. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4316. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int64&gt;&gt;" />
  4317. </Parameters>
  4318. <Docs>
  4319. <remarks>
  4320. <attribution license="cc4" from="Microsoft" modified="false" />
  4321. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Int64}})" /> method uses the <see cref="T:System.Int64" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4322. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Int64&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int64)</unmanagedCodeEntityReference> in vbprvb.</para>
  4323. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4324. </remarks>
  4325. <summary>
  4326. <attribution license="cc4" from="Microsoft" modified="false" />
  4327. <para>Invokes a transform function on each element of a sequence and returns the minimum nullable <see cref="T:System.Int64" /> value.</para>
  4328. </summary>
  4329. <returns>
  4330. <attribution license="cc4" from="Microsoft" modified="false" />
  4331. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Int64&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int64)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  4332. </returns>
  4333. <param name="source">
  4334. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4335. <param name="selector">
  4336. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4337. <typeparam name="TSource">
  4338. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4339. </Docs>
  4340. </Member>
  4341. <Member MemberName="Min&lt;TSource&gt;">
  4342. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;float&gt;&gt; selector);" />
  4343. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float32&gt;&gt; selector) cil managed" />
  4344. <MemberType>Method</MemberType>
  4345. <AssemblyInfo>
  4346. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4347. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4348. </AssemblyInfo>
  4349. <ReturnValue>
  4350. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  4351. </ReturnValue>
  4352. <TypeParameters>
  4353. <TypeParameter Name="TSource" />
  4354. </TypeParameters>
  4355. <Parameters>
  4356. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4357. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Single&gt;&gt;" />
  4358. </Parameters>
  4359. <Docs>
  4360. <remarks>
  4361. <attribution license="cc4" from="Microsoft" modified="false" />
  4362. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Nullable{System.Single}})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4363. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Single&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Single)</unmanagedCodeEntityReference> in vbprvb.</para>
  4364. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4365. </remarks>
  4366. <summary>
  4367. <attribution license="cc4" from="Microsoft" modified="false" />
  4368. <para>Invokes a transform function on each element of a sequence and returns the minimum nullable <see cref="T:System.Single" /> value.</para>
  4369. </summary>
  4370. <returns>
  4371. <attribution license="cc4" from="Microsoft" modified="false" />
  4372. <para>The value of type <unmanagedCodeEntityReference>Nullable&lt;Single&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Single)</unmanagedCodeEntityReference> in vbprvb that corresponds to the minimum value in the sequence.</para>
  4373. </returns>
  4374. <param name="source">
  4375. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4376. <param name="selector">
  4377. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4378. <typeparam name="TSource">
  4379. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4380. </Docs>
  4381. </Member>
  4382. <Member MemberName="Min&lt;TSource&gt;">
  4383. <MemberSignature Language="C#" Value="public static float Min&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,float&gt; selector);" />
  4384. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Min&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float32&gt; selector) cil managed" />
  4385. <MemberType>Method</MemberType>
  4386. <AssemblyInfo>
  4387. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4388. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4389. </AssemblyInfo>
  4390. <ReturnValue>
  4391. <ReturnType>System.Single</ReturnType>
  4392. </ReturnValue>
  4393. <TypeParameters>
  4394. <TypeParameter Name="TSource" />
  4395. </TypeParameters>
  4396. <Parameters>
  4397. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4398. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Single&gt;" />
  4399. </Parameters>
  4400. <Docs>
  4401. <remarks>
  4402. <attribution license="cc4" from="Microsoft" modified="false" />
  4403. <para>The <see cref="M:System.Linq.Enumerable.Min``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Single})" /> method uses the <see cref="T:System.Single" /> implementation of <see cref="T:System.IComparable`1" /> to compare values. </para>
  4404. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Single" />.</para>
  4405. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4406. </remarks>
  4407. <summary>
  4408. <attribution license="cc4" from="Microsoft" modified="false" />
  4409. <para>Invokes a transform function on each element of a sequence and returns the minimum <see cref="T:System.Single" /> value.</para>
  4410. </summary>
  4411. <returns>
  4412. <attribution license="cc4" from="Microsoft" modified="false" />
  4413. <para>The minimum value in the sequence.</para>
  4414. </returns>
  4415. <param name="source">
  4416. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4417. <param name="selector">
  4418. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4419. <typeparam name="TSource">
  4420. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4421. </Docs>
  4422. </Member>
  4423. <Member MemberName="Min&lt;TSource,TResult&gt;">
  4424. <MemberSignature Language="C#" Value="public static TResult Min&lt;TSource,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TResult&gt; selector);" />
  4425. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TResult Min&lt;TSource, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TResult&gt; selector) cil managed" />
  4426. <MemberType>Method</MemberType>
  4427. <AssemblyInfo>
  4428. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4429. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4430. </AssemblyInfo>
  4431. <ReturnValue>
  4432. <ReturnType>TResult</ReturnType>
  4433. </ReturnValue>
  4434. <TypeParameters>
  4435. <TypeParameter Name="TSource" />
  4436. <TypeParameter Name="TResult" />
  4437. </TypeParameters>
  4438. <Parameters>
  4439. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4440. <Parameter Name="selector" Type="System.Func&lt;TSource,TResult&gt;" />
  4441. </Parameters>
  4442. <Docs>
  4443. <remarks>
  4444. <attribution license="cc4" from="Microsoft" modified="false" />
  4445. <para>If type <paramref name="TResult" /> implements <see cref="T:System.IComparable`1" />, this method uses that implementation to compare values. Otherwise, if type <paramref name="TResult" /> implements <see cref="T:System.IComparable" />, that implementation is used to compare values.</para>
  4446. <para>In vbprvb query expression syntax, an Aggregate Into Min() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Min" />.</para>
  4447. </remarks>
  4448. <summary>
  4449. <attribution license="cc4" from="Microsoft" modified="false" />
  4450. <para>Invokes a transform function on each element of a generic sequence and returns the minimum resulting value.</para>
  4451. </summary>
  4452. <returns>
  4453. <attribution license="cc4" from="Microsoft" modified="false" />
  4454. <para>The minimum value in the sequence.</para>
  4455. </returns>
  4456. <param name="source">
  4457. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to determine the minimum value of.</param>
  4458. <param name="selector">
  4459. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4460. <typeparam name="TSource">
  4461. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4462. <typeparam name="TResult">
  4463. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="selector" />.</typeparam>
  4464. </Docs>
  4465. </Member>
  4466. <Member MemberName="OfType&lt;TResult&gt;">
  4467. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; OfType&lt;TResult&gt; (this System.Collections.IEnumerable source);" />
  4468. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; OfType&lt;TResult&gt;(class System.Collections.IEnumerable source) cil managed" />
  4469. <MemberType>Method</MemberType>
  4470. <AssemblyInfo>
  4471. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4472. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4473. </AssemblyInfo>
  4474. <ReturnValue>
  4475. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  4476. </ReturnValue>
  4477. <TypeParameters>
  4478. <TypeParameter Name="TResult" />
  4479. </TypeParameters>
  4480. <Parameters>
  4481. <Parameter Name="source" Type="System.Collections.IEnumerable" RefType="this" />
  4482. </Parameters>
  4483. <Docs>
  4484. <remarks>
  4485. <attribution license="cc4" from="Microsoft" modified="false" />
  4486. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4487. <para>The <see cref="M:System.Linq.Enumerable.OfType``1(System.Collections.IEnumerable)" /> method returns only those elements in <paramref name="source" /> that can be cast to type <paramref name="TResult" />. To instead receive an exception if an element cannot be cast to type <paramref name="TResult" />, use <see cref="M:System.Linq.Enumerable.Cast``1(System.Collections.IEnumerable)" />.</para>
  4488. <para>This method is one of the few standard query operator methods that can be applied to a collection that has a non-parameterized type, such as an <see cref="T:System.Collections.ArrayList" />. This is because <see cref="M:System.Linq.Enumerable.OfType``1(System.Collections.IEnumerable)" /> extends the type <see cref="T:System.Collections.IEnumerable" />. <see cref="M:System.Linq.Enumerable.OfType``1(System.Collections.IEnumerable)" /> cannot only be applied to collections that are based on the parameterized <see cref="T:System.Collections.Generic.IEnumerable`1" /> type, but collections that are based on the non-parameterized <see cref="T:System.Collections.IEnumerable" /> type also.</para>
  4489. <para>By applying <see cref="M:System.Linq.Enumerable.OfType``1(System.Collections.IEnumerable)" /> to a collection that implements <see cref="T:System.Collections.IEnumerable" />, you gain the ability to query the collection by using the standard query operators. For example, specifying a type argument of <see cref="T:System.Object" /> to <see cref="M:System.Linq.Enumerable.OfType``1(System.Collections.IEnumerable)" /> would return an object of type <unmanagedCodeEntityReference>IEnumerable&lt;Object&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of Object)</unmanagedCodeEntityReference> in vbprvb, to which the standard query operators can be applied.</para>
  4490. </remarks>
  4491. <summary>
  4492. <attribution license="cc4" from="Microsoft" modified="false" />
  4493. <para>Filters the elements of an <see cref="T:System.Collections.IEnumerable" /> based on a specified type.</para>
  4494. </summary>
  4495. <returns>
  4496. <attribution license="cc4" from="Microsoft" modified="false" />
  4497. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains elements from the input sequence of type <paramref name="TResult" />.</para>
  4498. </returns>
  4499. <param name="source">
  4500. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.IEnumerable" /> whose elements to filter.</param>
  4501. <typeparam name="TResult">
  4502. <attribution license="cc4" from="Microsoft" modified="false" />The type to filter the elements of the sequence on.</typeparam>
  4503. </Docs>
  4504. </Member>
  4505. <Member MemberName="OrderBy&lt;TSource,TKey&gt;">
  4506. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; OrderBy&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector);" />
  4507. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; OrderBy&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector) cil managed" />
  4508. <MemberType>Method</MemberType>
  4509. <AssemblyInfo>
  4510. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4511. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4512. </AssemblyInfo>
  4513. <ReturnValue>
  4514. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  4515. </ReturnValue>
  4516. <TypeParameters>
  4517. <TypeParameter Name="TSource" />
  4518. <TypeParameter Name="TKey" />
  4519. </TypeParameters>
  4520. <Parameters>
  4521. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4522. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  4523. </Parameters>
  4524. <Docs>
  4525. <remarks>
  4526. <attribution license="cc4" from="Microsoft" modified="false" />
  4527. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4528. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  4529. <para>Two methods are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is the return type of this method. These two methods, namely <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference>, enable you to specify additional sort criteria to sort a sequence. <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> also return an <see cref="T:System.Linq.IOrderedEnumerable`1" />, which means any number of consecutive calls to <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> or <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> can be made.</para>
  4530. <block subset="none" type="note">
  4531. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  4532. </block>
  4533. <para>This method compares keys by using the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" />.</para>
  4534. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  4535. <para>In query expression syntax, an orderby (csprcs) or Order By (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.OrderBy" />.</para>
  4536. </remarks>
  4537. <summary>
  4538. <attribution license="cc4" from="Microsoft" modified="false" />
  4539. <para>Sorts the elements of a sequence in ascending order according to a key.</para>
  4540. </summary>
  4541. <returns>
  4542. <attribution license="cc4" from="Microsoft" modified="false" />
  4543. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted according to a key.</para>
  4544. </returns>
  4545. <param name="source">
  4546. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to order.</param>
  4547. <param name="keySelector">
  4548. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from an element.</param>
  4549. <typeparam name="TSource">
  4550. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4551. <typeparam name="TKey">
  4552. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  4553. </Docs>
  4554. </Member>
  4555. <Member MemberName="OrderBy&lt;TSource,TKey&gt;">
  4556. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; OrderBy&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, System.Collections.Generic.IComparer&lt;TKey&gt; comparer);" />
  4557. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; OrderBy&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Collections.Generic.IComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  4558. <MemberType>Method</MemberType>
  4559. <AssemblyInfo>
  4560. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4561. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4562. </AssemblyInfo>
  4563. <ReturnValue>
  4564. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  4565. </ReturnValue>
  4566. <TypeParameters>
  4567. <TypeParameter Name="TSource" />
  4568. <TypeParameter Name="TKey" />
  4569. </TypeParameters>
  4570. <Parameters>
  4571. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4572. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  4573. <Parameter Name="comparer" Type="System.Collections.Generic.IComparer&lt;TKey&gt;" />
  4574. </Parameters>
  4575. <Docs>
  4576. <remarks>
  4577. <attribution license="cc4" from="Microsoft" modified="false" />
  4578. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4579. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  4580. <para>Two methods are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is the return type of this method. These two methods, namely <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference>, enable you to specify additional sort criteria to sort a sequence. <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> also return an <see cref="T:System.Linq.IOrderedEnumerable`1" />, which means any number of consecutive calls to <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> or <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> can be made.</para>
  4581. <block subset="none" type="note">
  4582. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  4583. </block>
  4584. <para>If <paramref name="comparer" /> is null, the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" /> is used to compare keys.</para>
  4585. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  4586. </remarks>
  4587. <summary>
  4588. <attribution license="cc4" from="Microsoft" modified="false" />
  4589. <para>Sorts the elements of a sequence in ascending order by using a specified comparer.</para>
  4590. </summary>
  4591. <returns>
  4592. <attribution license="cc4" from="Microsoft" modified="false" />
  4593. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted according to a key.</para>
  4594. </returns>
  4595. <param name="source">
  4596. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to order.</param>
  4597. <param name="keySelector">
  4598. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from an element.</param>
  4599. <param name="comparer">
  4600. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IComparer`1" /> to compare keys.</param>
  4601. <typeparam name="TSource">
  4602. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4603. <typeparam name="TKey">
  4604. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  4605. </Docs>
  4606. </Member>
  4607. <Member MemberName="OrderByDescending&lt;TSource,TKey&gt;">
  4608. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; OrderByDescending&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector);" />
  4609. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; OrderByDescending&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector) cil managed" />
  4610. <MemberType>Method</MemberType>
  4611. <AssemblyInfo>
  4612. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4613. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4614. </AssemblyInfo>
  4615. <ReturnValue>
  4616. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  4617. </ReturnValue>
  4618. <TypeParameters>
  4619. <TypeParameter Name="TSource" />
  4620. <TypeParameter Name="TKey" />
  4621. </TypeParameters>
  4622. <Parameters>
  4623. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4624. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  4625. </Parameters>
  4626. <Docs>
  4627. <remarks>
  4628. <attribution license="cc4" from="Microsoft" modified="false" />
  4629. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4630. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  4631. <para>For an example of this method, see <see cref="M:System.Linq.Enumerable.OrderByDescending``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IComparer{``1})" />.</para>
  4632. <para>Two methods are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is the return type of this method. These two methods, namely <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference>, enable you to specify additional sort criteria to sort a sequence. <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> also return an <see cref="T:System.Linq.IOrderedEnumerable`1" />, which means any number of consecutive calls to <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> or <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> can be made.</para>
  4633. <block subset="none" type="note">
  4634. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  4635. </block>
  4636. <para>This method compares keys by using the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" />.</para>
  4637. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  4638. <para>In query expression syntax, an orderby descending (csprcs) or Order By Descending (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />.</para>
  4639. </remarks>
  4640. <summary>
  4641. <attribution license="cc4" from="Microsoft" modified="false" />
  4642. <para>Sorts the elements of a sequence in descending order according to a key.</para>
  4643. </summary>
  4644. <returns>
  4645. <attribution license="cc4" from="Microsoft" modified="false" />
  4646. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted in descending order according to a key.</para>
  4647. </returns>
  4648. <param name="source">
  4649. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to order.</param>
  4650. <param name="keySelector">
  4651. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from an element.</param>
  4652. <typeparam name="TSource">
  4653. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4654. <typeparam name="TKey">
  4655. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  4656. </Docs>
  4657. </Member>
  4658. <Member MemberName="OrderByDescending&lt;TSource,TKey&gt;">
  4659. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; OrderByDescending&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, System.Collections.Generic.IComparer&lt;TKey&gt; comparer);" />
  4660. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; OrderByDescending&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Collections.Generic.IComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  4661. <MemberType>Method</MemberType>
  4662. <AssemblyInfo>
  4663. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4664. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4665. </AssemblyInfo>
  4666. <ReturnValue>
  4667. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  4668. </ReturnValue>
  4669. <TypeParameters>
  4670. <TypeParameter Name="TSource" />
  4671. <TypeParameter Name="TKey" />
  4672. </TypeParameters>
  4673. <Parameters>
  4674. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4675. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  4676. <Parameter Name="comparer" Type="System.Collections.Generic.IComparer&lt;TKey&gt;" />
  4677. </Parameters>
  4678. <Docs>
  4679. <remarks>
  4680. <attribution license="cc4" from="Microsoft" modified="false" />
  4681. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4682. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  4683. <para>Two methods are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is the return type of this method. These two methods, namely <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference>, enable you to specify additional sort criteria to sort a sequence. <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> and <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> also return an <see cref="T:System.Linq.IOrderedEnumerable`1" />, which means any number of consecutive calls to <unmanagedCodeEntityReference>ThenBy</unmanagedCodeEntityReference> or <unmanagedCodeEntityReference>ThenByDescending</unmanagedCodeEntityReference> can be made.</para>
  4684. <block subset="none" type="note">
  4685. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  4686. </block>
  4687. <para>If <paramref name="comparer" /> is null, the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" /> is used to compare keys.</para>
  4688. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  4689. </remarks>
  4690. <summary>
  4691. <attribution license="cc4" from="Microsoft" modified="false" />
  4692. <para>Sorts the elements of a sequence in descending order by using a specified comparer.</para>
  4693. </summary>
  4694. <returns>
  4695. <attribution license="cc4" from="Microsoft" modified="false" />
  4696. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted in descending order according to a key.</para>
  4697. </returns>
  4698. <param name="source">
  4699. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to order.</param>
  4700. <param name="keySelector">
  4701. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from an element.</param>
  4702. <param name="comparer">
  4703. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IComparer`1" /> to compare keys.</param>
  4704. <typeparam name="TSource">
  4705. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4706. <typeparam name="TKey">
  4707. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  4708. </Docs>
  4709. </Member>
  4710. <Member MemberName="Range">
  4711. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;int&gt; Range (int start, int count);" />
  4712. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;int32&gt; Range(int32 start, int32 count) cil managed" />
  4713. <MemberType>Method</MemberType>
  4714. <AssemblyInfo>
  4715. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4716. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4717. </AssemblyInfo>
  4718. <ReturnValue>
  4719. <ReturnType>System.Collections.Generic.IEnumerable&lt;System.Int32&gt;</ReturnType>
  4720. </ReturnValue>
  4721. <Parameters>
  4722. <Parameter Name="start" Type="System.Int32" />
  4723. <Parameter Name="count" Type="System.Int32" />
  4724. </Parameters>
  4725. <Docs>
  4726. <remarks>
  4727. <attribution license="cc4" from="Microsoft" modified="false" />
  4728. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4729. </remarks>
  4730. <summary>
  4731. <attribution license="cc4" from="Microsoft" modified="false" />
  4732. <para>Generates a sequence of integral numbers within a specified range.</para>
  4733. </summary>
  4734. <returns>
  4735. <attribution license="cc4" from="Microsoft" modified="false" />
  4736. <para>An <unmanagedCodeEntityReference>IEnumerable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of Int32)</unmanagedCodeEntityReference> in vbprvb that contains a range of sequential integral numbers.</para>
  4737. </returns>
  4738. <param name="start">
  4739. <attribution license="cc4" from="Microsoft" modified="false" />The value of the first integer in the sequence.</param>
  4740. <param name="count">
  4741. <attribution license="cc4" from="Microsoft" modified="false" />The number of sequential integers to generate.</param>
  4742. </Docs>
  4743. </Member>
  4744. <Member MemberName="Repeat&lt;TResult&gt;">
  4745. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Repeat&lt;TResult&gt; (TResult element, int count);" />
  4746. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Repeat&lt;TResult&gt;(!!TResult element, int32 count) cil managed" />
  4747. <MemberType>Method</MemberType>
  4748. <AssemblyInfo>
  4749. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4750. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4751. </AssemblyInfo>
  4752. <ReturnValue>
  4753. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  4754. </ReturnValue>
  4755. <TypeParameters>
  4756. <TypeParameter Name="TResult" />
  4757. </TypeParameters>
  4758. <Parameters>
  4759. <Parameter Name="element" Type="TResult" />
  4760. <Parameter Name="count" Type="System.Int32" />
  4761. </Parameters>
  4762. <Docs>
  4763. <typeparam name="TResult">To be added.</typeparam>
  4764. <param name="element">To be added.</param>
  4765. <param name="count">To be added.</param>
  4766. <summary>To be added.</summary>
  4767. <returns>To be added.</returns>
  4768. <remarks>To be added.</remarks>
  4769. </Docs>
  4770. </Member>
  4771. <Member MemberName="Reverse&lt;TSource&gt;">
  4772. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Reverse&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  4773. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Reverse&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  4774. <MemberType>Method</MemberType>
  4775. <AssemblyInfo>
  4776. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4777. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4778. </AssemblyInfo>
  4779. <ReturnValue>
  4780. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  4781. </ReturnValue>
  4782. <TypeParameters>
  4783. <TypeParameter Name="TSource" />
  4784. </TypeParameters>
  4785. <Parameters>
  4786. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4787. </Parameters>
  4788. <Docs>
  4789. <remarks>
  4790. <attribution license="cc4" from="Microsoft" modified="false" />
  4791. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4792. <para>Unlike <see cref="Overload:System.Linq.Enumerable.OrderBy" />, this sorting method does not consider the actual values themselves in determining the order. Rather, it just returns the elements in the reverse order from which they are produced by the underlying source.</para>
  4793. </remarks>
  4794. <summary>
  4795. <attribution license="cc4" from="Microsoft" modified="false" />
  4796. <para>Inverts the order of the elements in a sequence.</para>
  4797. </summary>
  4798. <returns>
  4799. <attribution license="cc4" from="Microsoft" modified="false" />
  4800. <para>A sequence whose elements correspond to those of the input sequence in reverse order.</para>
  4801. </returns>
  4802. <param name="source">
  4803. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to reverse.</param>
  4804. <typeparam name="TSource">
  4805. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4806. </Docs>
  4807. </Member>
  4808. <Member MemberName="Select&lt;TSource,TResult&gt;">
  4809. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Select&lt;TSource,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int,TResult&gt; selector);" />
  4810. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Select&lt;TSource, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`3&lt;!!TSource, int32, !!TResult&gt; selector) cil managed" />
  4811. <MemberType>Method</MemberType>
  4812. <AssemblyInfo>
  4813. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4814. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4815. </AssemblyInfo>
  4816. <ReturnValue>
  4817. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  4818. </ReturnValue>
  4819. <TypeParameters>
  4820. <TypeParameter Name="TSource" />
  4821. <TypeParameter Name="TResult" />
  4822. </TypeParameters>
  4823. <Parameters>
  4824. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4825. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int32,TResult&gt;" />
  4826. </Parameters>
  4827. <Docs>
  4828. <remarks>
  4829. <attribution license="cc4" from="Microsoft" modified="false" />
  4830. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4831. <para>The first argument to <paramref name="selector" /> represents the element to process. The second argument to <paramref name="selector" /> represents the zero-based index of that element in the source sequence. This can be useful if the elements are in a known order and you want to do something with an element at a particular index, for example. It can also be useful if you want to retrieve the index of one or more elements.</para>
  4832. <para>This projection method requires the transform function, <paramref name="selector" />, to produce one value for each value in the source sequence, <paramref name="source" />. If <paramref name="selector" /> returns a value that is itself a collection, it is up to the consumer to traverse the subsequences manually. In such a situation, it might be better for your query to return a single coalesced sequence of values. To achieve this, use the <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}})" /> method instead of <see cref="M:System.Linq.Enumerable.Select``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,``1})" />. Although <unmanagedCodeEntityReference>SelectMany</unmanagedCodeEntityReference> works similarly to <unmanagedCodeEntityReference>Select</unmanagedCodeEntityReference>, it differs in that the transform function returns a collection that is then expanded by <unmanagedCodeEntityReference>SelectMany</unmanagedCodeEntityReference> before it is returned.</para>
  4833. </remarks>
  4834. <summary>
  4835. <attribution license="cc4" from="Microsoft" modified="false" />
  4836. <para>Projects each element of a sequence into a new form by incorporating the element's index.</para>
  4837. </summary>
  4838. <returns>
  4839. <attribution license="cc4" from="Microsoft" modified="false" />
  4840. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements are the result of invoking the transform function on each element of <paramref name="source" />.</para>
  4841. </returns>
  4842. <param name="source">
  4843. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to invoke a transform function on.</param>
  4844. <param name="selector">
  4845. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each source element; the second parameter of the function represents the index of the source element.</param>
  4846. <typeparam name="TSource">
  4847. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4848. <typeparam name="TResult">
  4849. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="selector" />.</typeparam>
  4850. </Docs>
  4851. </Member>
  4852. <Member MemberName="Select&lt;TSource,TResult&gt;">
  4853. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Select&lt;TSource,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TResult&gt; selector);" />
  4854. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Select&lt;TSource, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TResult&gt; selector) cil managed" />
  4855. <MemberType>Method</MemberType>
  4856. <AssemblyInfo>
  4857. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4858. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4859. </AssemblyInfo>
  4860. <ReturnValue>
  4861. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  4862. </ReturnValue>
  4863. <TypeParameters>
  4864. <TypeParameter Name="TSource" />
  4865. <TypeParameter Name="TResult" />
  4866. </TypeParameters>
  4867. <Parameters>
  4868. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4869. <Parameter Name="selector" Type="System.Func&lt;TSource,TResult&gt;" />
  4870. </Parameters>
  4871. <Docs>
  4872. <remarks>
  4873. <attribution license="cc4" from="Microsoft" modified="false" />
  4874. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4875. <para>This projection method requires the transform function, <paramref name="selector" />, to produce one value for each value in the source sequence, <paramref name="source" />. If <paramref name="selector" /> returns a value that is itself a collection, it is up to the consumer to traverse the subsequences manually. In such a situation, it might be better for your query to return a single coalesced sequence of values. To achieve this, use the <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}})" /> method instead of <see cref="M:System.Linq.Enumerable.Select``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})" />. Although <unmanagedCodeEntityReference>SelectMany</unmanagedCodeEntityReference> works similarly to <unmanagedCodeEntityReference>Select</unmanagedCodeEntityReference>, it differs in that the transform function returns a collection that is then expanded by <unmanagedCodeEntityReference>SelectMany</unmanagedCodeEntityReference> before it is returned.</para>
  4876. <para>In query expression syntax, a select (csprcs) or Select (vbprvb) clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Select" />.</para>
  4877. </remarks>
  4878. <summary>
  4879. <attribution license="cc4" from="Microsoft" modified="false" />
  4880. <para>Projects each element of a sequence into a new form.</para>
  4881. </summary>
  4882. <returns>
  4883. <attribution license="cc4" from="Microsoft" modified="false" />
  4884. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements are the result of invoking the transform function on each element of <paramref name="source" />.</para>
  4885. </returns>
  4886. <param name="source">
  4887. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to invoke a transform function on.</param>
  4888. <param name="selector">
  4889. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4890. <typeparam name="TSource">
  4891. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4892. <typeparam name="TResult">
  4893. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="selector" />.</typeparam>
  4894. </Docs>
  4895. </Member>
  4896. <Member MemberName="SelectMany&lt;TSource,TResult&gt;">
  4897. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; SelectMany&lt;TSource,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,System.Collections.Generic.IEnumerable&lt;TResult&gt;&gt; selector);" />
  4898. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; SelectMany&lt;TSource, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt;&gt; selector) cil managed" />
  4899. <MemberType>Method</MemberType>
  4900. <AssemblyInfo>
  4901. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4902. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4903. </AssemblyInfo>
  4904. <ReturnValue>
  4905. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  4906. </ReturnValue>
  4907. <TypeParameters>
  4908. <TypeParameter Name="TSource" />
  4909. <TypeParameter Name="TResult" />
  4910. </TypeParameters>
  4911. <Parameters>
  4912. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4913. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Collections.Generic.IEnumerable&lt;TResult&gt;&gt;" />
  4914. </Parameters>
  4915. <Docs>
  4916. <remarks>
  4917. <attribution license="cc4" from="Microsoft" modified="false" />
  4918. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4919. <para>The <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}})" /> method enumerates the input sequence, uses a transform function to map each element to an <see cref="T:System.Collections.Generic.IEnumerable`1" />, and then enumerates and yields the elements of each such <see cref="T:System.Collections.Generic.IEnumerable`1" /> object. That is, for each element of <paramref name="source" />, <paramref name="selector" /> is invoked and a sequence of values is returned. <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}})" /> then flattens this two-dimensional collection of collections into a one-dimensional <see cref="T:System.Collections.Generic.IEnumerable`1" /> and returns it. For example, if a query uses <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}})" /> to obtain the orders (of type Order) for each customer in a database, the result is of type <unmanagedCodeEntityReference>IEnumerable&lt;Order&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of Order)</unmanagedCodeEntityReference> in vbprvb. If instead the query uses <see cref="M:System.Linq.Enumerable.Select``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})" /> to obtain the orders, the collection of collections of orders is not combined and the result is of type <unmanagedCodeEntityReference>IEnumerable&lt;List&lt;Order&gt;&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of List(Of Order))</unmanagedCodeEntityReference> in vbprvb.</para>
  4920. <para>In query expression syntax, each from clause (csprcs) or From clause (vbprvb) after the initial one translates to an invocation of <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}})" />.</para>
  4921. </remarks>
  4922. <summary>
  4923. <attribution license="cc4" from="Microsoft" modified="false" />
  4924. <para>Projects each element of a sequence to an <see cref="T:System.Collections.Generic.IEnumerable`1" /> and flattens the resulting sequences into one sequence.</para>
  4925. </summary>
  4926. <returns>
  4927. <attribution license="cc4" from="Microsoft" modified="false" />
  4928. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.</para>
  4929. </returns>
  4930. <param name="source">
  4931. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to project.</param>
  4932. <param name="selector">
  4933. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  4934. <typeparam name="TSource">
  4935. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4936. <typeparam name="TResult">
  4937. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the sequence returned by <paramref name="selector" />.</typeparam>
  4938. </Docs>
  4939. </Member>
  4940. <Member MemberName="SelectMany&lt;TSource,TResult&gt;">
  4941. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; SelectMany&lt;TSource,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int,System.Collections.Generic.IEnumerable&lt;TResult&gt;&gt; selector);" />
  4942. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; SelectMany&lt;TSource, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`3&lt;!!TSource, int32, class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt;&gt; selector) cil managed" />
  4943. <MemberType>Method</MemberType>
  4944. <AssemblyInfo>
  4945. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4946. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4947. </AssemblyInfo>
  4948. <ReturnValue>
  4949. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  4950. </ReturnValue>
  4951. <TypeParameters>
  4952. <TypeParameter Name="TSource" />
  4953. <TypeParameter Name="TResult" />
  4954. </TypeParameters>
  4955. <Parameters>
  4956. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  4957. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int32,System.Collections.Generic.IEnumerable&lt;TResult&gt;&gt;" />
  4958. </Parameters>
  4959. <Docs>
  4960. <remarks>
  4961. <attribution license="cc4" from="Microsoft" modified="false" />
  4962. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  4963. <para>The <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}})" /> method enumerates the input sequence, uses a transform function to map each element to an <see cref="T:System.Collections.Generic.IEnumerable`1" />, and then enumerates and yields the elements of each such <see cref="T:System.Collections.Generic.IEnumerable`1" /> object. That is, for each element of <paramref name="source" />, <paramref name="selector" /> is invoked and a sequence of values is returned. <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}})" /> then flattens this two-dimensional collection of collections into a one-dimensional <see cref="T:System.Collections.Generic.IEnumerable`1" /> and returns it. For example, if a query uses <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}})" /> to obtain the orders (of type Order) for each customer in a database, the result is of type <unmanagedCodeEntityReference>IEnumerable&lt;Order&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of Order)</unmanagedCodeEntityReference> in vbprvb. If instead the query uses <see cref="M:System.Linq.Enumerable.Select``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})" /> to obtain the orders, the collection of collections of orders is not combined and the result is of type <unmanagedCodeEntityReference>IEnumerable&lt;List&lt;Order&gt;&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>IEnumerable(Of List(Of Order))</unmanagedCodeEntityReference> in vbprvb.</para>
  4964. <para>The first argument to <paramref name="selector" /> represents the element to process. The second argument to <paramref name="selector" /> represents the zero-based index of that element in the source sequence. This can be useful if the elements are in a known order and you want to do something with an element at a particular index, for example. It can also be useful if you want to retrieve the index of one or more elements.</para>
  4965. </remarks>
  4966. <summary>
  4967. <attribution license="cc4" from="Microsoft" modified="false" />
  4968. <para>Projects each element of a sequence to an <see cref="T:System.Collections.Generic.IEnumerable`1" />, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.</para>
  4969. </summary>
  4970. <returns>
  4971. <attribution license="cc4" from="Microsoft" modified="false" />
  4972. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements are the result of invoking the one-to-many transform function on each element of an input sequence.</para>
  4973. </returns>
  4974. <param name="source">
  4975. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to project.</param>
  4976. <param name="selector">
  4977. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each source element; the second parameter of the function represents the index of the source element.</param>
  4978. <typeparam name="TSource">
  4979. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  4980. <typeparam name="TResult">
  4981. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the sequence returned by <paramref name="selector" />.</typeparam>
  4982. </Docs>
  4983. </Member>
  4984. <Member MemberName="SelectMany&lt;TSource,TCollection,TResult&gt;">
  4985. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; SelectMany&lt;TSource,TCollection,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,System.Collections.Generic.IEnumerable&lt;TCollection&gt;&gt; collectionSelector, Func&lt;TSource,TCollection,TResult&gt; resultSelector);" />
  4986. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; SelectMany&lt;TSource, TCollection, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, class System.Collections.Generic.IEnumerable`1&lt;!!TCollection&gt;&gt; collectionSelector, class System.Func`3&lt;!!TSource, !!TCollection, !!TResult&gt; resultSelector) cil managed" />
  4987. <MemberType>Method</MemberType>
  4988. <AssemblyInfo>
  4989. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  4990. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  4991. </AssemblyInfo>
  4992. <ReturnValue>
  4993. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  4994. </ReturnValue>
  4995. <TypeParameters>
  4996. <TypeParameter Name="TSource" />
  4997. <TypeParameter Name="TCollection" />
  4998. <TypeParameter Name="TResult" />
  4999. </TypeParameters>
  5000. <Parameters>
  5001. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5002. <Parameter Name="collectionSelector" Type="System.Func&lt;TSource,System.Collections.Generic.IEnumerable&lt;TCollection&gt;&gt;" />
  5003. <Parameter Name="resultSelector" Type="System.Func&lt;TSource,TCollection,TResult&gt;" />
  5004. </Parameters>
  5005. <Docs>
  5006. <remarks>
  5007. <attribution license="cc4" from="Microsoft" modified="false" />
  5008. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  5009. <para>The <see cref="M:System.Linq.Enumerable.SelectMany``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}},System.Func{``0,``1,``2})" /> method is useful when you have to keep the elements of <paramref name="source" /> in scope for query logic that occurs after the call to <see cref="M:System.Linq.Enumerable.SelectMany``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}},System.Func{``0,``1,``2})" />. See the Example section for a code example. If there is a bidirectional relationship between objects of type <paramref name="TSource" /> and objects of type <paramref name="TCollection" />, that is, if an object of type <paramref name="TCollection" /> provides a property to retrieve the <paramref name="TSource" /> object that produced it, you do not need this overload of <see cref="M:System.Linq.Enumerable.SelectMany``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}},System.Func{``0,``1,``2})" />. Instead, you can use <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}})" /> and navigate back to the <paramref name="TSource" /> object through the <paramref name="TCollection" /> object.</para>
  5010. <para>In query expression syntax, each from clause (csprcs) or From clause (vbprvb) after the initial one translates to an invocation of <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Collections.Generic.IEnumerable{``1}})" />.</para>
  5011. </remarks>
  5012. <summary>
  5013. <attribution license="cc4" from="Microsoft" modified="false" />
  5014. <para>Projects each element of a sequence to an <see cref="T:System.Collections.Generic.IEnumerable`1" />, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.</para>
  5015. </summary>
  5016. <returns>
  5017. <attribution license="cc4" from="Microsoft" modified="false" />
  5018. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements are the result of invoking the one-to-many transform function <paramref name="collectionSelector" /> on each element of <paramref name="source" /> and then mapping each of those sequence elements and their corresponding source element to a result element.</para>
  5019. </returns>
  5020. <param name="source">
  5021. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to project.</param>
  5022. <param name="collectionSelector">
  5023. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element of the input sequence.</param>
  5024. <param name="resultSelector">
  5025. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element of the intermediate sequence.</param>
  5026. <typeparam name="TSource">
  5027. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5028. <typeparam name="TCollection">
  5029. <attribution license="cc4" from="Microsoft" modified="false" />The type of the intermediate elements collected by <paramref name="collectionSelector" />.</typeparam>
  5030. <typeparam name="TResult">
  5031. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the resulting sequence.</typeparam>
  5032. </Docs>
  5033. </Member>
  5034. <Member MemberName="SelectMany&lt;TSource,TCollection,TResult&gt;">
  5035. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; SelectMany&lt;TSource,TCollection,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int,System.Collections.Generic.IEnumerable&lt;TCollection&gt;&gt; collectionSelector, Func&lt;TSource,TCollection,TResult&gt; resultSelector);" />
  5036. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; SelectMany&lt;TSource, TCollection, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`3&lt;!!TSource, int32, class System.Collections.Generic.IEnumerable`1&lt;!!TCollection&gt;&gt; collectionSelector, class System.Func`3&lt;!!TSource, !!TCollection, !!TResult&gt; resultSelector) cil managed" />
  5037. <MemberType>Method</MemberType>
  5038. <AssemblyInfo>
  5039. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5040. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5041. </AssemblyInfo>
  5042. <ReturnValue>
  5043. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  5044. </ReturnValue>
  5045. <TypeParameters>
  5046. <TypeParameter Name="TSource" />
  5047. <TypeParameter Name="TCollection" />
  5048. <TypeParameter Name="TResult" />
  5049. </TypeParameters>
  5050. <Parameters>
  5051. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5052. <Parameter Name="collectionSelector" Type="System.Func&lt;TSource,System.Int32,System.Collections.Generic.IEnumerable&lt;TCollection&gt;&gt;" />
  5053. <Parameter Name="resultSelector" Type="System.Func&lt;TSource,TCollection,TResult&gt;" />
  5054. </Parameters>
  5055. <Docs>
  5056. <remarks>
  5057. <attribution license="cc4" from="Microsoft" modified="false" />
  5058. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  5059. <para>The <see cref="M:System.Linq.Enumerable.SelectMany``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}},System.Func{``0,``1,``2})" /> method is useful when you have to keep the elements of <paramref name="source" /> in scope for query logic that occurs after the call to <see cref="M:System.Linq.Enumerable.SelectMany``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}},System.Func{``0,``1,``2})" />. See the Example section for a code example. If there is a bidirectional relationship between objects of type <paramref name="TSource" /> and objects of type <paramref name="TCollection" />, that is, if an object of type <paramref name="TCollection" /> provides a property to retrieve the <paramref name="TSource" /> object that produced it, you do not need this overload of <see cref="M:System.Linq.Enumerable.SelectMany``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}},System.Func{``0,``1,``2})" />. Instead, you can use <see cref="M:System.Linq.Enumerable.SelectMany``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Collections.Generic.IEnumerable{``1}})" /> and navigate back to the <paramref name="TSource" /> object through the <paramref name="TCollection" /> object.</para>
  5060. </remarks>
  5061. <summary>
  5062. <attribution license="cc4" from="Microsoft" modified="false" />
  5063. <para>Projects each element of a sequence to an <see cref="T:System.Collections.Generic.IEnumerable`1" />, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.</para>
  5064. </summary>
  5065. <returns>
  5066. <attribution license="cc4" from="Microsoft" modified="false" />
  5067. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements are the result of invoking the one-to-many transform function <paramref name="collectionSelector" /> on each element of <paramref name="source" /> and then mapping each of those sequence elements and their corresponding source element to a result element.</para>
  5068. </returns>
  5069. <param name="source">
  5070. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values to project.</param>
  5071. <param name="collectionSelector">
  5072. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each source element; the second parameter of the function represents the index of the source element.</param>
  5073. <param name="resultSelector">
  5074. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element of the intermediate sequence.</param>
  5075. <typeparam name="TSource">
  5076. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5077. <typeparam name="TCollection">
  5078. <attribution license="cc4" from="Microsoft" modified="false" />The type of the intermediate elements collected by <paramref name="collectionSelector" />.</typeparam>
  5079. <typeparam name="TResult">
  5080. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the resulting sequence.</typeparam>
  5081. </Docs>
  5082. </Member>
  5083. <Member MemberName="SequenceEqual&lt;TSource&gt;">
  5084. <MemberSignature Language="C#" Value="public static bool SequenceEqual&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second);" />
  5085. <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool SequenceEqual&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second) cil managed" />
  5086. <MemberType>Method</MemberType>
  5087. <AssemblyInfo>
  5088. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5089. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5090. </AssemblyInfo>
  5091. <ReturnValue>
  5092. <ReturnType>System.Boolean</ReturnType>
  5093. </ReturnValue>
  5094. <TypeParameters>
  5095. <TypeParameter Name="TSource" />
  5096. </TypeParameters>
  5097. <Parameters>
  5098. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5099. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  5100. </Parameters>
  5101. <Docs>
  5102. <remarks>
  5103. <attribution license="cc4" from="Microsoft" modified="false" />
  5104. <para>The <see cref="M:System.Linq.Enumerable.SequenceEqual``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method enumerates the two source sequences in parallel and compares corresponding elements by using the default equality comparer for <paramref name="TSource" />, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />. The default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values of the types that implement the <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> generic interface. To compare a custom data type, you need to implement this interface and provide your own <see cref="M:System.Object.GetHashCode" /> and <see cref="M:System.Object.Equals(System.Object)" /> methods for the type.</para>
  5105. </remarks>
  5106. <summary>
  5107. <attribution license="cc4" from="Microsoft" modified="false" />
  5108. <para>Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.</para>
  5109. </summary>
  5110. <returns>
  5111. <attribution license="cc4" from="Microsoft" modified="false" />
  5112. <para>true if the two source sequences are of equal length and their corresponding elements are equal according to the default equality comparer for their type; otherwise, false.</para>
  5113. </returns>
  5114. <param name="first">
  5115. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to compare to <paramref name="second" />.</param>
  5116. <param name="second">
  5117. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to compare to the first sequence.</param>
  5118. <typeparam name="TSource">
  5119. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  5120. </Docs>
  5121. </Member>
  5122. <Member MemberName="SequenceEqual&lt;TSource&gt;">
  5123. <MemberSignature Language="C#" Value="public static bool SequenceEqual&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second, System.Collections.Generic.IEqualityComparer&lt;TSource&gt; comparer);" />
  5124. <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool SequenceEqual&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second, class System.Collections.Generic.IEqualityComparer`1&lt;!!TSource&gt; comparer) cil managed" />
  5125. <MemberType>Method</MemberType>
  5126. <AssemblyInfo>
  5127. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5128. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5129. </AssemblyInfo>
  5130. <ReturnValue>
  5131. <ReturnType>System.Boolean</ReturnType>
  5132. </ReturnValue>
  5133. <TypeParameters>
  5134. <TypeParameter Name="TSource" />
  5135. </TypeParameters>
  5136. <Parameters>
  5137. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5138. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  5139. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TSource&gt;" />
  5140. </Parameters>
  5141. <Docs>
  5142. <remarks>
  5143. <attribution license="cc4" from="Microsoft" modified="false" />
  5144. <para>The <see cref="M:System.Linq.Enumerable.SequenceEqual``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEqualityComparer{``0})" /> method enumerates the two source sequences in parallel and compares corresponding elements by using the specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" />. If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare elements.</para>
  5145. </remarks>
  5146. <summary>
  5147. <attribution license="cc4" from="Microsoft" modified="false" />
  5148. <para>Determines whether two sequences are equal by comparing their elements by using a specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" />.</para>
  5149. </summary>
  5150. <returns>
  5151. <attribution license="cc4" from="Microsoft" modified="false" />
  5152. <para>true if the two source sequences are of equal length and their corresponding elements compare equal according to <paramref name="comparer" />; otherwise, false.</para>
  5153. </returns>
  5154. <param name="first">
  5155. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to compare to <paramref name="second" />.</param>
  5156. <param name="second">
  5157. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to compare to the first sequence.</param>
  5158. <param name="comparer">
  5159. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to use to compare elements.</param>
  5160. <typeparam name="TSource">
  5161. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  5162. </Docs>
  5163. </Member>
  5164. <Member MemberName="Single&lt;TSource&gt;">
  5165. <MemberSignature Language="C#" Value="public static TSource Single&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  5166. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource Single&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  5167. <MemberType>Method</MemberType>
  5168. <AssemblyInfo>
  5169. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5170. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5171. </AssemblyInfo>
  5172. <ReturnValue>
  5173. <ReturnType>TSource</ReturnType>
  5174. </ReturnValue>
  5175. <TypeParameters>
  5176. <TypeParameter Name="TSource" />
  5177. </TypeParameters>
  5178. <Parameters>
  5179. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5180. </Parameters>
  5181. <Docs>
  5182. <remarks>
  5183. <attribution license="cc4" from="Microsoft" modified="false" />
  5184. <para>The <see cref="M:System.Linq.Enumerable.Single``1(System.Collections.Generic.IEnumerable{``0})" /> method throws an exception if the input sequence is empty. To instead return null when the input sequence is empty, use <see cref="M:System.Linq.Enumerable.SingleOrDefault``1(System.Collections.Generic.IEnumerable{``0})" />.</para>
  5185. </remarks>
  5186. <summary>
  5187. <attribution license="cc4" from="Microsoft" modified="false" />
  5188. <para>Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.</para>
  5189. </summary>
  5190. <returns>
  5191. <attribution license="cc4" from="Microsoft" modified="false" />
  5192. <para>The single element of the input sequence.</para>
  5193. </returns>
  5194. <param name="source">
  5195. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return the single element of.</param>
  5196. <typeparam name="TSource">
  5197. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5198. </Docs>
  5199. </Member>
  5200. <Member MemberName="Single&lt;TSource&gt;">
  5201. <MemberSignature Language="C#" Value="public static TSource Single&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  5202. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource Single&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  5203. <MemberType>Method</MemberType>
  5204. <AssemblyInfo>
  5205. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5206. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5207. </AssemblyInfo>
  5208. <ReturnValue>
  5209. <ReturnType>TSource</ReturnType>
  5210. </ReturnValue>
  5211. <TypeParameters>
  5212. <TypeParameter Name="TSource" />
  5213. </TypeParameters>
  5214. <Parameters>
  5215. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5216. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  5217. </Parameters>
  5218. <Docs>
  5219. <remarks>
  5220. <attribution license="cc4" from="Microsoft" modified="false" />
  5221. <para>The <see cref="M:System.Linq.Enumerable.Single``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method throws an exception if the input sequence contains no matching element. To instead return null when no matching element is found, use <see cref="M:System.Linq.Enumerable.SingleOrDefault``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" />.</para>
  5222. </remarks>
  5223. <summary>
  5224. <attribution license="cc4" from="Microsoft" modified="false" />
  5225. <para>Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.</para>
  5226. </summary>
  5227. <returns>
  5228. <attribution license="cc4" from="Microsoft" modified="false" />
  5229. <para>The single element of the input sequence that satisfies a condition.</para>
  5230. </returns>
  5231. <param name="source">
  5232. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return a single element from.</param>
  5233. <param name="predicate">
  5234. <attribution license="cc4" from="Microsoft" modified="false" />A function to test an element for a condition.</param>
  5235. <typeparam name="TSource">
  5236. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5237. </Docs>
  5238. </Member>
  5239. <Member MemberName="SingleOrDefault&lt;TSource&gt;">
  5240. <MemberSignature Language="C#" Value="public static TSource SingleOrDefault&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  5241. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource SingleOrDefault&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  5242. <MemberType>Method</MemberType>
  5243. <AssemblyInfo>
  5244. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5245. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5246. </AssemblyInfo>
  5247. <ReturnValue>
  5248. <ReturnType>TSource</ReturnType>
  5249. </ReturnValue>
  5250. <TypeParameters>
  5251. <TypeParameter Name="TSource" />
  5252. </TypeParameters>
  5253. <Parameters>
  5254. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5255. </Parameters>
  5256. <Docs>
  5257. <remarks>
  5258. <attribution license="cc4" from="Microsoft" modified="false" />
  5259. <para>The default value for reference and nullable types is null.</para>
  5260. <para>The <see cref="Overload:System.Linq.Enumerable.SingleOrDefault" /> method does not provide a way to specify a default value. If you want to specify a default value other than default(<paramref name="TSource" />), use the <see cref="M:System.Linq.Enumerable.DefaultIfEmpty``1(System.Collections.Generic.IEnumerable{``0},``0)" /> method as described in the Example section.</para>
  5261. </remarks>
  5262. <summary>
  5263. <attribution license="cc4" from="Microsoft" modified="false" />
  5264. <para>Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.</para>
  5265. </summary>
  5266. <returns>
  5267. <attribution license="cc4" from="Microsoft" modified="false" />
  5268. <para>The single element of the input sequence, or default(<paramref name="TSource" />) if the sequence contains no elements.</para>
  5269. </returns>
  5270. <param name="source">
  5271. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return the single element of.</param>
  5272. <typeparam name="TSource">
  5273. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5274. </Docs>
  5275. </Member>
  5276. <Member MemberName="SingleOrDefault&lt;TSource&gt;">
  5277. <MemberSignature Language="C#" Value="public static TSource SingleOrDefault&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  5278. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource SingleOrDefault&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  5279. <MemberType>Method</MemberType>
  5280. <AssemblyInfo>
  5281. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5282. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5283. </AssemblyInfo>
  5284. <ReturnValue>
  5285. <ReturnType>TSource</ReturnType>
  5286. </ReturnValue>
  5287. <TypeParameters>
  5288. <TypeParameter Name="TSource" />
  5289. </TypeParameters>
  5290. <Parameters>
  5291. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5292. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  5293. </Parameters>
  5294. <Docs>
  5295. <remarks>
  5296. <attribution license="cc4" from="Microsoft" modified="false" />
  5297. <para>The default value for reference and nullable types is null.</para>
  5298. </remarks>
  5299. <summary>
  5300. <attribution license="cc4" from="Microsoft" modified="false" />
  5301. <para>Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.</para>
  5302. </summary>
  5303. <returns>
  5304. <attribution license="cc4" from="Microsoft" modified="false" />
  5305. <para>The single element of the input sequence that satisfies the condition, or default(<paramref name="TSource" />) if no such element is found.</para>
  5306. </returns>
  5307. <param name="source">
  5308. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return a single element from.</param>
  5309. <param name="predicate">
  5310. <attribution license="cc4" from="Microsoft" modified="false" />A function to test an element for a condition.</param>
  5311. <typeparam name="TSource">
  5312. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5313. </Docs>
  5314. </Member>
  5315. <Member MemberName="Skip&lt;TSource&gt;">
  5316. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Skip&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, int count);" />
  5317. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Skip&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, int32 count) cil managed" />
  5318. <MemberType>Method</MemberType>
  5319. <AssemblyInfo>
  5320. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5321. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5322. </AssemblyInfo>
  5323. <ReturnValue>
  5324. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  5325. </ReturnValue>
  5326. <TypeParameters>
  5327. <TypeParameter Name="TSource" />
  5328. </TypeParameters>
  5329. <Parameters>
  5330. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5331. <Parameter Name="count" Type="System.Int32" />
  5332. </Parameters>
  5333. <Docs>
  5334. <remarks>
  5335. <attribution license="cc4" from="Microsoft" modified="false" />
  5336. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  5337. <para>If <paramref name="source" /> contains fewer than <paramref name="count" /> elements, an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> is returned. If <paramref name="count" /> is less than or equal to zero, all elements of <paramref name="source" /> are yielded.</para>
  5338. <para>The <see cref="M:System.Linq.Enumerable.Take``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" /> and <see cref="M:System.Linq.Enumerable.Skip``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" /> methods are functional complements. Given a sequence coll and an integer n, concatenating the results of coll.Take(n) and coll.Skip(n) yields the same sequence as coll.</para>
  5339. <para>In vbprvb query expression syntax, a Skip clause translates to an invocation of <see cref="M:System.Linq.Enumerable.Skip``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" />.</para>
  5340. </remarks>
  5341. <summary>
  5342. <attribution license="cc4" from="Microsoft" modified="false" />
  5343. <para>Bypasses a specified number of elements in a sequence and then returns the remaining elements.</para>
  5344. </summary>
  5345. <returns>
  5346. <attribution license="cc4" from="Microsoft" modified="false" />
  5347. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements that occur after the specified index in the input sequence.</para>
  5348. </returns>
  5349. <param name="source">
  5350. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return elements from.</param>
  5351. <param name="count">
  5352. <attribution license="cc4" from="Microsoft" modified="false" />The number of elements to skip before returning the remaining elements.</param>
  5353. <typeparam name="TSource">
  5354. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5355. </Docs>
  5356. </Member>
  5357. <Member MemberName="SkipWhile&lt;TSource&gt;">
  5358. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; SkipWhile&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  5359. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; SkipWhile&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  5360. <MemberType>Method</MemberType>
  5361. <AssemblyInfo>
  5362. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5363. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5364. </AssemblyInfo>
  5365. <ReturnValue>
  5366. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  5367. </ReturnValue>
  5368. <TypeParameters>
  5369. <TypeParameter Name="TSource" />
  5370. </TypeParameters>
  5371. <Parameters>
  5372. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5373. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  5374. </Parameters>
  5375. <Docs>
  5376. <remarks>
  5377. <attribution license="cc4" from="Microsoft" modified="false" />
  5378. <para>The <see cref="M:System.Linq.Enumerable.SkipWhile``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  5379. <para>This method tests each element of <paramref name="source" /> by using <paramref name="predicate" /> and skips the element if the result is true. After the predicate function returns false for an element, that element and the remaining elements in <paramref name="source" /> are yielded and there are no more invocations of <paramref name="predicate" />.</para>
  5380. <para>If <paramref name="predicate" /> returns true for all elements in the sequence, an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> is returned.</para>
  5381. <para>The <see cref="Overload:System.Linq.Enumerable.TakeWhile" /> and <see cref="Overload:System.Linq.Enumerable.SkipWhile" /> methods are functional complements. Given a sequence coll and a pure function p, concatenating the results of coll.TakeWhile(p) and coll.SkipWhile(p) yields the same sequence as coll.</para>
  5382. <para>In vbprvb query expression syntax, a Skip While clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.SkipWhile" />.</para>
  5383. </remarks>
  5384. <summary>
  5385. <attribution license="cc4" from="Microsoft" modified="false" />
  5386. <para>Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.</para>
  5387. </summary>
  5388. <returns>
  5389. <attribution license="cc4" from="Microsoft" modified="false" />
  5390. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by <paramref name="predicate" />.</para>
  5391. </returns>
  5392. <param name="source">
  5393. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return elements from.</param>
  5394. <param name="predicate">
  5395. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  5396. <typeparam name="TSource">
  5397. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5398. </Docs>
  5399. </Member>
  5400. <Member MemberName="SkipWhile&lt;TSource&gt;">
  5401. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; SkipWhile&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int,bool&gt; predicate);" />
  5402. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; SkipWhile&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`3&lt;!!TSource, int32, bool&gt; predicate) cil managed" />
  5403. <MemberType>Method</MemberType>
  5404. <AssemblyInfo>
  5405. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5406. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5407. </AssemblyInfo>
  5408. <ReturnValue>
  5409. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  5410. </ReturnValue>
  5411. <TypeParameters>
  5412. <TypeParameter Name="TSource" />
  5413. </TypeParameters>
  5414. <Parameters>
  5415. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5416. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Int32,System.Boolean&gt;" />
  5417. </Parameters>
  5418. <Docs>
  5419. <remarks>
  5420. <attribution license="cc4" from="Microsoft" modified="false" />
  5421. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  5422. <para>The <see cref="M:System.Linq.Enumerable.SkipWhile``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Boolean})" /> method tests each element of <paramref name="source" /> by using <paramref name="predicate" /> and skips the element if the result is true. After the predicate function returns false for an element, that element and the remaining elements in <paramref name="source" /> are yielded and there are no more invocations of <paramref name="predicate" />.</para>
  5423. <para>If <paramref name="predicate" /> returns true for all elements in the sequence, an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> is returned.</para>
  5424. <para>The first argument of <paramref name="predicate" /> represents the element to test. The second argument represents the zero-based index of the element within <paramref name="source" />.</para>
  5425. <para>The <see cref="Overload:System.Linq.Enumerable.TakeWhile" /> and <see cref="Overload:System.Linq.Enumerable.SkipWhile" /> methods are functional complements. Given a sequence coll and a pure function p, concatenating the results of coll.TakeWhile(p) and coll.SkipWhile(p) yields the same sequence as coll.</para>
  5426. <para>In vbprvb query expression syntax, a Skip While clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.SkipWhile" />.</para>
  5427. </remarks>
  5428. <summary>
  5429. <attribution license="cc4" from="Microsoft" modified="false" />
  5430. <para>Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.</para>
  5431. </summary>
  5432. <returns>
  5433. <attribution license="cc4" from="Microsoft" modified="false" />
  5434. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by <paramref name="predicate" />.</para>
  5435. </returns>
  5436. <param name="source">
  5437. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to return elements from.</param>
  5438. <param name="predicate">
  5439. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each source element for a condition; the second parameter of the function represents the index of the source element.</param>
  5440. <typeparam name="TSource">
  5441. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5442. </Docs>
  5443. </Member>
  5444. <Member MemberName="Sum">
  5445. <MemberSignature Language="C#" Value="public static decimal Sum (this System.Collections.Generic.IEnumerable&lt;decimal&gt; source);" />
  5446. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Sum(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Decimal&gt; source) cil managed" />
  5447. <MemberType>Method</MemberType>
  5448. <AssemblyInfo>
  5449. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5450. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5451. </AssemblyInfo>
  5452. <ReturnValue>
  5453. <ReturnType>System.Decimal</ReturnType>
  5454. </ReturnValue>
  5455. <Parameters>
  5456. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Decimal&gt;" RefType="this" />
  5457. </Parameters>
  5458. <Docs>
  5459. <remarks>
  5460. <attribution license="cc4" from="Microsoft" modified="false" />
  5461. <para>The <see cref="M:System.Linq.Enumerable.Sum(System.Collections.Generic.IEnumerable{System.Decimal})" /> method returns zero if <paramref name="source" /> contains no elements.</para>
  5462. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5463. </remarks>
  5464. <summary>
  5465. <attribution license="cc4" from="Microsoft" modified="false" />
  5466. <para>Computes the sum of a sequence of <see cref="T:System.Decimal" /> values.</para>
  5467. </summary>
  5468. <returns>
  5469. <attribution license="cc4" from="Microsoft" modified="false" />
  5470. <para>The sum of the values in the sequence.</para>
  5471. </returns>
  5472. <param name="source">
  5473. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Decimal" /> values to calculate the sum of.</param>
  5474. </Docs>
  5475. </Member>
  5476. <Member MemberName="Sum">
  5477. <MemberSignature Language="C#" Value="public static double Sum (this System.Collections.Generic.IEnumerable&lt;double&gt; source);" />
  5478. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Sum(class System.Collections.Generic.IEnumerable`1&lt;float64&gt; source) cil managed" />
  5479. <MemberType>Method</MemberType>
  5480. <AssemblyInfo>
  5481. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5482. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5483. </AssemblyInfo>
  5484. <ReturnValue>
  5485. <ReturnType>System.Double</ReturnType>
  5486. </ReturnValue>
  5487. <Parameters>
  5488. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Double&gt;" RefType="this" />
  5489. </Parameters>
  5490. <Docs>
  5491. <remarks>
  5492. <attribution license="cc4" from="Microsoft" modified="false" />
  5493. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5494. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5495. </remarks>
  5496. <summary>
  5497. <attribution license="cc4" from="Microsoft" modified="false" />
  5498. <para>Computes the sum of a sequence of <see cref="T:System.Double" /> values.</para>
  5499. </summary>
  5500. <returns>
  5501. <attribution license="cc4" from="Microsoft" modified="false" />
  5502. <para>The sum of the values in the sequence.</para>
  5503. </returns>
  5504. <param name="source">
  5505. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Double" /> values to calculate the sum of.</param>
  5506. </Docs>
  5507. </Member>
  5508. <Member MemberName="Sum">
  5509. <MemberSignature Language="C#" Value="public static int Sum (this System.Collections.Generic.IEnumerable&lt;int&gt; source);" />
  5510. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Sum(class System.Collections.Generic.IEnumerable`1&lt;int32&gt; source) cil managed" />
  5511. <MemberType>Method</MemberType>
  5512. <AssemblyInfo>
  5513. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5514. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5515. </AssemblyInfo>
  5516. <ReturnValue>
  5517. <ReturnType>System.Int32</ReturnType>
  5518. </ReturnValue>
  5519. <Parameters>
  5520. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int32&gt;" RefType="this" />
  5521. </Parameters>
  5522. <Docs>
  5523. <remarks>
  5524. <attribution license="cc4" from="Microsoft" modified="false" />
  5525. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5526. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5527. </remarks>
  5528. <summary>
  5529. <attribution license="cc4" from="Microsoft" modified="false" />
  5530. <para>Computes the sum of a sequence of <see cref="T:System.Int32" /> values.</para>
  5531. </summary>
  5532. <returns>
  5533. <attribution license="cc4" from="Microsoft" modified="false" />
  5534. <para>The sum of the values in the sequence.</para>
  5535. </returns>
  5536. <param name="source">
  5537. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int32" /> values to calculate the sum of.</param>
  5538. </Docs>
  5539. </Member>
  5540. <Member MemberName="Sum">
  5541. <MemberSignature Language="C#" Value="public static long Sum (this System.Collections.Generic.IEnumerable&lt;long&gt; source);" />
  5542. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 Sum(class System.Collections.Generic.IEnumerable`1&lt;int64&gt; source) cil managed" />
  5543. <MemberType>Method</MemberType>
  5544. <AssemblyInfo>
  5545. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5546. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5547. </AssemblyInfo>
  5548. <ReturnValue>
  5549. <ReturnType>System.Int64</ReturnType>
  5550. </ReturnValue>
  5551. <Parameters>
  5552. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Int64&gt;" RefType="this" />
  5553. </Parameters>
  5554. <Docs>
  5555. <remarks>
  5556. <attribution license="cc4" from="Microsoft" modified="false" />
  5557. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5558. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5559. </remarks>
  5560. <summary>
  5561. <attribution license="cc4" from="Microsoft" modified="false" />
  5562. <para>Computes the sum of a sequence of <see cref="T:System.Int64" /> values.</para>
  5563. </summary>
  5564. <returns>
  5565. <attribution license="cc4" from="Microsoft" modified="false" />
  5566. <para>The sum of the values in the sequence.</para>
  5567. </returns>
  5568. <param name="source">
  5569. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Int64" /> values to calculate the sum of.</param>
  5570. </Docs>
  5571. </Member>
  5572. <Member MemberName="Sum">
  5573. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Sum (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;decimal&gt;&gt; source);" />
  5574. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Sum(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; source) cil managed" />
  5575. <MemberType>Method</MemberType>
  5576. <AssemblyInfo>
  5577. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5578. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5579. </AssemblyInfo>
  5580. <ReturnValue>
  5581. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  5582. </ReturnValue>
  5583. <Parameters>
  5584. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Decimal&gt;&gt;" RefType="this" />
  5585. </Parameters>
  5586. <Docs>
  5587. <remarks>
  5588. <attribution license="cc4" from="Microsoft" modified="false" />
  5589. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5590. <para>The result does not include values that are null.</para>
  5591. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5592. </remarks>
  5593. <summary>
  5594. <attribution license="cc4" from="Microsoft" modified="false" />
  5595. <para>Computes the sum of a sequence of nullable <see cref="T:System.Decimal" /> values.</para>
  5596. </summary>
  5597. <returns>
  5598. <attribution license="cc4" from="Microsoft" modified="false" />
  5599. <para>The sum of the values in the sequence.</para>
  5600. </returns>
  5601. <param name="source">
  5602. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Decimal" /> values to calculate the sum of.</param>
  5603. </Docs>
  5604. </Member>
  5605. <Member MemberName="Sum">
  5606. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Sum (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;double&gt;&gt; source);" />
  5607. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Sum(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float64&gt;&gt; source) cil managed" />
  5608. <MemberType>Method</MemberType>
  5609. <AssemblyInfo>
  5610. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5611. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5612. </AssemblyInfo>
  5613. <ReturnValue>
  5614. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  5615. </ReturnValue>
  5616. <Parameters>
  5617. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Double&gt;&gt;" RefType="this" />
  5618. </Parameters>
  5619. <Docs>
  5620. <remarks>
  5621. <attribution license="cc4" from="Microsoft" modified="false" />
  5622. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5623. <para>The result does not include values that are null.</para>
  5624. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5625. </remarks>
  5626. <summary>
  5627. <attribution license="cc4" from="Microsoft" modified="false" />
  5628. <para>Computes the sum of a sequence of nullable <see cref="T:System.Double" /> values.</para>
  5629. </summary>
  5630. <returns>
  5631. <attribution license="cc4" from="Microsoft" modified="false" />
  5632. <para>The sum of the values in the sequence.</para>
  5633. </returns>
  5634. <param name="source">
  5635. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Double" /> values to calculate the sum of.</param>
  5636. </Docs>
  5637. </Member>
  5638. <Member MemberName="Sum">
  5639. <MemberSignature Language="C#" Value="public static Nullable&lt;int&gt; Sum (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;int&gt;&gt; source);" />
  5640. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int32&gt; Sum(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int32&gt;&gt; source) cil managed" />
  5641. <MemberType>Method</MemberType>
  5642. <AssemblyInfo>
  5643. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5644. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5645. </AssemblyInfo>
  5646. <ReturnValue>
  5647. <ReturnType>System.Nullable&lt;System.Int32&gt;</ReturnType>
  5648. </ReturnValue>
  5649. <Parameters>
  5650. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int32&gt;&gt;" RefType="this" />
  5651. </Parameters>
  5652. <Docs>
  5653. <remarks>
  5654. <attribution license="cc4" from="Microsoft" modified="false" />
  5655. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5656. <para>The result does not include values that are null.</para>
  5657. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5658. </remarks>
  5659. <summary>
  5660. <attribution license="cc4" from="Microsoft" modified="false" />
  5661. <para>Computes the sum of a sequence of nullable <see cref="T:System.Int32" /> values.</para>
  5662. </summary>
  5663. <returns>
  5664. <attribution license="cc4" from="Microsoft" modified="false" />
  5665. <para>The sum of the values in the sequence.</para>
  5666. </returns>
  5667. <param name="source">
  5668. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int32" /> values to calculate the sum of.</param>
  5669. </Docs>
  5670. </Member>
  5671. <Member MemberName="Sum">
  5672. <MemberSignature Language="C#" Value="public static Nullable&lt;long&gt; Sum (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;long&gt;&gt; source);" />
  5673. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int64&gt; Sum(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;int64&gt;&gt; source) cil managed" />
  5674. <MemberType>Method</MemberType>
  5675. <AssemblyInfo>
  5676. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5677. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5678. </AssemblyInfo>
  5679. <ReturnValue>
  5680. <ReturnType>System.Nullable&lt;System.Int64&gt;</ReturnType>
  5681. </ReturnValue>
  5682. <Parameters>
  5683. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Int64&gt;&gt;" RefType="this" />
  5684. </Parameters>
  5685. <Docs>
  5686. <remarks>
  5687. <attribution license="cc4" from="Microsoft" modified="false" />
  5688. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5689. <para>The result does not include values that are null.</para>
  5690. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5691. </remarks>
  5692. <summary>
  5693. <attribution license="cc4" from="Microsoft" modified="false" />
  5694. <para>Computes the sum of a sequence of nullable <see cref="T:System.Int64" /> values.</para>
  5695. </summary>
  5696. <returns>
  5697. <attribution license="cc4" from="Microsoft" modified="false" />
  5698. <para>The sum of the values in the sequence.</para>
  5699. </returns>
  5700. <param name="source">
  5701. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Int64" /> values to calculate the sum of.</param>
  5702. </Docs>
  5703. </Member>
  5704. <Member MemberName="Sum">
  5705. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Sum (this System.Collections.Generic.IEnumerable&lt;Nullable&lt;float&gt;&gt; source);" />
  5706. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Sum(class System.Collections.Generic.IEnumerable`1&lt;valuetype System.Nullable`1&lt;float32&gt;&gt; source) cil managed" />
  5707. <MemberType>Method</MemberType>
  5708. <AssemblyInfo>
  5709. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5710. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5711. </AssemblyInfo>
  5712. <ReturnValue>
  5713. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  5714. </ReturnValue>
  5715. <Parameters>
  5716. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Nullable&lt;System.Single&gt;&gt;" RefType="this" />
  5717. </Parameters>
  5718. <Docs>
  5719. <remarks>
  5720. <attribution license="cc4" from="Microsoft" modified="false" />
  5721. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5722. <para>The result does not include values that are null.</para>
  5723. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5724. </remarks>
  5725. <summary>
  5726. <attribution license="cc4" from="Microsoft" modified="false" />
  5727. <para>Computes the sum of a sequence of nullable <see cref="T:System.Single" /> values.</para>
  5728. </summary>
  5729. <returns>
  5730. <attribution license="cc4" from="Microsoft" modified="false" />
  5731. <para>The sum of the values in the sequence.</para>
  5732. </returns>
  5733. <param name="source">
  5734. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of nullable <see cref="T:System.Single" /> values to calculate the sum of.</param>
  5735. </Docs>
  5736. </Member>
  5737. <Member MemberName="Sum">
  5738. <MemberSignature Language="C#" Value="public static float Sum (this System.Collections.Generic.IEnumerable&lt;float&gt; source);" />
  5739. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Sum(class System.Collections.Generic.IEnumerable`1&lt;float32&gt; source) cil managed" />
  5740. <MemberType>Method</MemberType>
  5741. <AssemblyInfo>
  5742. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5743. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5744. </AssemblyInfo>
  5745. <ReturnValue>
  5746. <ReturnType>System.Single</ReturnType>
  5747. </ReturnValue>
  5748. <Parameters>
  5749. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;System.Single&gt;" RefType="this" />
  5750. </Parameters>
  5751. <Docs>
  5752. <remarks>
  5753. <attribution license="cc4" from="Microsoft" modified="false" />
  5754. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5755. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5756. </remarks>
  5757. <summary>
  5758. <attribution license="cc4" from="Microsoft" modified="false" />
  5759. <para>Computes the sum of a sequence of <see cref="T:System.Single" /> values.</para>
  5760. </summary>
  5761. <returns>
  5762. <attribution license="cc4" from="Microsoft" modified="false" />
  5763. <para>The sum of the values in the sequence.</para>
  5764. </returns>
  5765. <param name="source">
  5766. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of <see cref="T:System.Single" /> values to calculate the sum of.</param>
  5767. </Docs>
  5768. </Member>
  5769. <Member MemberName="Sum&lt;TSource&gt;">
  5770. <MemberSignature Language="C#" Value="public static decimal Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,decimal&gt; selector);" />
  5771. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Decimal&gt; selector) cil managed" />
  5772. <MemberType>Method</MemberType>
  5773. <AssemblyInfo>
  5774. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5775. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5776. </AssemblyInfo>
  5777. <ReturnValue>
  5778. <ReturnType>System.Decimal</ReturnType>
  5779. </ReturnValue>
  5780. <TypeParameters>
  5781. <TypeParameter Name="TSource" />
  5782. </TypeParameters>
  5783. <Parameters>
  5784. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5785. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Decimal&gt;" />
  5786. </Parameters>
  5787. <Docs>
  5788. <remarks>
  5789. <attribution license="cc4" from="Microsoft" modified="false" />
  5790. <para>This method returns zero if <paramref name="source" /> contains no elements. </para>
  5791. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Decimal" />.</para>
  5792. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5793. </remarks>
  5794. <summary>
  5795. <attribution license="cc4" from="Microsoft" modified="false" />
  5796. <para>Computes the sum of the sequence of <see cref="T:System.Decimal" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  5797. </summary>
  5798. <returns>
  5799. <attribution license="cc4" from="Microsoft" modified="false" />
  5800. <para>The sum of the projected values.</para>
  5801. </returns>
  5802. <param name="source">
  5803. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  5804. <param name="selector">
  5805. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  5806. <typeparam name="TSource">
  5807. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5808. </Docs>
  5809. </Member>
  5810. <Member MemberName="Sum&lt;TSource&gt;">
  5811. <MemberSignature Language="C#" Value="public static double Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,double&gt; selector);" />
  5812. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float64&gt; selector) cil managed" />
  5813. <MemberType>Method</MemberType>
  5814. <AssemblyInfo>
  5815. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5816. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5817. </AssemblyInfo>
  5818. <ReturnValue>
  5819. <ReturnType>System.Double</ReturnType>
  5820. </ReturnValue>
  5821. <TypeParameters>
  5822. <TypeParameter Name="TSource" />
  5823. </TypeParameters>
  5824. <Parameters>
  5825. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5826. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Double&gt;" />
  5827. </Parameters>
  5828. <Docs>
  5829. <remarks>
  5830. <attribution license="cc4" from="Microsoft" modified="false" />
  5831. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5832. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Double" />.</para>
  5833. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5834. </remarks>
  5835. <summary>
  5836. <attribution license="cc4" from="Microsoft" modified="false" />
  5837. <para>Computes the sum of the sequence of <see cref="T:System.Double" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  5838. </summary>
  5839. <returns>
  5840. <attribution license="cc4" from="Microsoft" modified="false" />
  5841. <para>The sum of the projected values.</para>
  5842. </returns>
  5843. <param name="source">
  5844. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  5845. <param name="selector">
  5846. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  5847. <typeparam name="TSource">
  5848. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5849. </Docs>
  5850. </Member>
  5851. <Member MemberName="Sum&lt;TSource&gt;">
  5852. <MemberSignature Language="C#" Value="public static int Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int&gt; selector);" />
  5853. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int32&gt; selector) cil managed" />
  5854. <MemberType>Method</MemberType>
  5855. <AssemblyInfo>
  5856. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5857. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5858. </AssemblyInfo>
  5859. <ReturnValue>
  5860. <ReturnType>System.Int32</ReturnType>
  5861. </ReturnValue>
  5862. <TypeParameters>
  5863. <TypeParameter Name="TSource" />
  5864. </TypeParameters>
  5865. <Parameters>
  5866. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5867. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int32&gt;" />
  5868. </Parameters>
  5869. <Docs>
  5870. <remarks>
  5871. <attribution license="cc4" from="Microsoft" modified="false" />
  5872. <para>This method returns zero if <paramref name="source" /> contains no elements. </para>
  5873. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Int32" />.</para>
  5874. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5875. </remarks>
  5876. <summary>
  5877. <attribution license="cc4" from="Microsoft" modified="false" />
  5878. <para>Computes the sum of the sequence of <see cref="T:System.Int32" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  5879. </summary>
  5880. <returns>
  5881. <attribution license="cc4" from="Microsoft" modified="false" />
  5882. <para>The sum of the projected values.</para>
  5883. </returns>
  5884. <param name="source">
  5885. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  5886. <param name="selector">
  5887. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  5888. <typeparam name="TSource">
  5889. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5890. </Docs>
  5891. </Member>
  5892. <Member MemberName="Sum&lt;TSource&gt;">
  5893. <MemberSignature Language="C#" Value="public static long Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,long&gt; selector);" />
  5894. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, int64&gt; selector) cil managed" />
  5895. <MemberType>Method</MemberType>
  5896. <AssemblyInfo>
  5897. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5898. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5899. </AssemblyInfo>
  5900. <ReturnValue>
  5901. <ReturnType>System.Int64</ReturnType>
  5902. </ReturnValue>
  5903. <TypeParameters>
  5904. <TypeParameter Name="TSource" />
  5905. </TypeParameters>
  5906. <Parameters>
  5907. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5908. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Int64&gt;" />
  5909. </Parameters>
  5910. <Docs>
  5911. <remarks>
  5912. <attribution license="cc4" from="Microsoft" modified="false" />
  5913. <para>This method returns zero if <paramref name="source" /> contains no elements. </para>
  5914. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Int64" />.</para>
  5915. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5916. </remarks>
  5917. <summary>
  5918. <attribution license="cc4" from="Microsoft" modified="false" />
  5919. <para>Computes the sum of the sequence of <see cref="T:System.Int64" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  5920. </summary>
  5921. <returns>
  5922. <attribution license="cc4" from="Microsoft" modified="false" />
  5923. <para>The sum of the projected values.</para>
  5924. </returns>
  5925. <param name="source">
  5926. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  5927. <param name="selector">
  5928. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  5929. <typeparam name="TSource">
  5930. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5931. </Docs>
  5932. </Member>
  5933. <Member MemberName="Sum&lt;TSource&gt;">
  5934. <MemberSignature Language="C#" Value="public static Nullable&lt;decimal&gt; Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;decimal&gt;&gt; selector);" />
  5935. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;valuetype System.Decimal&gt; Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;valuetype System.Decimal&gt;&gt; selector) cil managed" />
  5936. <MemberType>Method</MemberType>
  5937. <AssemblyInfo>
  5938. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5939. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5940. </AssemblyInfo>
  5941. <ReturnValue>
  5942. <ReturnType>System.Nullable&lt;System.Decimal&gt;</ReturnType>
  5943. </ReturnValue>
  5944. <TypeParameters>
  5945. <TypeParameter Name="TSource" />
  5946. </TypeParameters>
  5947. <Parameters>
  5948. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5949. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Decimal&gt;&gt;" />
  5950. </Parameters>
  5951. <Docs>
  5952. <remarks>
  5953. <attribution license="cc4" from="Microsoft" modified="false" />
  5954. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5955. <para>The result does not included values that are null.</para>
  5956. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Decimal&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Decimal)</unmanagedCodeEntityReference> in vbprvb.</para>
  5957. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  5958. </remarks>
  5959. <summary>
  5960. <attribution license="cc4" from="Microsoft" modified="false" />
  5961. <para>Computes the sum of the sequence of nullable <see cref="T:System.Decimal" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  5962. </summary>
  5963. <returns>
  5964. <attribution license="cc4" from="Microsoft" modified="false" />
  5965. <para>The sum of the projected values.</para>
  5966. </returns>
  5967. <param name="source">
  5968. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  5969. <param name="selector">
  5970. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  5971. <typeparam name="TSource">
  5972. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  5973. </Docs>
  5974. </Member>
  5975. <Member MemberName="Sum&lt;TSource&gt;">
  5976. <MemberSignature Language="C#" Value="public static Nullable&lt;double&gt; Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;double&gt;&gt; selector);" />
  5977. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float64&gt; Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float64&gt;&gt; selector) cil managed" />
  5978. <MemberType>Method</MemberType>
  5979. <AssemblyInfo>
  5980. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  5981. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  5982. </AssemblyInfo>
  5983. <ReturnValue>
  5984. <ReturnType>System.Nullable&lt;System.Double&gt;</ReturnType>
  5985. </ReturnValue>
  5986. <TypeParameters>
  5987. <TypeParameter Name="TSource" />
  5988. </TypeParameters>
  5989. <Parameters>
  5990. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  5991. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Double&gt;&gt;" />
  5992. </Parameters>
  5993. <Docs>
  5994. <remarks>
  5995. <attribution license="cc4" from="Microsoft" modified="false" />
  5996. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  5997. <para>The result does not include values that are null.</para>
  5998. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Double&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Double)</unmanagedCodeEntityReference> in vbprvb.</para>
  5999. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  6000. </remarks>
  6001. <summary>
  6002. <attribution license="cc4" from="Microsoft" modified="false" />
  6003. <para>Computes the sum of the sequence of nullable <see cref="T:System.Double" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  6004. </summary>
  6005. <returns>
  6006. <attribution license="cc4" from="Microsoft" modified="false" />
  6007. <para>The sum of the projected values.</para>
  6008. </returns>
  6009. <param name="source">
  6010. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  6011. <param name="selector">
  6012. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  6013. <typeparam name="TSource">
  6014. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6015. </Docs>
  6016. </Member>
  6017. <Member MemberName="Sum&lt;TSource&gt;">
  6018. <MemberSignature Language="C#" Value="public static Nullable&lt;int&gt; Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;int&gt;&gt; selector);" />
  6019. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int32&gt; Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int32&gt;&gt; selector) cil managed" />
  6020. <MemberType>Method</MemberType>
  6021. <AssemblyInfo>
  6022. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6023. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6024. </AssemblyInfo>
  6025. <ReturnValue>
  6026. <ReturnType>System.Nullable&lt;System.Int32&gt;</ReturnType>
  6027. </ReturnValue>
  6028. <TypeParameters>
  6029. <TypeParameter Name="TSource" />
  6030. </TypeParameters>
  6031. <Parameters>
  6032. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6033. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int32&gt;&gt;" />
  6034. </Parameters>
  6035. <Docs>
  6036. <remarks>
  6037. <attribution license="cc4" from="Microsoft" modified="false" />
  6038. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  6039. <para>The result does not include values that are null.</para>
  6040. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Int32&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int32)</unmanagedCodeEntityReference> in vbprvb.</para>
  6041. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  6042. </remarks>
  6043. <summary>
  6044. <attribution license="cc4" from="Microsoft" modified="false" />
  6045. <para>Computes the sum of the sequence of nullable <see cref="T:System.Int32" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  6046. </summary>
  6047. <returns>
  6048. <attribution license="cc4" from="Microsoft" modified="false" />
  6049. <para>The sum of the projected values.</para>
  6050. </returns>
  6051. <param name="source">
  6052. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  6053. <param name="selector">
  6054. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  6055. <typeparam name="TSource">
  6056. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6057. </Docs>
  6058. </Member>
  6059. <Member MemberName="Sum&lt;TSource&gt;">
  6060. <MemberSignature Language="C#" Value="public static Nullable&lt;long&gt; Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;long&gt;&gt; selector);" />
  6061. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;int64&gt; Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;int64&gt;&gt; selector) cil managed" />
  6062. <MemberType>Method</MemberType>
  6063. <AssemblyInfo>
  6064. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6065. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6066. </AssemblyInfo>
  6067. <ReturnValue>
  6068. <ReturnType>System.Nullable&lt;System.Int64&gt;</ReturnType>
  6069. </ReturnValue>
  6070. <TypeParameters>
  6071. <TypeParameter Name="TSource" />
  6072. </TypeParameters>
  6073. <Parameters>
  6074. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6075. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Int64&gt;&gt;" />
  6076. </Parameters>
  6077. <Docs>
  6078. <remarks>
  6079. <attribution license="cc4" from="Microsoft" modified="false" />
  6080. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  6081. <para>The result does not include values that are null.</para>
  6082. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Int64&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Int64)</unmanagedCodeEntityReference> in vbprvb</para>
  6083. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  6084. </remarks>
  6085. <summary>
  6086. <attribution license="cc4" from="Microsoft" modified="false" />
  6087. <para>Computes the sum of the sequence of nullable <see cref="T:System.Int64" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  6088. </summary>
  6089. <returns>
  6090. <attribution license="cc4" from="Microsoft" modified="false" />
  6091. <para>The sum of the projected values.</para>
  6092. </returns>
  6093. <param name="source">
  6094. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  6095. <param name="selector">
  6096. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  6097. <typeparam name="TSource">
  6098. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6099. </Docs>
  6100. </Member>
  6101. <Member MemberName="Sum&lt;TSource&gt;">
  6102. <MemberSignature Language="C#" Value="public static Nullable&lt;float&gt; Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,Nullable&lt;float&gt;&gt; selector);" />
  6103. <MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Nullable`1&lt;float32&gt; Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, valuetype System.Nullable`1&lt;float32&gt;&gt; selector) cil managed" />
  6104. <MemberType>Method</MemberType>
  6105. <AssemblyInfo>
  6106. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6107. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6108. </AssemblyInfo>
  6109. <ReturnValue>
  6110. <ReturnType>System.Nullable&lt;System.Single&gt;</ReturnType>
  6111. </ReturnValue>
  6112. <TypeParameters>
  6113. <TypeParameter Name="TSource" />
  6114. </TypeParameters>
  6115. <Parameters>
  6116. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6117. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Nullable&lt;System.Single&gt;&gt;" />
  6118. </Parameters>
  6119. <Docs>
  6120. <remarks>
  6121. <attribution license="cc4" from="Microsoft" modified="false" />
  6122. <para>This method returns zero if <paramref name="source" /> contains no elements.</para>
  6123. <para>The result does not include values that are null.</para>
  6124. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <unmanagedCodeEntityReference>Nullable&lt;Single&gt;</unmanagedCodeEntityReference> in C# or <unmanagedCodeEntityReference>Nullable(Of Single)</unmanagedCodeEntityReference> in vbprvb.</para>
  6125. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  6126. </remarks>
  6127. <summary>
  6128. <attribution license="cc4" from="Microsoft" modified="false" />
  6129. <para>Computes the sum of the sequence of nullable <see cref="T:System.Single" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  6130. </summary>
  6131. <returns>
  6132. <attribution license="cc4" from="Microsoft" modified="false" />
  6133. <para>The sum of the projected values.</para>
  6134. </returns>
  6135. <param name="source">
  6136. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  6137. <param name="selector">
  6138. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  6139. <typeparam name="TSource">
  6140. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6141. </Docs>
  6142. </Member>
  6143. <Member MemberName="Sum&lt;TSource&gt;">
  6144. <MemberSignature Language="C#" Value="public static float Sum&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,float&gt; selector);" />
  6145. <MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 Sum&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, float32&gt; selector) cil managed" />
  6146. <MemberType>Method</MemberType>
  6147. <AssemblyInfo>
  6148. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6149. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6150. </AssemblyInfo>
  6151. <ReturnValue>
  6152. <ReturnType>System.Single</ReturnType>
  6153. </ReturnValue>
  6154. <TypeParameters>
  6155. <TypeParameter Name="TSource" />
  6156. </TypeParameters>
  6157. <Parameters>
  6158. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6159. <Parameter Name="selector" Type="System.Func&lt;TSource,System.Single&gt;" />
  6160. </Parameters>
  6161. <Docs>
  6162. <remarks>
  6163. <attribution license="cc4" from="Microsoft" modified="false" />
  6164. <para>The <see cref="M:System.Linq.Enumerable.Sum``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Single})" /> method returns zero if <paramref name="source" /> contains no elements. </para>
  6165. <para>You can apply this method to a sequence of arbitrary values if you provide a function, <paramref name="selector" />, that projects the members of <paramref name="source" /> into a numeric type, specifically <see cref="T:System.Single" />.</para>
  6166. <para>In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.Sum" />.</para>
  6167. </remarks>
  6168. <summary>
  6169. <attribution license="cc4" from="Microsoft" modified="false" />
  6170. <para>Computes the sum of the sequence of <see cref="T:System.Single" /> values that are obtained by invoking a transform function on each element of the input sequence.</para>
  6171. </summary>
  6172. <returns>
  6173. <attribution license="cc4" from="Microsoft" modified="false" />
  6174. <para>The sum of the projected values.</para>
  6175. </returns>
  6176. <param name="source">
  6177. <attribution license="cc4" from="Microsoft" modified="false" />A sequence of values that are used to calculate a sum.</param>
  6178. <param name="selector">
  6179. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to apply to each element.</param>
  6180. <typeparam name="TSource">
  6181. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6182. </Docs>
  6183. </Member>
  6184. <Member MemberName="Take&lt;TSource&gt;">
  6185. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Take&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, int count);" />
  6186. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Take&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, int32 count) cil managed" />
  6187. <MemberType>Method</MemberType>
  6188. <AssemblyInfo>
  6189. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6190. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6191. </AssemblyInfo>
  6192. <ReturnValue>
  6193. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  6194. </ReturnValue>
  6195. <TypeParameters>
  6196. <TypeParameter Name="TSource" />
  6197. </TypeParameters>
  6198. <Parameters>
  6199. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6200. <Parameter Name="count" Type="System.Int32" />
  6201. </Parameters>
  6202. <Docs>
  6203. <remarks>
  6204. <attribution license="cc4" from="Microsoft" modified="false" />
  6205. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6206. <para>
  6207. <see cref="M:System.Linq.Enumerable.Take``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" /> enumerates <paramref name="source" /> and yields elements until <paramref name="count" /> elements have been yielded or <paramref name="source" /> contains no more elements. If <paramref name="count" /> exceeds the number of elements in <paramref name="source" />, all elements of <paramref name="source" /> are returned.</para>
  6208. <para>If <paramref name="count" /> is less than or equal to zero, <paramref name="source" /> is not enumerated and an empty <see cref="T:System.Collections.Generic.IEnumerable`1" /> is returned.</para>
  6209. <para>The <see cref="M:System.Linq.Enumerable.Take``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" /> and <see cref="M:System.Linq.Enumerable.Skip``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" /> methods are functional complements. Given a sequence coll and an integer n, concatenating the results of coll.Take(n) and coll.Skip(n) yields the same sequence as coll.</para>
  6210. <para>In vbprvb query expression syntax, a Take clause translates to an invocation of <see cref="M:System.Linq.Enumerable.Take``1(System.Collections.Generic.IEnumerable{``0},System.Int32)" />.</para>
  6211. </remarks>
  6212. <summary>
  6213. <attribution license="cc4" from="Microsoft" modified="false" />
  6214. <para>Returns a specified number of contiguous elements from the start of a sequence.</para>
  6215. </summary>
  6216. <returns>
  6217. <attribution license="cc4" from="Microsoft" modified="false" />
  6218. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the specified number of elements from the start of the input sequence.</para>
  6219. </returns>
  6220. <param name="source">
  6221. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to return elements from.</param>
  6222. <param name="count">
  6223. <attribution license="cc4" from="Microsoft" modified="false" />The number of elements to return.</param>
  6224. <typeparam name="TSource">
  6225. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6226. </Docs>
  6227. </Member>
  6228. <Member MemberName="TakeWhile&lt;TSource&gt;">
  6229. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; TakeWhile&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  6230. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; TakeWhile&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  6231. <MemberType>Method</MemberType>
  6232. <AssemblyInfo>
  6233. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6234. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6235. </AssemblyInfo>
  6236. <ReturnValue>
  6237. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  6238. </ReturnValue>
  6239. <TypeParameters>
  6240. <TypeParameter Name="TSource" />
  6241. </TypeParameters>
  6242. <Parameters>
  6243. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6244. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  6245. </Parameters>
  6246. <Docs>
  6247. <remarks>
  6248. <attribution license="cc4" from="Microsoft" modified="false" />
  6249. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6250. <para>The <see cref="M:System.Linq.Enumerable.TakeWhile``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" /> method tests each element of <paramref name="source" /> by using <paramref name="predicate" /> and yields the element if the result is true. Enumeration stops when the predicate function returns false for an element or when <paramref name="source" /> contains no more elements.</para>
  6251. <para>The <see cref="Overload:System.Linq.Enumerable.TakeWhile" /> and <see cref="Overload:System.Linq.Enumerable.SkipWhile" /> methods are functional complements. Given a sequence coll and a pure function p, concatenating the results of coll.TakeWhile(p) and coll.SkipWhile(p) yields the same sequence as coll.</para>
  6252. <para>In vbprvb query expression syntax, a Take While clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.TakeWhile" />.</para>
  6253. </remarks>
  6254. <summary>
  6255. <attribution license="cc4" from="Microsoft" modified="false" />
  6256. <para>Returns elements from a sequence as long as a specified condition is true.</para>
  6257. </summary>
  6258. <returns>
  6259. <attribution license="cc4" from="Microsoft" modified="false" />
  6260. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements from the input sequence that occur before the element at which the test no longer passes.</para>
  6261. </returns>
  6262. <param name="source">
  6263. <attribution license="cc4" from="Microsoft" modified="false" />A sequence to return elements from.</param>
  6264. <param name="predicate">
  6265. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  6266. <typeparam name="TSource">
  6267. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6268. </Docs>
  6269. </Member>
  6270. <Member MemberName="TakeWhile&lt;TSource&gt;">
  6271. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; TakeWhile&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int,bool&gt; predicate);" />
  6272. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; TakeWhile&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`3&lt;!!TSource, int32, bool&gt; predicate) cil managed" />
  6273. <MemberType>Method</MemberType>
  6274. <AssemblyInfo>
  6275. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6276. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6277. </AssemblyInfo>
  6278. <ReturnValue>
  6279. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  6280. </ReturnValue>
  6281. <TypeParameters>
  6282. <TypeParameter Name="TSource" />
  6283. </TypeParameters>
  6284. <Parameters>
  6285. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6286. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Int32,System.Boolean&gt;" />
  6287. </Parameters>
  6288. <Docs>
  6289. <remarks>
  6290. <attribution license="cc4" from="Microsoft" modified="false" />
  6291. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6292. <para>The <see cref="M:System.Linq.Enumerable.TakeWhile``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Int32,System.Boolean})" /> method tests each element of <paramref name="source" /> by using <paramref name="predicate" /> and yields the element if the result is true. Enumeration stops when the predicate function returns false for an element or when <paramref name="source" /> contains no more elements.</para>
  6293. <para>The first argument of <paramref name="predicate" /> represents the element to test. The second argument represents the zero-based index of the element within <paramref name="source" />.</para>
  6294. <para>The <see cref="Overload:System.Linq.Enumerable.TakeWhile" /> and <see cref="Overload:System.Linq.Enumerable.SkipWhile" /> methods are functional complements. Given a sequence coll and a pure function p, concatenating the results of coll.TakeWhile(p) and coll.SkipWhile(p) yields the same sequence as coll.</para>
  6295. <para>In vbprvb query expression syntax, a Take While clause translates to an invocation of <see cref="Overload:System.Linq.Enumerable.TakeWhile" />.</para>
  6296. </remarks>
  6297. <summary>
  6298. <attribution license="cc4" from="Microsoft" modified="false" />
  6299. <para>Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.</para>
  6300. </summary>
  6301. <returns>
  6302. <attribution license="cc4" from="Microsoft" modified="false" />
  6303. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains elements from the input sequence that occur before the element at which the test no longer passes.</para>
  6304. </returns>
  6305. <param name="source">
  6306. <attribution license="cc4" from="Microsoft" modified="false" />The sequence to return elements from.</param>
  6307. <param name="predicate">
  6308. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each source element for a condition; the second parameter of the function represents the index of the source element.</param>
  6309. <typeparam name="TSource">
  6310. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6311. </Docs>
  6312. </Member>
  6313. <Member MemberName="ThenBy&lt;TSource,TKey&gt;">
  6314. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; ThenBy&lt;TSource,TKey&gt; (this System.Linq.IOrderedEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector);" />
  6315. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; ThenBy&lt;TSource, TKey&gt;(class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector) cil managed" />
  6316. <MemberType>Method</MemberType>
  6317. <AssemblyInfo>
  6318. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6319. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6320. </AssemblyInfo>
  6321. <ReturnValue>
  6322. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  6323. </ReturnValue>
  6324. <TypeParameters>
  6325. <TypeParameter Name="TSource" />
  6326. <TypeParameter Name="TKey" />
  6327. </TypeParameters>
  6328. <Parameters>
  6329. <Parameter Name="source" Type="System.Linq.IOrderedEnumerable&lt;TSource&gt;" RefType="this" />
  6330. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6331. </Parameters>
  6332. <Docs>
  6333. <remarks>
  6334. <attribution license="cc4" from="Microsoft" modified="false" />
  6335. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6336. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  6337. <para>
  6338. <see cref="Overload:System.Linq.Enumerable.ThenBy" /> and <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is also the return type of these methods. This design enables you to specify multiple sort criteria by applying any number of <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> methods.</para>
  6339. <block subset="none" type="note">
  6340. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  6341. </block>
  6342. <para>This method compares keys by using the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" />.</para>
  6343. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  6344. <para>In query expression syntax, an orderby [first criterion], [second criterion] (csprcs) or Order By [first criterion], [second criterion] (vbprvb) clause translates to an invocation of <see cref="M:System.Linq.Enumerable.ThenBy``2(System.Linq.IOrderedEnumerable{``0},System.Func{``0,``1})" />.</para>
  6345. </remarks>
  6346. <summary>
  6347. <attribution license="cc4" from="Microsoft" modified="false" />
  6348. <para>Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.</para>
  6349. </summary>
  6350. <returns>
  6351. <attribution license="cc4" from="Microsoft" modified="false" />
  6352. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted according to a key.</para>
  6353. </returns>
  6354. <param name="source">
  6355. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Linq.IOrderedEnumerable`1" /> that contains elements to sort.</param>
  6356. <param name="keySelector">
  6357. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6358. <typeparam name="TSource">
  6359. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6360. <typeparam name="TKey">
  6361. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6362. </Docs>
  6363. </Member>
  6364. <Member MemberName="ThenBy&lt;TSource,TKey&gt;">
  6365. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; ThenBy&lt;TSource,TKey&gt; (this System.Linq.IOrderedEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, System.Collections.Generic.IComparer&lt;TKey&gt; comparer);" />
  6366. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; ThenBy&lt;TSource, TKey&gt;(class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Collections.Generic.IComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  6367. <MemberType>Method</MemberType>
  6368. <AssemblyInfo>
  6369. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6370. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6371. </AssemblyInfo>
  6372. <ReturnValue>
  6373. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  6374. </ReturnValue>
  6375. <TypeParameters>
  6376. <TypeParameter Name="TSource" />
  6377. <TypeParameter Name="TKey" />
  6378. </TypeParameters>
  6379. <Parameters>
  6380. <Parameter Name="source" Type="System.Linq.IOrderedEnumerable&lt;TSource&gt;" RefType="this" />
  6381. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6382. <Parameter Name="comparer" Type="System.Collections.Generic.IComparer&lt;TKey&gt;" />
  6383. </Parameters>
  6384. <Docs>
  6385. <remarks>
  6386. <attribution license="cc4" from="Microsoft" modified="false" />
  6387. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6388. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  6389. <para>
  6390. <see cref="Overload:System.Linq.Enumerable.ThenBy" /> and <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is also the return type of these methods. This design enables you to specify multiple sort criteria by applying any number of <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> methods.</para>
  6391. <block subset="none" type="note">
  6392. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  6393. </block>
  6394. <para>If <paramref name="comparer" /> is null, the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" /> is used to compare keys.</para>
  6395. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  6396. </remarks>
  6397. <summary>
  6398. <attribution license="cc4" from="Microsoft" modified="false" />
  6399. <para>Performs a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer.</para>
  6400. </summary>
  6401. <returns>
  6402. <attribution license="cc4" from="Microsoft" modified="false" />
  6403. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted according to a key.</para>
  6404. </returns>
  6405. <param name="source">
  6406. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Linq.IOrderedEnumerable`1" /> that contains elements to sort.</param>
  6407. <param name="keySelector">
  6408. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6409. <param name="comparer">
  6410. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IComparer`1" /> to compare keys.</param>
  6411. <typeparam name="TSource">
  6412. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6413. <typeparam name="TKey">
  6414. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6415. </Docs>
  6416. </Member>
  6417. <Member MemberName="ThenByDescending&lt;TSource,TKey&gt;">
  6418. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; ThenByDescending&lt;TSource,TKey&gt; (this System.Linq.IOrderedEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector);" />
  6419. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; ThenByDescending&lt;TSource, TKey&gt;(class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector) cil managed" />
  6420. <MemberType>Method</MemberType>
  6421. <AssemblyInfo>
  6422. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6423. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6424. </AssemblyInfo>
  6425. <ReturnValue>
  6426. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  6427. </ReturnValue>
  6428. <TypeParameters>
  6429. <TypeParameter Name="TSource" />
  6430. <TypeParameter Name="TKey" />
  6431. </TypeParameters>
  6432. <Parameters>
  6433. <Parameter Name="source" Type="System.Linq.IOrderedEnumerable&lt;TSource&gt;" RefType="this" />
  6434. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6435. </Parameters>
  6436. <Docs>
  6437. <remarks>
  6438. <attribution license="cc4" from="Microsoft" modified="false" />
  6439. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6440. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  6441. <para>
  6442. <see cref="Overload:System.Linq.Enumerable.ThenBy" /> and <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is also the return type of these methods. This design enables you to specify multiple sort criteria by applying any number of <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> methods.</para>
  6443. <block subset="none" type="note">
  6444. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  6445. </block>
  6446. <para>This sorting method compares keys by using the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" />.</para>
  6447. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  6448. <para>In csprcs query expression syntax, an orderby [first criterion], [second criterion] descending clause translates to an invocation of <see cref="M:System.Linq.Enumerable.ThenByDescending``2(System.Linq.IOrderedEnumerable{``0},System.Func{``0,``1})" />.</para>
  6449. <para>In vbprvb query expression syntax, an Order By [first criterion], [second criterion] Descending clause translates to an invocation of <see cref="M:System.Linq.Enumerable.ThenByDescending``2(System.Linq.IOrderedEnumerable{``0},System.Func{``0,``1})" />.</para>
  6450. </remarks>
  6451. <summary>
  6452. <attribution license="cc4" from="Microsoft" modified="false" />
  6453. <para>Performs a subsequent ordering of the elements in a sequence in descending order, according to a key.</para>
  6454. </summary>
  6455. <returns>
  6456. <attribution license="cc4" from="Microsoft" modified="false" />
  6457. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted in descending order according to a key.</para>
  6458. </returns>
  6459. <param name="source">
  6460. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Linq.IOrderedEnumerable`1" /> that contains elements to sort.</param>
  6461. <param name="keySelector">
  6462. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6463. <typeparam name="TSource">
  6464. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6465. <typeparam name="TKey">
  6466. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6467. </Docs>
  6468. </Member>
  6469. <Member MemberName="ThenByDescending&lt;TSource,TKey&gt;">
  6470. <MemberSignature Language="C#" Value="public static System.Linq.IOrderedEnumerable&lt;TSource&gt; ThenByDescending&lt;TSource,TKey&gt; (this System.Linq.IOrderedEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, System.Collections.Generic.IComparer&lt;TKey&gt; comparer);" />
  6471. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; ThenByDescending&lt;TSource, TKey&gt;(class System.Linq.IOrderedEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Collections.Generic.IComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  6472. <MemberType>Method</MemberType>
  6473. <AssemblyInfo>
  6474. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6475. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6476. </AssemblyInfo>
  6477. <ReturnValue>
  6478. <ReturnType>System.Linq.IOrderedEnumerable&lt;TSource&gt;</ReturnType>
  6479. </ReturnValue>
  6480. <TypeParameters>
  6481. <TypeParameter Name="TSource" />
  6482. <TypeParameter Name="TKey" />
  6483. </TypeParameters>
  6484. <Parameters>
  6485. <Parameter Name="source" Type="System.Linq.IOrderedEnumerable&lt;TSource&gt;" RefType="this" />
  6486. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6487. <Parameter Name="comparer" Type="System.Collections.Generic.IComparer&lt;TKey&gt;" />
  6488. </Parameters>
  6489. <Docs>
  6490. <remarks>
  6491. <attribution license="cc4" from="Microsoft" modified="false" />
  6492. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6493. <para>To order a sequence by the values of the elements themselves, specify the identity function (x =&gt; x in csprcs or Function(x) x in vbprvb) for <paramref name="keySelector" />.</para>
  6494. <para>
  6495. <see cref="Overload:System.Linq.Enumerable.ThenBy" /> and <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> are defined to extend the type <see cref="T:System.Linq.IOrderedEnumerable`1" />, which is also the return type of these methods. This design enables you to specify multiple sort criteria by applying any number of <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" /> methods.</para>
  6496. <block subset="none" type="note">
  6497. <para>Because <see cref="T:System.Linq.IOrderedEnumerable`1" /> inherits from <see cref="T:System.Collections.Generic.IEnumerable`1" />, you can call <see cref="Overload:System.Linq.Enumerable.OrderBy" /> or <see cref="Overload:System.Linq.Enumerable.OrderByDescending" /> on the results of a call to <see cref="Overload:System.Linq.Enumerable.OrderBy" />, <see cref="Overload:System.Linq.Enumerable.OrderByDescending" />, <see cref="Overload:System.Linq.Enumerable.ThenBy" /> or <see cref="Overload:System.Linq.Enumerable.ThenByDescending" />. Doing this introduces a new primary ordering that ignores the previously established ordering.</para>
  6498. </block>
  6499. <para>If <paramref name="comparer" /> is null, the default comparer <see cref="P:System.Collections.Generic.Comparer`1.Default" /> is used to compare keys.</para>
  6500. <para>This method performs a stable sort; that is, if the keys of two elements are equal, the order of the elements is preserved. In contrast, an unstable sort does not preserve the order of elements that have the same key.</para>
  6501. </remarks>
  6502. <summary>
  6503. <attribution license="cc4" from="Microsoft" modified="false" />
  6504. <para>Performs a subsequent ordering of the elements in a sequence in descending order by using a specified comparer.</para>
  6505. </summary>
  6506. <returns>
  6507. <attribution license="cc4" from="Microsoft" modified="false" />
  6508. <para>An <see cref="T:System.Linq.IOrderedEnumerable`1" /> whose elements are sorted in descending order according to a key.</para>
  6509. </returns>
  6510. <param name="source">
  6511. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Linq.IOrderedEnumerable`1" /> that contains elements to sort.</param>
  6512. <param name="keySelector">
  6513. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6514. <param name="comparer">
  6515. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IComparer`1" /> to compare keys.</param>
  6516. <typeparam name="TSource">
  6517. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6518. <typeparam name="TKey">
  6519. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6520. </Docs>
  6521. </Member>
  6522. <Member MemberName="ToArray&lt;TSource&gt;">
  6523. <MemberSignature Language="C#" Value="public static TSource[] ToArray&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  6524. <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!TSource[] ToArray&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  6525. <MemberType>Method</MemberType>
  6526. <AssemblyInfo>
  6527. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6528. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6529. </AssemblyInfo>
  6530. <ReturnValue>
  6531. <ReturnType>TSource[]</ReturnType>
  6532. </ReturnValue>
  6533. <TypeParameters>
  6534. <TypeParameter Name="TSource" />
  6535. </TypeParameters>
  6536. <Parameters>
  6537. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6538. </Parameters>
  6539. <Docs>
  6540. <remarks>
  6541. <attribution license="cc4" from="Microsoft" modified="false" />
  6542. <para>The <see cref="M:System.Linq.Enumerable.ToArray``1(System.Collections.Generic.IEnumerable{``0})" /> method forces immediate query evaluation and returns an array that contains the query results. You can append this method to your query in order to obtain a cached copy of the query results.</para>
  6543. <para>
  6544. <see cref="M:System.Linq.Enumerable.ToList``1(System.Collections.Generic.IEnumerable{``0})" /> has similar behavior but returns a <see cref="T:System.Collections.Generic.List`1" /> instead of an array.</para>
  6545. </remarks>
  6546. <summary>
  6547. <attribution license="cc4" from="Microsoft" modified="false" />
  6548. <para>Creates an array from a <see cref="T:System.Collections.Generic.IEnumerable`1" />.</para>
  6549. </summary>
  6550. <returns>
  6551. <attribution license="cc4" from="Microsoft" modified="false" />
  6552. <para>An array that contains the elements from the input sequence.</para>
  6553. </returns>
  6554. <param name="source">
  6555. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create an array from.</param>
  6556. <typeparam name="TSource">
  6557. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6558. </Docs>
  6559. </Member>
  6560. <Member MemberName="ToDictionary&lt;TSource,TKey&gt;">
  6561. <MemberSignature Language="C#" Value="public static System.Collections.Generic.Dictionary&lt;TKey,TSource&gt; ToDictionary&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector);" />
  6562. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.Dictionary`2&lt;!!TKey, !!TSource&gt; ToDictionary&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector) cil managed" />
  6563. <MemberType>Method</MemberType>
  6564. <AssemblyInfo>
  6565. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6566. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6567. </AssemblyInfo>
  6568. <ReturnValue>
  6569. <ReturnType>System.Collections.Generic.Dictionary&lt;TKey,TSource&gt;</ReturnType>
  6570. </ReturnValue>
  6571. <TypeParameters>
  6572. <TypeParameter Name="TSource" />
  6573. <TypeParameter Name="TKey" />
  6574. </TypeParameters>
  6575. <Parameters>
  6576. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6577. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6578. </Parameters>
  6579. <Docs>
  6580. <remarks>
  6581. <attribution license="cc4" from="Microsoft" modified="false" />
  6582. <para>The <see cref="M:System.Linq.Enumerable.ToDictionary``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})" /> method uses the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> to compare keys.</para>
  6583. </remarks>
  6584. <summary>
  6585. <attribution license="cc4" from="Microsoft" modified="false" />
  6586. <para>Creates a <see cref="T:System.Collections.Generic.Dictionary`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to a specified key selector function.</para>
  6587. </summary>
  6588. <returns>
  6589. <attribution license="cc4" from="Microsoft" modified="false" />
  6590. <para>A <see cref="T:System.Collections.Generic.Dictionary`2" /> that contains keys and values.</para>
  6591. </returns>
  6592. <param name="source">
  6593. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Collections.Generic.Dictionary`2" /> from.</param>
  6594. <param name="keySelector">
  6595. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6596. <typeparam name="TSource">
  6597. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6598. <typeparam name="TKey">
  6599. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6600. </Docs>
  6601. </Member>
  6602. <Member MemberName="ToDictionary&lt;TSource,TKey&gt;">
  6603. <MemberSignature Language="C#" Value="public static System.Collections.Generic.Dictionary&lt;TKey,TSource&gt; ToDictionary&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  6604. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.Dictionary`2&lt;!!TKey, !!TSource&gt; ToDictionary&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  6605. <MemberType>Method</MemberType>
  6606. <AssemblyInfo>
  6607. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6608. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6609. </AssemblyInfo>
  6610. <ReturnValue>
  6611. <ReturnType>System.Collections.Generic.Dictionary&lt;TKey,TSource&gt;</ReturnType>
  6612. </ReturnValue>
  6613. <TypeParameters>
  6614. <TypeParameter Name="TSource" />
  6615. <TypeParameter Name="TKey" />
  6616. </TypeParameters>
  6617. <Parameters>
  6618. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6619. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6620. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  6621. </Parameters>
  6622. <Docs>
  6623. <remarks>
  6624. <attribution license="cc4" from="Microsoft" modified="false" />
  6625. <para>If <paramref name="comparer" /> is null, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  6626. </remarks>
  6627. <summary>
  6628. <attribution license="cc4" from="Microsoft" modified="false" />
  6629. <para>Creates a <see cref="T:System.Collections.Generic.Dictionary`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to a specified key selector function and key comparer.</para>
  6630. </summary>
  6631. <returns>
  6632. <attribution license="cc4" from="Microsoft" modified="false" />
  6633. <para>A <see cref="T:System.Collections.Generic.Dictionary`2" /> that contains keys and values.</para>
  6634. </returns>
  6635. <param name="source">
  6636. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Collections.Generic.Dictionary`2" /> from.</param>
  6637. <param name="keySelector">
  6638. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6639. <param name="comparer">
  6640. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys.</param>
  6641. <typeparam name="TSource">
  6642. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6643. <typeparam name="TKey">
  6644. <attribution license="cc4" from="Microsoft" modified="false" />The type of the keys returned by <paramref name="keySelector" />.</typeparam>
  6645. </Docs>
  6646. </Member>
  6647. <Member MemberName="ToDictionary&lt;TSource,TKey,TElement&gt;">
  6648. <MemberSignature Language="C#" Value="public static System.Collections.Generic.Dictionary&lt;TKey,TElement&gt; ToDictionary&lt;TSource,TKey,TElement&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector);" />
  6649. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.Dictionary`2&lt;!!TKey, !!TElement&gt; ToDictionary&lt;TSource, TKey, TElement&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector) cil managed" />
  6650. <MemberType>Method</MemberType>
  6651. <AssemblyInfo>
  6652. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6653. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6654. </AssemblyInfo>
  6655. <ReturnValue>
  6656. <ReturnType>System.Collections.Generic.Dictionary&lt;TKey,TElement&gt;</ReturnType>
  6657. </ReturnValue>
  6658. <TypeParameters>
  6659. <TypeParameter Name="TSource" />
  6660. <TypeParameter Name="TKey" />
  6661. <TypeParameter Name="TElement" />
  6662. </TypeParameters>
  6663. <Parameters>
  6664. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6665. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6666. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  6667. </Parameters>
  6668. <Docs>
  6669. <remarks>
  6670. <attribution license="cc4" from="Microsoft" modified="false" />
  6671. <para>The <see cref="M:System.Linq.Enumerable.ToDictionary``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2})" /> method uses the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> to compare keys.</para>
  6672. </remarks>
  6673. <summary>
  6674. <attribution license="cc4" from="Microsoft" modified="false" />
  6675. <para>Creates a <see cref="T:System.Collections.Generic.Dictionary`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to specified key selector and element selector functions.</para>
  6676. </summary>
  6677. <returns>
  6678. <attribution license="cc4" from="Microsoft" modified="false" />
  6679. <para>A <see cref="T:System.Collections.Generic.Dictionary`2" /> that contains values of type <paramref name="TElement" /> selected from the input sequence.</para>
  6680. </returns>
  6681. <param name="source">
  6682. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Collections.Generic.Dictionary`2" /> from.</param>
  6683. <param name="keySelector">
  6684. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6685. <param name="elementSelector">
  6686. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to produce a result element value from each element.</param>
  6687. <typeparam name="TSource">
  6688. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6689. <typeparam name="TKey">
  6690. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6691. <typeparam name="TElement">
  6692. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="elementSelector" />.</typeparam>
  6693. </Docs>
  6694. </Member>
  6695. <Member MemberName="ToDictionary&lt;TSource,TKey,TElement&gt;">
  6696. <MemberSignature Language="C#" Value="public static System.Collections.Generic.Dictionary&lt;TKey,TElement&gt; ToDictionary&lt;TSource,TKey,TElement&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  6697. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.Dictionary`2&lt;!!TKey, !!TElement&gt; ToDictionary&lt;TSource, TKey, TElement&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  6698. <MemberType>Method</MemberType>
  6699. <AssemblyInfo>
  6700. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6701. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6702. </AssemblyInfo>
  6703. <ReturnValue>
  6704. <ReturnType>System.Collections.Generic.Dictionary&lt;TKey,TElement&gt;</ReturnType>
  6705. </ReturnValue>
  6706. <TypeParameters>
  6707. <TypeParameter Name="TSource" />
  6708. <TypeParameter Name="TKey" />
  6709. <TypeParameter Name="TElement" />
  6710. </TypeParameters>
  6711. <Parameters>
  6712. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6713. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6714. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  6715. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  6716. </Parameters>
  6717. <Docs>
  6718. <remarks>
  6719. <attribution license="cc4" from="Microsoft" modified="false" />
  6720. <para>If <paramref name="comparer" /> is null, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  6721. </remarks>
  6722. <summary>
  6723. <attribution license="cc4" from="Microsoft" modified="false" />
  6724. <para>Creates a <see cref="T:System.Collections.Generic.Dictionary`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to a specified key selector function, a comparer, and an element selector function.</para>
  6725. </summary>
  6726. <returns>
  6727. <attribution license="cc4" from="Microsoft" modified="false" />
  6728. <para>A <see cref="T:System.Collections.Generic.Dictionary`2" /> that contains values of type <paramref name="TElement" /> selected from the input sequence.</para>
  6729. </returns>
  6730. <param name="source">
  6731. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Collections.Generic.Dictionary`2" /> from.</param>
  6732. <param name="keySelector">
  6733. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6734. <param name="elementSelector">
  6735. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to produce a result element value from each element.</param>
  6736. <param name="comparer">
  6737. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys.</param>
  6738. <typeparam name="TSource">
  6739. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6740. <typeparam name="TKey">
  6741. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6742. <typeparam name="TElement">
  6743. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="elementSelector" />.</typeparam>
  6744. </Docs>
  6745. </Member>
  6746. <Member MemberName="ToList&lt;TSource&gt;">
  6747. <MemberSignature Language="C#" Value="public static System.Collections.Generic.List&lt;TSource&gt; ToList&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source);" />
  6748. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.List`1&lt;!!TSource&gt; ToList&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source) cil managed" />
  6749. <MemberType>Method</MemberType>
  6750. <AssemblyInfo>
  6751. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6752. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6753. </AssemblyInfo>
  6754. <ReturnValue>
  6755. <ReturnType>System.Collections.Generic.List&lt;TSource&gt;</ReturnType>
  6756. </ReturnValue>
  6757. <TypeParameters>
  6758. <TypeParameter Name="TSource" />
  6759. </TypeParameters>
  6760. <Parameters>
  6761. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6762. </Parameters>
  6763. <Docs>
  6764. <remarks>
  6765. <attribution license="cc4" from="Microsoft" modified="false" />
  6766. <para>The <see cref="M:System.Linq.Enumerable.ToList``1(System.Collections.Generic.IEnumerable{``0})" /> method forces immediate query evaluation and returns a <see cref="T:System.Collections.Generic.List`1" /> that contains the query results. You can append this method to your query in order to obtain a cached copy of the query results.</para>
  6767. <para>
  6768. <see cref="M:System.Linq.Enumerable.ToArray``1(System.Collections.Generic.IEnumerable{``0})" /> has similar behavior but returns an array instead of a <see cref="T:System.Collections.Generic.List`1" />.</para>
  6769. </remarks>
  6770. <summary>
  6771. <attribution license="cc4" from="Microsoft" modified="false" />
  6772. <para>Creates a <see cref="T:System.Collections.Generic.List`1" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" />.</para>
  6773. </summary>
  6774. <returns>
  6775. <attribution license="cc4" from="Microsoft" modified="false" />
  6776. <para>A <see cref="T:System.Collections.Generic.List`1" /> that contains elements from the input sequence.</para>
  6777. </returns>
  6778. <param name="source">
  6779. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Collections.Generic.List`1" /> from.</param>
  6780. <typeparam name="TSource">
  6781. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6782. </Docs>
  6783. </Member>
  6784. <Member MemberName="ToLookup&lt;TSource,TKey&gt;">
  6785. <MemberSignature Language="C#" Value="public static System.Linq.ILookup&lt;TKey,TSource&gt; ToLookup&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector);" />
  6786. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.ILookup`2&lt;!!TKey, !!TSource&gt; ToLookup&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector) cil managed" />
  6787. <MemberType>Method</MemberType>
  6788. <AssemblyInfo>
  6789. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6790. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6791. </AssemblyInfo>
  6792. <ReturnValue>
  6793. <ReturnType>System.Linq.ILookup&lt;TKey,TSource&gt;</ReturnType>
  6794. </ReturnValue>
  6795. <TypeParameters>
  6796. <TypeParameter Name="TSource" />
  6797. <TypeParameter Name="TKey" />
  6798. </TypeParameters>
  6799. <Parameters>
  6800. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6801. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6802. </Parameters>
  6803. <Docs>
  6804. <remarks>
  6805. <attribution license="cc4" from="Microsoft" modified="false" />
  6806. <para>The <see cref="M:System.Linq.Enumerable.ToLookup``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})" /> method returns a <see cref="T:System.Linq.Lookup`2" />, a one-to-many dictionary that maps keys to collections of values. A <see cref="T:System.Linq.Lookup`2" /> differs from a <see cref="T:System.Collections.Generic.Dictionary`2" />, which performs a one-to-one mapping of keys to single values.</para>
  6807. <para>The default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  6808. </remarks>
  6809. <summary>
  6810. <attribution license="cc4" from="Microsoft" modified="false" />
  6811. <para>Creates a <see cref="T:System.Linq.Lookup`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to a specified key selector function.</para>
  6812. </summary>
  6813. <returns>
  6814. <attribution license="cc4" from="Microsoft" modified="false" />
  6815. <para>A <see cref="T:System.Linq.Lookup`2" /> that contains keys and values.</para>
  6816. </returns>
  6817. <param name="source">
  6818. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Linq.Lookup`2" /> from.</param>
  6819. <param name="keySelector">
  6820. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6821. <typeparam name="TSource">
  6822. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6823. <typeparam name="TKey">
  6824. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6825. </Docs>
  6826. </Member>
  6827. <Member MemberName="ToLookup&lt;TSource,TKey&gt;">
  6828. <MemberSignature Language="C#" Value="public static System.Linq.ILookup&lt;TKey,TSource&gt; ToLookup&lt;TSource,TKey&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  6829. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.ILookup`2&lt;!!TKey, !!TSource&gt; ToLookup&lt;TSource, TKey&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  6830. <MemberType>Method</MemberType>
  6831. <AssemblyInfo>
  6832. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6833. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6834. </AssemblyInfo>
  6835. <ReturnValue>
  6836. <ReturnType>System.Linq.ILookup&lt;TKey,TSource&gt;</ReturnType>
  6837. </ReturnValue>
  6838. <TypeParameters>
  6839. <TypeParameter Name="TSource" />
  6840. <TypeParameter Name="TKey" />
  6841. </TypeParameters>
  6842. <Parameters>
  6843. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6844. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6845. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  6846. </Parameters>
  6847. <Docs>
  6848. <remarks>
  6849. <attribution license="cc4" from="Microsoft" modified="false" />
  6850. <para>The <see cref="M:System.Linq.Enumerable.ToLookup``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IEqualityComparer{``1})" /> method returns a <see cref="T:System.Linq.Lookup`2" />, a one-to-many dictionary that maps keys to collections of values. A <see cref="T:System.Linq.Lookup`2" /> is different to a <see cref="T:System.Collections.Generic.Dictionary`2" />, which performs a one-to-one mapping of keys to single values.</para>
  6851. <para>If <paramref name="comparer" /> is null, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  6852. </remarks>
  6853. <summary>
  6854. <attribution license="cc4" from="Microsoft" modified="false" />
  6855. <para>Creates a <see cref="T:System.Linq.Lookup`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to a specified key selector function and key comparer.</para>
  6856. </summary>
  6857. <returns>
  6858. <attribution license="cc4" from="Microsoft" modified="false" />
  6859. <para>A <see cref="T:System.Linq.Lookup`2" /> that contains keys and values.</para>
  6860. </returns>
  6861. <param name="source">
  6862. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Linq.Lookup`2" /> from.</param>
  6863. <param name="keySelector">
  6864. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6865. <param name="comparer">
  6866. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys.</param>
  6867. <typeparam name="TSource">
  6868. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6869. <typeparam name="TKey">
  6870. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6871. </Docs>
  6872. </Member>
  6873. <Member MemberName="ToLookup&lt;TSource,TKey,TElement&gt;">
  6874. <MemberSignature Language="C#" Value="public static System.Linq.ILookup&lt;TKey,TElement&gt; ToLookup&lt;TSource,TKey,TElement&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector);" />
  6875. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.ILookup`2&lt;!!TKey, !!TElement&gt; ToLookup&lt;TSource, TKey, TElement&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector) cil managed" />
  6876. <MemberType>Method</MemberType>
  6877. <AssemblyInfo>
  6878. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6879. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6880. </AssemblyInfo>
  6881. <ReturnValue>
  6882. <ReturnType>System.Linq.ILookup&lt;TKey,TElement&gt;</ReturnType>
  6883. </ReturnValue>
  6884. <TypeParameters>
  6885. <TypeParameter Name="TSource" />
  6886. <TypeParameter Name="TKey" />
  6887. <TypeParameter Name="TElement" />
  6888. </TypeParameters>
  6889. <Parameters>
  6890. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6891. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6892. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  6893. </Parameters>
  6894. <Docs>
  6895. <remarks>
  6896. <attribution license="cc4" from="Microsoft" modified="false" />
  6897. <para>The <see cref="M:System.Linq.Enumerable.ToLookup``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2})" /> method returns a <see cref="T:System.Linq.Lookup`2" />, a one-to-many dictionary that maps keys to collections of values. A <see cref="T:System.Linq.Lookup`2" /> differs from a <see cref="T:System.Collections.Generic.Dictionary`2" />, which performs a one-to-one mapping of keys to single values.</para>
  6898. <para>The default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  6899. </remarks>
  6900. <summary>
  6901. <attribution license="cc4" from="Microsoft" modified="false" />
  6902. <para>Creates a <see cref="T:System.Linq.Lookup`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to specified key selector and element selector functions.</para>
  6903. </summary>
  6904. <returns>
  6905. <attribution license="cc4" from="Microsoft" modified="false" />
  6906. <para>A <see cref="T:System.Linq.Lookup`2" /> that contains values of type <paramref name="TElement" /> selected from the input sequence.</para>
  6907. </returns>
  6908. <param name="source">
  6909. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Linq.Lookup`2" /> from.</param>
  6910. <param name="keySelector">
  6911. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6912. <param name="elementSelector">
  6913. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to produce a result element value from each element.</param>
  6914. <typeparam name="TSource">
  6915. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6916. <typeparam name="TKey">
  6917. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6918. <typeparam name="TElement">
  6919. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="elementSelector" />.</typeparam>
  6920. </Docs>
  6921. </Member>
  6922. <Member MemberName="ToLookup&lt;TSource,TKey,TElement&gt;">
  6923. <MemberSignature Language="C#" Value="public static System.Linq.ILookup&lt;TKey,TElement&gt; ToLookup&lt;TSource,TKey,TElement&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,TKey&gt; keySelector, Func&lt;TSource,TElement&gt; elementSelector, System.Collections.Generic.IEqualityComparer&lt;TKey&gt; comparer);" />
  6924. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Linq.ILookup`2&lt;!!TKey, !!TElement&gt; ToLookup&lt;TSource, TKey, TElement&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, !!TKey&gt; keySelector, class System.Func`2&lt;!!TSource, !!TElement&gt; elementSelector, class System.Collections.Generic.IEqualityComparer`1&lt;!!TKey&gt; comparer) cil managed" />
  6925. <MemberType>Method</MemberType>
  6926. <AssemblyInfo>
  6927. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6928. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6929. </AssemblyInfo>
  6930. <ReturnValue>
  6931. <ReturnType>System.Linq.ILookup&lt;TKey,TElement&gt;</ReturnType>
  6932. </ReturnValue>
  6933. <TypeParameters>
  6934. <TypeParameter Name="TSource" />
  6935. <TypeParameter Name="TKey" />
  6936. <TypeParameter Name="TElement" />
  6937. </TypeParameters>
  6938. <Parameters>
  6939. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6940. <Parameter Name="keySelector" Type="System.Func&lt;TSource,TKey&gt;" />
  6941. <Parameter Name="elementSelector" Type="System.Func&lt;TSource,TElement&gt;" />
  6942. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TKey&gt;" />
  6943. </Parameters>
  6944. <Docs>
  6945. <remarks>
  6946. <attribution license="cc4" from="Microsoft" modified="false" />
  6947. <para>The <see cref="M:System.Linq.Enumerable.ToLookup``3(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Func{``0,``2},System.Collections.Generic.IEqualityComparer{``1})" /> method returns a <see cref="T:System.Linq.Lookup`2" />, a one-to-many dictionary that maps keys to collections of values. A <see cref="T:System.Linq.Lookup`2" /> differs from a <see cref="T:System.Collections.Generic.Dictionary`2" />, which performs a one-to-one mapping of keys to single values.</para>
  6948. <para>If <paramref name="comparer" /> is null, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used to compare keys.</para>
  6949. </remarks>
  6950. <summary>
  6951. <attribution license="cc4" from="Microsoft" modified="false" />
  6952. <para>Creates a <see cref="T:System.Linq.Lookup`2" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> according to a specified key selector function, a comparer and an element selector function.</para>
  6953. </summary>
  6954. <returns>
  6955. <attribution license="cc4" from="Microsoft" modified="false" />
  6956. <para>A <see cref="T:System.Linq.Lookup`2" /> that contains values of type <paramref name="TElement" /> selected from the input sequence.</para>
  6957. </returns>
  6958. <param name="source">
  6959. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEnumerable`1" /> to create a <see cref="T:System.Linq.Lookup`2" /> from.</param>
  6960. <param name="keySelector">
  6961. <attribution license="cc4" from="Microsoft" modified="false" />A function to extract a key from each element.</param>
  6962. <param name="elementSelector">
  6963. <attribution license="cc4" from="Microsoft" modified="false" />A transform function to produce a result element value from each element.</param>
  6964. <param name="comparer">
  6965. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare keys.</param>
  6966. <typeparam name="TSource">
  6967. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  6968. <typeparam name="TKey">
  6969. <attribution license="cc4" from="Microsoft" modified="false" />The type of the key returned by <paramref name="keySelector" />.</typeparam>
  6970. <typeparam name="TElement">
  6971. <attribution license="cc4" from="Microsoft" modified="false" />The type of the value returned by <paramref name="elementSelector" />.</typeparam>
  6972. </Docs>
  6973. </Member>
  6974. <Member MemberName="Union&lt;TSource&gt;">
  6975. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Union&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second);" />
  6976. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Union&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second) cil managed" />
  6977. <MemberType>Method</MemberType>
  6978. <AssemblyInfo>
  6979. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  6980. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  6981. </AssemblyInfo>
  6982. <ReturnValue>
  6983. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  6984. </ReturnValue>
  6985. <TypeParameters>
  6986. <TypeParameter Name="TSource" />
  6987. </TypeParameters>
  6988. <Parameters>
  6989. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  6990. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  6991. </Parameters>
  6992. <Docs>
  6993. <remarks>
  6994. <attribution license="cc4" from="Microsoft" modified="false" />
  6995. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  6996. <para>This method excludes duplicates from the return set. This is different behavior to the <see cref="M:System.Linq.Enumerable.Concat``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method, which returns all the elements in the input sequences including duplicates.</para>
  6997. <para>The default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values of the types that implement the <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> generic interface. To compare a custom data type, you need to implement this interface and provide your own <see cref="M:System.Object.GetHashCode" /> and <see cref="M:System.Object.Equals(System.Object)" /> methods for the type.</para>
  6998. <para>When the object returned by this method is enumerated, <see cref="M:System.Linq.Enumerable.Union``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> enumerates <paramref name="first" /> and <paramref name="second" /> in that order and yields each element that has not already been yielded.</para>
  6999. </remarks>
  7000. <summary>
  7001. <attribution license="cc4" from="Microsoft" modified="false" />
  7002. <para>Produces the set union of two sequences by using the default equality comparer.</para>
  7003. </summary>
  7004. <returns>
  7005. <attribution license="cc4" from="Microsoft" modified="false" />
  7006. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements from both input sequences, excluding duplicates.</para>
  7007. </returns>
  7008. <param name="first">
  7009. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements form the first set for the union.</param>
  7010. <param name="second">
  7011. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements form the second set for the union.</param>
  7012. <typeparam name="TSource">
  7013. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  7014. </Docs>
  7015. </Member>
  7016. <Member MemberName="Union&lt;TSource&gt;">
  7017. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Union&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; first, System.Collections.Generic.IEnumerable&lt;TSource&gt; second, System.Collections.Generic.IEqualityComparer&lt;TSource&gt; comparer);" />
  7018. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Union&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; second, class System.Collections.Generic.IEqualityComparer`1&lt;!!TSource&gt; comparer) cil managed" />
  7019. <MemberType>Method</MemberType>
  7020. <AssemblyInfo>
  7021. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  7022. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  7023. </AssemblyInfo>
  7024. <ReturnValue>
  7025. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  7026. </ReturnValue>
  7027. <TypeParameters>
  7028. <TypeParameter Name="TSource" />
  7029. </TypeParameters>
  7030. <Parameters>
  7031. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  7032. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" />
  7033. <Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer&lt;TSource&gt;" />
  7034. </Parameters>
  7035. <Docs>
  7036. <remarks>
  7037. <attribution license="cc4" from="Microsoft" modified="false" />
  7038. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  7039. <para>If c<paramref name="omparer" /> is null, the default equality comparer, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" />, is used to compare values.</para>
  7040. <para>When the object returned by this method is enumerated, <see cref="M:System.Linq.Enumerable.Union``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> enumerates <paramref name="first" /> and <paramref name="second" /> in that order and yields each element that has not already been yielded.</para>
  7041. <para>The <see cref="M:System.Linq.Enumerable.Concat``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method differs from the <see cref="M:System.Linq.Enumerable.Union``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method because the <see cref="M:System.Linq.Enumerable.Concat``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> method returns all the elements in the input sequences including duplicates, whereas <see cref="M:System.Linq.Enumerable.Union``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEnumerable{``0})" /> returns only unique values.</para>
  7042. </remarks>
  7043. <summary>
  7044. <attribution license="cc4" from="Microsoft" modified="false" />
  7045. <para>Produces the set union of two sequences by using a specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" />.</para>
  7046. </summary>
  7047. <returns>
  7048. <attribution license="cc4" from="Microsoft" modified="false" />
  7049. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the elements from both input sequences, excluding duplicates.</para>
  7050. </returns>
  7051. <param name="first">
  7052. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements form the first set for the union.</param>
  7053. <param name="second">
  7054. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose distinct elements form the second set for the union.</param>
  7055. <param name="comparer">
  7056. <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to compare values.</param>
  7057. <typeparam name="TSource">
  7058. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the input sequences.</typeparam>
  7059. </Docs>
  7060. </Member>
  7061. <Member MemberName="Where&lt;TSource&gt;">
  7062. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Where&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,bool&gt; predicate);" />
  7063. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Where&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`2&lt;!!TSource, bool&gt; predicate) cil managed" />
  7064. <MemberType>Method</MemberType>
  7065. <AssemblyInfo>
  7066. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  7067. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  7068. </AssemblyInfo>
  7069. <ReturnValue>
  7070. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  7071. </ReturnValue>
  7072. <TypeParameters>
  7073. <TypeParameter Name="TSource" />
  7074. </TypeParameters>
  7075. <Parameters>
  7076. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  7077. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Boolean&gt;" />
  7078. </Parameters>
  7079. <Docs>
  7080. <remarks>
  7081. <attribution license="cc4" from="Microsoft" modified="false" />
  7082. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  7083. <para>In query expression syntax, a where (csprcs) or Where (vbprvb) clause translates to an invocation of <see cref="M:System.Linq.Enumerable.Where``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})" />.</para>
  7084. </remarks>
  7085. <summary>
  7086. <attribution license="cc4" from="Microsoft" modified="false" />
  7087. <para>Filters a sequence of values based on a predicate.</para>
  7088. </summary>
  7089. <returns>
  7090. <attribution license="cc4" from="Microsoft" modified="false" />
  7091. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains elements from the input sequence that satisfy the condition.</para>
  7092. </returns>
  7093. <param name="source">
  7094. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to filter.</param>
  7095. <param name="predicate">
  7096. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each element for a condition.</param>
  7097. <typeparam name="TSource">
  7098. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  7099. </Docs>
  7100. </Member>
  7101. <Member MemberName="Where&lt;TSource&gt;">
  7102. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TSource&gt; Where&lt;TSource&gt; (this System.Collections.Generic.IEnumerable&lt;TSource&gt; source, Func&lt;TSource,int,bool&gt; predicate);" />
  7103. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; Where&lt;TSource&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TSource&gt; source, class System.Func`3&lt;!!TSource, int32, bool&gt; predicate) cil managed" />
  7104. <MemberType>Method</MemberType>
  7105. <AssemblyInfo>
  7106. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  7107. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  7108. </AssemblyInfo>
  7109. <ReturnValue>
  7110. <ReturnType>System.Collections.Generic.IEnumerable&lt;TSource&gt;</ReturnType>
  7111. </ReturnValue>
  7112. <TypeParameters>
  7113. <TypeParameter Name="TSource" />
  7114. </TypeParameters>
  7115. <Parameters>
  7116. <Parameter Name="source" Type="System.Collections.Generic.IEnumerable&lt;TSource&gt;" RefType="this" />
  7117. <Parameter Name="predicate" Type="System.Func&lt;TSource,System.Int32,System.Boolean&gt;" />
  7118. </Parameters>
  7119. <Docs>
  7120. <remarks>
  7121. <attribution license="cc4" from="Microsoft" modified="false" />
  7122. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  7123. <para>The first argument of <paramref name="predicate" /> represents the element to test. The second argument represents the zero-based index of the element within <paramref name="source" />.</para>
  7124. </remarks>
  7125. <summary>
  7126. <attribution license="cc4" from="Microsoft" modified="false" />
  7127. <para>Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.</para>
  7128. </summary>
  7129. <returns>
  7130. <attribution license="cc4" from="Microsoft" modified="false" />
  7131. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains elements from the input sequence that satisfy the condition.</para>
  7132. </returns>
  7133. <param name="source">
  7134. <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Collections.Generic.IEnumerable`1" /> to filter.</param>
  7135. <param name="predicate">
  7136. <attribution license="cc4" from="Microsoft" modified="false" />A function to test each source element for a condition; the second parameter of the function represents the index of the source element.</param>
  7137. <typeparam name="TSource">
  7138. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of <paramref name="source" />.</typeparam>
  7139. </Docs>
  7140. </Member>
  7141. <Member MemberName="Zip&lt;TFirst,TSecond,TResult&gt;">
  7142. <MemberSignature Language="C#" Value="public static System.Collections.Generic.IEnumerable&lt;TResult&gt; Zip&lt;TFirst,TSecond,TResult&gt; (this System.Collections.Generic.IEnumerable&lt;TFirst&gt; first, System.Collections.Generic.IEnumerable&lt;TSecond&gt; second, Func&lt;TFirst,TSecond,TResult&gt; resultSelector);" />
  7143. <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Collections.Generic.IEnumerable`1&lt;!!TResult&gt; Zip&lt;TFirst, TSecond, TResult&gt;(class System.Collections.Generic.IEnumerable`1&lt;!!TFirst&gt; first, class System.Collections.Generic.IEnumerable`1&lt;!!TSecond&gt; second, class System.Func`3&lt;!!TFirst, !!TSecond, !!TResult&gt; resultSelector) cil managed" />
  7144. <MemberType>Method</MemberType>
  7145. <AssemblyInfo>
  7146. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  7147. </AssemblyInfo>
  7148. <ReturnValue>
  7149. <ReturnType>System.Collections.Generic.IEnumerable&lt;TResult&gt;</ReturnType>
  7150. </ReturnValue>
  7151. <TypeParameters>
  7152. <TypeParameter Name="TFirst" />
  7153. <TypeParameter Name="TSecond" />
  7154. <TypeParameter Name="TResult" />
  7155. </TypeParameters>
  7156. <Parameters>
  7157. <Parameter Name="first" Type="System.Collections.Generic.IEnumerable&lt;TFirst&gt;" RefType="this" />
  7158. <Parameter Name="second" Type="System.Collections.Generic.IEnumerable&lt;TSecond&gt;" />
  7159. <Parameter Name="resultSelector" Type="System.Func&lt;TFirst,TSecond,TResult&gt;" />
  7160. </Parameters>
  7161. <Docs>
  7162. <remarks>
  7163. <attribution license="cc4" from="Microsoft" modified="false" />
  7164. <para>This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its <unmanagedCodeEntityReference>GetEnumerator</unmanagedCodeEntityReference> method directly or by using foreach in csprcs or For Each in vbprvb.</para>
  7165. <para>The method merges each element of the first sequence with an element that has the same index in the second sequence. If the sequences do not have the same number of elements, the method merges sequences until it reaches the end of one of them. For example, if one sequence has three elements and the other one has four, the result sequence will have only three elements.</para>
  7166. </remarks>
  7167. <summary>
  7168. <attribution license="cc4" from="Microsoft" modified="false" />
  7169. <para>Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.</para>
  7170. </summary>
  7171. <returns>
  7172. <attribution license="cc4" from="Microsoft" modified="false" />
  7173. <para>An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains merged elements of two input sequences.</para>
  7174. </returns>
  7175. <param name="first">
  7176. <attribution license="cc4" from="Microsoft" modified="false" />The first sequence to merge.</param>
  7177. <param name="second">
  7178. <attribution license="cc4" from="Microsoft" modified="false" />The second sequence to merge.</param>
  7179. <param name="resultSelector">
  7180. <attribution license="cc4" from="Microsoft" modified="false" />A function that specifies how to merge the elements from the two sequences.</param>
  7181. <typeparam name="TFirst">
  7182. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the first input sequence.</typeparam>
  7183. <typeparam name="TSecond">
  7184. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the second input sequence.</typeparam>
  7185. <typeparam name="TResult">
  7186. <attribution license="cc4" from="Microsoft" modified="false" />The type of the elements of the result sequence.</typeparam>
  7187. </Docs>
  7188. </Member>
  7189. </Members>
  7190. </Type>