单项选择题
A. Use the following code: Client foundClient;foundClient = (Client) cData.Find ("10111");
B. Use the following code: Client foundClient;if (cData.Contains ("10111")) foundClient = cData ["10111"];
C. Use the following code: Client foundClient;if (cData.Contains ("10111"))foundClient =(Client) cData ["10111"];
D. Use the following code: Client foundClient;foreach (string key in cData.Keys {if (key == "10111")foundClient = (Client) cData.Values ["10111"]; }
单项选择题 YouworkasanapplicationdeveloperatCertkiller.com.Certkiller.comhasbeenhiredbyasmalllocalprivateschooltodevelopaclasslibrarythatwillbeusedinanapplicationnamedManageAttendanceforthepurposeofmanagingstudentrecords.Youareresponsiblefordevelopingthisclasslibrary.Certkiller.comhasinstructedyoutocreateacollectionintheapplicationtostorelearners’results.Theschoolhasinformedyouthattheycurrentlyonlyhavesevenlearners,butthatthisvaluewilltripleinthefollowingyear.Duetothelimitedresources,youneedtoensurethatthecollectionyoucreateconsumesaminimumamountofresources.Whatshouldyouusetocreatethecollection?()
单项选择题 YouworkasanapplicationdeveloperatCertkiller.com.Certkiller.comhasbeencontractedtodevelopanapplicationforthelocalbank.Youhavebeengiventheresponsibilityofcreatingthisapplicationandneedtostoreeachtransactionrecord,whichisidentifiedusingacomplextransactionidentifier,inmemory.Thebankinformsyouthatthetotalamountoftransactionrecordscouldreach200perday.Toachievethis,youdecidetoutilizeoneoftheexistingcollectionclassesinthe.NET2.0classlibrary.Youneedtoensurethatyouthecollectionclassyouselectisthemostefficientoneforstoringtransactionrecords.Whatshouldyoudo?()
单项选择题 YouworkasanapplicationdeveloperatCertkiller.com.Youarecurrentlyintheprocessofreviewinganapplicationthatwascreatedbyafellowdeveloper.TheapplicationthatyouarereviewingincludesadeclarationforacollectionnamedEmployeeList,whichstoresEmployeeobjects.Thedeclarationisshownbelow:publicclassEmployeeList:Enumerator,IEnumerable{//Classimplementation}YourequiretheabilitytoiteratethroughtheEmployeeListwithminimumdevelopmenteffort.Whatshouldyoudo?()