Interfacesqueueuserworkitem

queueuserworkitem  时间:2021-02-26  阅读:()
ResourcesBooksAbrams,Brad.
.
NETFrameworkStandardLibraryAnnotatedReference,Volumes1and2.
Boston,MA:Addison-WesleyProfessional,2004,2005.
Allison,Damon,AndyOlson,JamesSpeer.
VisualBasic.
NETClassDesignHandbook:CodingEffectiveClasses.
Berkeley,CA:Apress,2003.
Boehm,Anne.
Murach'sVisualBasic2005.
Fresno,CA:MikeMurach&Associates,2006.
Booch,Grady.
Object-OrientedAnalysisandDesignwithApplications,SecondEdition.
Boston,MA:Addison-WesleyProfessional,1993.
Box,Don,withChrisSells.
Essential.
NET,Volume1:TheCommonLanguageRuntime.
Boston,MA:Addison-WesleyProfessional,2002.
Cwalina,Krzysztof,andBradAbrams.
FrameworkDesignGuidelines:Conventions,Idioms,andPatternsforReusable.
NETLibraries.
Boston,MA:Addison-WesleyProfessional,2005.
EcmaInternational.
StandardECMA-335:CommonLanguageInfrastructure(CLI),FourthEdition.
Geneva,Switzerland:EcmaInternational,2006.
Evjen,Bill,RockfordLhotka,BillyHollis,BillSheldon,KentSharkey,TimMcCarthy,RamaRamachandran.
ProfessionalVB2005.
Indianapolis,IN:WileyPublishing,2006.
Ferracchiati,FabioClaudio.
LINQforVB2005.
Berkeley,CA:Apress,2007.
Fischer,Tom,JohnSlater,PeteStromquist,ChaurG.
Wu.
ProfessionalDesignPatternsinVB.
NET:BuildingAdaptableApplications.
Berkeley,CA:Apress,2002.
Fowler,Martin.
UMLDistilled:ABriefGuidetotheStandardObjectModelingLanguage,ThirdEdition.
Boston,MA:Addison-WesleyProfessional,2003.
Freeman,Elisabeth,andEricFreeman,withKathySierraandBertBates.
HeadFirstDesignPatterns.
Sebastopol,CA:O'ReillyMedia,2004.
Gamma,Erich,RichardHelm,RalphJohnson,andJohnVlissides.
DesignPatterns:ElementsofReusableObject-OrientedSoftware.
Boston,MA:Addison-WesleyProfessional,1995.
Griver,YairAlan,MatthewArnheiter,MichaelGellis.
VisualBasicDeveloper'sGuidetoUMLandDesignPatterns.
Hoboken,NJ:Sybex,2000.
Larman,Craig.
ApplyingUMLandPatterns:AnIntroductiontoObject-OrientedAnalysisandDesignandIterativeDevelopment.
UpperSaddleRiver,NJ:PrenticeHallPTR,2004.
Lau,Yun-Tung.
TheArtofObjects:Object-OrientedDesignandArchitecture.
Boston,MA:Addison-WesleyProfessional,2001.
417APPENDIXALhotka,Rockford.
ExpertVB2005BusinessObjects,SecondEdition.
Berkeley,CA:Apress,2006.
Liberty,Jesse.
ProgrammingVisualBasic2005.
Sebastopol,CA:O'ReillyMedia,2005.
Moore,Karl.
KarlMoore'sVisualBasic.
NET:TheTutorials.
Berkeley,CA:Apress,2002.
Patrick,Tim,andJohnClarkCraig.
VisualBasic2005Cookbook:SolutionsforVB2005Programmers.
Sebastopol,CA:O'ReillyMedia,2006.
Richter,Jeffrey.
AppliedMicrosoft.
NETFrameworkProgramming.
Redmond,WA:MicrosoftPress,2002.
Stephens,Rod.
VisualBasic2005Programmer'sReference.
Indianapolis,IN:WileyPublishing,2005.
Stoecker,Matthew,withMicrosoftCorporation.
MCAD/MCSDSelf-PacedTrainingKit:DevelopingWindows-BasedApplicationswithMicrosoftVisualBasic.
NETandVisualC#.
NET,SecondEdition.
Redmond,CA:MicrosoftPress,2003.
Sutter,Herb.
ExceptionalC++:47EngineeringPuzzles,ProgrammingProblems,andException-SafetySolutions.
Boston,MA:Addison-WesleyProfessional,1999.
Troelsen,Andrew.
ProVB2005andthe.
NET2.
0Platform.
Berkeley,CA:Apress,2006.
Yourdon,Edward,andLarryL.
Constantine.
StructuredDesign:FundamentalsofaDisciplineofComputerProgramandSystemsDesign.
UpperSaddleRiver,NJ:PrenticeHall,1979.
ArticlesKaplan,Michael,andCathyWissink.
"CustomCultures:ExtendYourCode'sGlobalReachWithNewFeaturesInThe.
NETFramework2.
0.
"MSDNMagazine,October2005.
Robbins,John.
"UnhandledExceptionsandTracinginthe.
NETFramework2.
0.
"MSDNMagazine,July2005.
Schmidt,DouglasC.
"MonitorObject:AnObjectBehavioralPatternforConcurrentProgramming.
"DepartmentofComputerScienceandEngineering,WashingtonUniversity,St.
Louis,MO,April2005.
Toub,Stephen.
"HighAvailability:KeepYourCodeRunningwiththeReliabilityFeaturesofthe.
NETFramework.
"MSDNMagazine,October2005.
Vermeulen,Allan.
"AnAsynchronousDesignPattern.
"Dr.
Dobb'sJournal,June1996.
Ng,Timothy.
"BasicInstincts:LambdaExpressions.
"MSDNMagazine,September,2007.
Horst,Bill.
"BasicInstincts:TypeInferenceinVisualBasic2008.
"MSDNMagazine,October2007.
Web101LINQSamples.
http://msdn2.
microsoft.
com/en-us/vbasic/bb688088.
aspx101SamplesforVisualBasic2005.
http://msdn2.
microsoft.
com/en-us/vbasic/ms789075.
aspxTheCodeProject.
www.
codeproject.
com/Developer.
com.
www.
developer.
com/net/vb/FreeBook-IntroducingMicrosoftVisualBasic2005forDevelopers.
http://msdn2.
microsoft.
com/en-us/vbrun/ms788235.
aspxAPPENDIXARESOURCES418VisualBasic2008ExpressEdition.
http://msdn2.
microsoft.
com/en-us/express/future/bb421469.
aspxVB.
NetHeaven.
www.
vbdotnetheaven.
com/VisualBasicDeveloperCenter.
http://msdn2.
microsoft.
com/en-us/vbasic/default.
aspxConsumingUnmanagedDLLFunctions.
http://msdn2.
microsoft.
com/en-us/library/26thfadc(vs.
90).
aspxACloserLookatPlatformInvoke.
http://msdn2.
microsoft.
com/en-us/library/0h9e9t7d(vs.
90).
aspxCodeAccessSecurity:WhenRole-BasedSecurityIsn'tEnough.
http://www.
devx.
com/security/Article/31259/0/page/1HowtoCreateanIndexerPropertyinVisualBasic.
NETorinVisualBasic2005.
http://support.
microsoft.
com/kb/311323HowtoDemandPermissionsbyUsingCodeAccessSecurity.
http://support.
microsoft.
com/kb/315529CodeAccessSecurity.
http://msdn2.
microsoft.
com/en-us/library/930b76w0(VS.
90).
aspxCodeAccessPermissions.
http://msdn2.
microsoft.
com/en-us/library/h846e9b3(vs.
90).
aspxUnicodeFrequentlyAskedQuestions.
http://unicode.
org/faq/utf_bom.
htmlWikipedia,"RegularExpression,"http://en.
wikipedia.
org/wiki/Regular_expression,2007.
RegularExpressionTutorial.
http://www.
regular-expressions.
info/tutorial.
htmlArrayCovarianceRules.
http://msdn2.
microsoft.
com/en-us/library/aa664572(VS.
71).
aspxTheLINQProject.
http://msdn2.
microsoft.
com/en-us/netframework/aa904594.
aspxHookedonLINQ.
http://www.
hookedonlinq.
com/MainPage.
ashxBethMassi,"SharingtheGoodnessthatisVB:QuicklyImportandExportExcelDatawithLINQtoXML,"http://blogs.
msdn.
com/bethmassi/archive/2007/10/30/quickly-import-and-export-excel-data-with-linq-to-xml.
aspxDouglasReichard,"ShimClasses,"http://www.
ddj.
com/cpp/184401200pgno=5DeploymentofManagedCOMAdd-InsinOfficeXP.
http://msdn2.
microsoft.
com/en-us/library/aa164016(office.
10).
aspxAPPENDIXARESOURCES419RunningtheExamplesThisappendixdescribesthevarioustypesofcodeexamplesthroughoutthebookandhowtorunthem.
Itismeanttoaidyouifyou'renewtotheVB2008environment.
ExampleTypesThisbookcontainsthreetypesofcodeexamples:codesnippets;classes,structures,andinter-facesandconsoleapplications.
CodeSnippetsAcodesnippetisashortcodesampleusedtodisplaythesyntaxofanentiremethodorsinglefunctioncall.
Thesesamplesarenotmeanttobecompiledorexecuted.
Classes,Structures,andInterfacesTheseexamplescontainclass,structure,andinterfacedefinitions.
YoubuildthesebyusingtheClassLibraryprojecttype.
Chapter6containsseveralexamplesthatfallintothiscategory.
ConsoleApplicationsTheseexamples,builtusingtheConsoleApplicationprojecttype,arethemostprevalenttypeofcodeexampleinthebook.
Bydefault,VBcreatesaModule1.
vbfilewiththefollowingstub:ModuleModule1SubMain()EndSubEndModuleWerecommendthatyoureplacetheentireModulestubwiththeexampletext,whichcon-tainsaPublicEntryPointclassandaSharedMainmethod.
Next,inyourproject'sPropertiespage,ontheApplicationtab,setthe"Startupobject:"to"SubMain.
"Forexamplesthatrequirecommand-linearguments,youcanenterthese,separatedbyspaces,inyourproject'sPropertiespage,ontheDebugtab,inthe"Commandlinearguments"inputarea.
Finally,thefewsamplesthatdiscussglobalizationrequireamessageboxtodisplaytheresults.
Youshouldbuildandruntheseexamplesthesamewayasotherconsoleapplications,butyouneedtoaddarefer-encetoSystem.
Windows.
Formsinyourproject'sPropertiespage,ontheReferencestab.
421APPENDIXBRunningaConsoleApplicationviatheDebugStartWithoutDebuggingmenu,ortheCtrl+F5shortcut,willlaunchtheapplication,displayingeachoutputasneeded,thenpausewitha"Pressanykeytocontinue.
.
.
"messagewhenexecutioniscomplete.
Foramorethoroughunderstandingofanexample,placeabreakpointonthefirstexe-cutablelineinsideSharedSubMain(),and"StepInto"or"StepOver"eachlineofcodewhilereviewingthecallstack,anyvariables,andconsoleoutput.
AFewWordsRegardingModulesIfyou'reanexperiencedobject-orienteddeveloper,theconceptofamodulemayseemforeign.
TheModuleconstruct,whichcannotbeinstantiated,isafeaturecarriedoverfromVisualBasic6.
0(VB6)tofacilitatemigrationofthoseapplicationsto.
NET.
AModule,whencompiled,isconvertedtoaNotInheritableclasswithSharedmembers.
TheseSharedmembersareavailabletoyourentireapplication,actinglikeaglobalvariable.
Thismaynotbewhatyoudesire.
Classes,ontheotherhand,arenotautomaticallyShared.
WeconsidercreatinganEntryPointclass,containingaSharedSubMainmethod,tobethemuchbetterpracticeforcreatingobject-orientedsystemswithVB.
APPENDIXBRUNNINGTHEEXAMPLES422AA(OfT),241Abort(),277-279abortingthreads,277accessmodifiers,36-38accessors,78AcquireReaderLock(),302AcquireWriterLock(),302Activatorclass,270Add()method,74,244,246Add(OfInteger),246Add(OfT)method,246AddHandlerstatement,232-233addition(+)operatorcompositestrings,184overloading,121-122AddressOfoperator,220aliases,assigningtonamespaces,28allocatedresources,exceptions,158-161AllocateDataSlot(),283,285AllocateNamedDataSlotmethod,283anonymoustypes,9,375-376APIsLINQtoObjects,8LINQtoXML,7AppDomain.
IsFinalizingForUnload,340AppDomain.
UnhandledException,136AppDomainUnloadException,136Append()method,184AppendFormat()method,184applicationdomainsfindingwithLINQ,385-386sharedfieldsand,81ApplicationException,157ApplyRaiseOfmethod,224,226ArgumentException,205ArgumentOutOfRangeexception,135-136exception-neutralcodeand,145sharedconstructorsand,141ArgumentOutOfRangeException,184arrayinitializers,7Array.
GetLength(),201ArrayList,boxing,239arrays,197-200covariance,199,238declaring,197-198jaggedarrays,202-203multidimensional,200-201generics,238multidimensional,200-203declaring,200-201jagged,202-203mappingtomathematicalconcepts,202ParamArray,73-74rangechecking,198ranks,199multidimensionalarrays,202RankException,200searchability,200sortability,200synchronization,200typeconvertibility,198-199Askeyword,254assemblies,88-91cross-languagecompatibility,95culture-neutral,93-94globalassemblycache(GAC),92-94headerinformation,88-89loading(probing),94-95managedassemblies,91managementof,91-92metadata,95private,92shared,92-94versioning,95viewingmanifests,89-90,92viewingmetadata,90-91assemblylanguage,IL(intermediatelanguage),86-87asynchronousexceptions,148,150asynchronousmethodcalls,311-315asynchronousprocessing,IOUpattern,310,312AutoResetEvent,306-307Bbackgroundthreads,280-281IsBackgroundproperty,315BaseClassLibrary(BCL),3baseclassversionofmethods,calling,76BeginInvoke(),311-315BeginInvoke()/EndInvoke()pattern,315BeginMethod()/EndMethod()pattern,310BeginProcessData()/EndProcessData()pattern,310423Indexbestpractices.
Seereference-typebestpractices;value-typebestpracticesbinaryoperators,overloading,117-118BinarySearch(),200Booleanoperators,overloading,126-129boxing,22-23,52-57efficiencyof,56-57generics,239instancesof,55-56synchronizingthreads,295-296valuetypes,368Bridgepattern,230browsingnamespaceswithObjectBrowser,28ByRefarguments,71-73ByValarguments,71CC#.
NETruntime,1-2C#3.
0versusVB2008,2-3callbacksdelegates.
Seedelegatesevents.
SeeeventsCallDelegatesmethod,247callingbaseclassversionofmethods,76canonicalformsreference-typebestpractices,317checklist,361-362cloneableobjects,320-322,324-326defaultingtoNotInheritableclasses,317-318disposableobjects,334-336finalizers,337-341,343-344formattableobjects,326-331immutablereferencetypes,358,360NVIpattern,using,318-320objectequality,344-350orderingobjects,331-332,334overridingGetHashCode(),350-353typesafety,353-354,356-357value-typebestpractices,362-372checklist,371-372implementingtype-safeforms,368,371overridingEquals(),363,365,367carriagereturn/linefeed(CRLF),linetermination,29castingreferencetypes,DirectCastandTryCast,22Catchblocks,134-138CERs(constrainedexecutionregions),148-150,154chainingdelegates,220-222iteratingthroughdelegatechains,222-224chainingoperationsonstringbuilder,184ChangeType(),330checklistsreferencetypes,361-362value-types,371-372classconstraints,254classdefinition,35-36accessibility/accessmodifiers,37-38constructors,36interfaces,38-39itempropertyindexers,46,48MustInheritclasses,42-43MyBaseandMyClasskeywords,39-42nestedclasses,43,45-46NotInheritableclasses,42partialclasses,48Classkeyword,17,35ClassLibraryprojecttype,421classesActivator,270Array,238BaseClassLibrary(BCL),3bestpractices.
Seereference-typebestpracticesComparer(OfT),266Convert,20,329-330Coordinate,20-21creatingcustomexceptionclasses,155-158CultureAndRegionInfoBuilder,171-172definitions.
SeeclassdefinitionDimensions,325EntryPoint,422EventArgs,231EventHandler(OfT),231generic,241-242generic.
Seegenerics,237GraphCoordinate,20-21implementingcontracts,107-109vs.
interfaces,110-113implementingmultipleinterfaces,101-102inheritance,39-42MustInheritclasses,42-43NotInheritableclasses,42Interlocked,148methodsof,285synchronization,286-290Iterator,45LINQtoSQLdatabase/fieldmapping,408-411Monitor,285versusMutex,291Monitor,synchronizingthreads,291-295boxing,295-296Pulse()andWait(),296-300MulticastDelegate,217-218MustInherit,42-43INDEX424Mutex,285lockobjects,305-306transitiontokernelmode,286versusMonitor,291nested,43,45-46non-nested,43,45NotInheritable,42defaultingto,317-318overridingmethodsinderivedclasses,75-77partial,48PlayerUI,232-233PlayEventArgs,231QueueProcessor,274ReaderWriterLock,301-303ReaderWriterLockSlim,303-305Regex,186RuntimeHelpers,148SafeHandlederivedclasses,150-154sealed,NotInheritablemethods,77SpinLock,290StringBuilder,184-185StringComparer,180System.
Attribute,95System.
Char,167System.
Delegate,220System.
Exceptionconstructors,155,157-158exceptionhandling,135innerexceptions,138,141System.
Monitor,200System.
Object,12System.
Reflection,95System.
String,167System.
Text.
Encoding,168,181-183System.
Thread,273Threading.
Interlocked,286ThreadPool.
SeethreadpoolWaitHandle,306-309WaitOne(),306-307cleaningupdirectlyheldresources,337CLI(CommonLanguageInfrastructure),85,167Clone()method,167.
SeealsoICloneablecustomattributes,324-325cloneableobjects,reference-typebestpractices,320-326Close()method,159-160closedtypes,240-241codesnippets,421consoleapplications,421-422CLR(commonlanguageruntime),1-2,85assemblies,88-91cross-languagecompatibility,95globalassemblycache(GAC),92-94loading(probing),94-95managedassemblies,91managementof,91-92private,92shared,92-94versioning,95viewingmanifests,89-92viewingmetadata,90-91callbackmechanism.
SeedelegatesCommonLanguageInfrastructure(CLI)standard,85,167commontypesystem,3-5entry-pointmethods,91-92exceptionhandling,133.
Seealsoexceptionhandlingcriticalfinalizers,150finalizers,140-141lackofdeterministicdestruction,158SafeHandle,150-151,153-154exception-neutralcodeasynchronousexceptions,148,150CERs(constrainedexecutionregions),148-150operations,147garbagecollection,3IL(intermediatelanguage)JITcompiling,87-88VBcompilerand,85-87impactonVBlanguage,3internalstringrepresentationformat,183managedcode,1metadata,95performingoptimizationsatruntime,87-88JITcompiling,87-88CLS(CommonLanguageSpecification),14codeassemblies.
Seeassembliesexception-neutralcode,143exception-safecoding,133managedcode,1writingexception-neutralconstrainedexecutionregions(CERs),148-150criticalfinalizersandSafeHandle,150-154rollbackbehavior,162-165structureof,143-148Collection(OfT),208-209,242collections,203-211definingcollectiontypes,208-211dictionaries,208generic,255-257ICollection,203-205lists,206-207synchronization,205-206System.
Collection.
ObjectModel,208-211typesthatproducecollections,206colon(:),multiplestatements,29INDEX425Combine()method,220,222,233Commit()method,162,164CommonLanguageInfrastructure(CLI)standard,85,167commonlanguageruntime.
SeeCLR(commonlanguageruntime)CommonLanguageSpecification(CLS),14commontypesystem(CTS),3-5CompareExchange(),288,290Comparer(OfT)class,266CompareTo(),331-332,368,371comparingstrings,180-181comparisonoperators,overloading,122,125-129compiler,methodoverloadingand,74CompilerServicesnamespace,148complexnumbers,referencesto,347compositestrings,184Console.
WriteLine(),174-175,177Constfields,82constants,enumerations,16-17constrainedexecutionregions(CERs),148-150,154constraintsclass,254generics,251,253-255IConvertible,266New,254primary,254structure,254constructedtypes,generics,240accessibility,251creatingdynamically,268-270constructedtypes.
Seeclosedtypesconstructors,36,49-50CorePlayer,232instance,61-62Shared,60-61,141-142System.
Exceptionclass,155-158Containeridentifier,241containertypes,genericdelegates,245Container(OfT),241Containsqueries(LINQtoObjects),384Continue,33contracts,97,107,253classes,107-109classesvs.
interfaces,110-113interfaces,109-110controlflowconstructsIf.
.
.
Then.
.
.
Else,29-30Select.
.
.
Case,30controllingexecutionflow,exceptionhandling,134conversionoperators,overloading,117-119,129-130CType,130-131conversions,boxingand,55Convertclass,20,329ChangeType(),330ConvertAll(OfTOutput)()method,249Converter(OfT,OfR)delegate,244Converter(TInput,TOutput)delegate,245convertibleobjects,bestpractices,329-331convertingfloating-pointvaluestostrings,171convertingtypes,19-20boxingconversions,22-23Convertclass,20CType,20-21DirectCastandTryCast,22explicitconversion,19-20generics,248-249,257-268referencetypeoperators,23-25wideningconversions,13,19Coordinateclass,20-21Copy()method,167copyingobjects,cloneableobjectsbestpractices,320-326CopyTo(),205CorePlayerconstructor,232Countqueries(LINQtoObjects),381-382covariance,arrays,199CreateClosedType(OfT)()method,269CreateInstance(),270criticalfinalizers,148,150-154CriticalFinalizerObject,150CRLF(carriagereturn/linefeed),linetermination,29cross-languagecompatibilityofassemblies,95CRUD(Create,Read,Update,andDelete),LINQtoSQLCreate,411-412Delete,414-415Read,413Update,413-414CTS(commontypesystem),3-5CType,20-21overloading,117-119,130-131culture-neutralassemblies,93-94CultureAndRegionInfoBuilder,171-172CultureInfo,169-172,327comparingstrings,180-181customCultureInfotypes,171-172formatstrings,173-174CurrencyDecimalDigitsproperty,174CurrencyDecimalSeparatorproperty,174CurrencySymbolproperty,174customevents,232-233customexceptionclasses,creating,155-158customformatter(ICustomFormatter),177,180customtypes,stringformatting,175-177INDEX426Ddatacontext(LINQtoSQL),411datatypes.
Seetypesdatabases,LINQtoSQL.
SeeLINQtoSQLDateTimeFormatInfo,170,174DBG,173,177declarativemapping,100declaring.
Seealsodefiningarrays,197-198jaggedarrays,202-203multidimensional,200-201delegates,218-220generictypes,237-238,240-241interfaces,98-100,102-103properties,78-80stringliterals,168-169Decrement(),Interlockedclass,286deepcopies,320-321defaultconstructors,36defaultfieldvalues,84deferredevaluation,LINQqueries,386-387definingclasses.
Seeclassdefinitionscollectiontypes,208-211contracts,107generics,237-238interfaces,98-100,102-103namespaces,26-27valuetypes.
SeevaluetypedefinitionsDelegatekeyword,218Delegate.
Combine()method,233Delegate.
Remove()method,233delegates,217chaining,220-222creating,218-220events.
Seeeventsgeneric,244-248iteratingthroughdelegatechains,222-224open-instance,224-227relaxed,233-235removingfromdelegatelists,220Strategypattern,228-229deletingtablerecords(LINQtoSQL),414-415deployingprivateassemblies,92sharedassemblies,94derivedclassesEventArgs,231overridingmethodsin,75-77designchecklistsforvaluetypes,372designpatternsNon-VirtualInterface(NVI),109Singleton,109,242destroyingobjectsexceptionhandling,63finalizers,62-63destructor,337deterministicdestruction,158-161deterministicfinalization,65dictionaries,208Dimensionsclass,325DirectCast,22directlyheldresources,cleaningup,337disassembler(ILDASM),85-86,88boxingand,56-57viewingassemblyheaderinformation,88-89assemblymanifests,89-90,92assemblymetadata,90-91disposableobjects,63-67bestpractices,334-336IDisposableinterface,63-65Usingkeyword,65-67Disposablepattern,336Dispose()method,63,65,158,160,162,164,215.
SeealsoIDisposablefinalizationand,340Usingkeyword,65,67Distinctqueries(LINQ),374LINQtoXML,401DLLsassemblies.
SeeassembliesDLLHell,95DoUntil,32-33DoWhile,32-33DoSomeWorkmethod,229DowngradeFromWriterLock(),302Eearlybinding,3EcmaInternational,85efficiency,generics,238-240embeddedexpressions,LINQtoXML,389Employee.
ApplyRaiseOfmethod,224encapsulation.
Seepropertiesenclosingtype,119encoding,stringsand,181-183EncodingGetByteCount()method,183EndInvoke(),311-315EndProcessData(),274Enter()Monitorclass,291-296SpinLockclass,290EntryPointclass,422entry-pointmethods,91-92enumerations,16-17enumerators,creating,211-215Environment.
HasShutdownStarted,340equality,344identityequality,344-347overridingGetHashCode(),350-353overridingObject.
Equals(),347-350equalityoperators,350INDEX427Equals(),344,350-353identityequality,344-347Objectkeyword,58overriding,347-350,363-367overridingObject.
Equals(),347-350Eventkeyword,231EventArgsderivedclass,231EventHandler(OfT)class,231events,229-232custom,232-233end,229,235raising,232relaxeddelegates,233-235synchronizingthreads,306-307EventWaitHandle,transitiontokernelmode,286Excelspreadsheets,creatingwithLINQ,403-405ExceptionAssistant,142NullReferenceExceptionwasunhandleddialog,141TypeInitializationExceptionwasunhandleddialog,142exceptionhandling,133-134destroyingobjects,63exceptionnamingconventionsand,155Expertpattern,133flowcontroland,134innerexceptions,138-142throwingexceptions,136exceptionsthrowninfinalizers,140-141exceptionsthrowninFinallyblocks,139-140exceptionsthrowninsharedconstructors,141-142rethrowing,137-139Throwstatements,136Trystatement,134-136translatingexceptions,137-139unhandledexceptionsin.
NET3.
5,136exception-neutralcode,143constrainedexecutionregions(CERs),148-150criticalfinalizersandSafeHandle,150-154rollbackbehavior,162-165structureof,143-148Exception.
InnerExceptionproperty,138-141exceptionsallocatedresources,158-161ArgumentOutOfRange,135-136asynchronous,148,150customexceptionclasses,creating,155-158exception-neutralcode.
Seeexception-neutralcodehandling.
SeeexceptionhandlingInvalidCastException,239-240InvalidOperationException,200,204KeyNotFoundException,208NotSupportedException,211NullReferenceException,136ObjectDisposedException,335RankException,200rollbackbehavior,162-165SynchronizationLockExceptionexceptions,296system-generatedexceptions,136ThreadAbortException,277-279ThreadInterruptedException,279unhandledexceptionsin.
NET3.
5,136Exchange(),288,290EXEfiles.
SeeassembliesExitFor,32Exit(),291-296Expertpattern,133explicitaliases,assigningtonamespaces,28explicittypeconversion,19-20extensionmethods,9,376-377Contains,384creating,377Min,Max,andCount,381-382Ffields,80-84Const,82defaultvalue,84initialization,82-84instancefields,80readonly,79-82shared,80-81Finalize(),3destroyingobjects,62-63Objectkeyword,58finalizers,51,62-63,337bestpractices,337-344critical,148-154exceptionsthrownin,140-141versusdestructors,337Finallyblocksexceptionhandling,135-136,159-161exceptionsthrowninFinallyblocks,139-140rethrowingexceptions,137Tryblocks,134rollbackbehavior,164-165ThreadAbortException,277findingdocumentswithLINQ,385-386Finishedstate,threads,275floating-pointvalues,convertingtostrings,171flowcontrolexceptionhandlingand,134If.
.
.
Then.
.
.
Else,29-30Select.
.
.
Case,30For.
.
.
Next,32INDEX428ForEach.
.
.
Next,31-32ForEachstatement,211-215arrayiteration,198collections,206jaggedarrays,203multidimensionalarrays,201multidimensionaljaggedarrays,202-203typesafetyand,354-357Forloops,arrayiteration,201-202foregroundthreads,280-281formatproviders,170-171formatspecifiers,strings,169comparingstrings,180-181Console.
WriteLine(),174-175CultureInfo,169-172customtypes,175,177formatstrings,173-174ICustomFormatter,177,180IFormattable,169-171Object.
ToString(),169-171String.
Format(),174-175formattableobjects,bestpractices,326-329formattingstrings.
Seeformatspecifiers,stringsFriend,37FriendtoStructure,37Fromqueries(LINQ),374LINQtoXML,399-400Fromqueries(LINQtoObjects),379fully(strongly)namedassemblies,91Functype(LINQ),378functionpointers.
SeedelegatesfunctionsCType,20-21explicittypeconversion,19-20inline(LINQ),378-379PrintCoordinates,20-21GGAC(globalassemblycache),92-94gacutil.
exe,94garbagecollector(GC),3,17,62finalizerperformanceimpacton,340-341referencetypes,17-18GC.
SeegarbagecollectorGC.
SuppressFinalize(),340GenerateNumbers(),211genericcomparer,256generics,237-238closedtypes,240-241constraints,251-255efficiency,238-240interfacesusinggenericinterfaces,105-106usinggenericmethodsininterfaces,106-107NonGenericmethod,240opentypes,240-241operators,257-259,261-268overloadedtypes,241,244systemcollections,255-257typedeclaration,237-238openandclosedtypes,240-241typedefinitionsandconstructedtypes,240accessibility,251classesandstructures,241-242creatingconstructedtypesdynamically,268-270delegates,244-248interfaces,242methods,243-245nullabletypes,249-250typeconversion,248-249,257-268typeparameters,237typeplaceholdernamingconventions,240typesafety,238-240genredata(LINQtoXML),389-392addingelementstodocuments,390-391creatingdocuments,389-390savingdocuments,392Getaccessors,78Get(),multidimensionalarrays,202GetEnumerator(),212,215GetFormat(),177,327-329GetHashCode(),273Objectkeyword,58overriding,350-353GetInvocationListmethod,222,224GetLength(),202GetLowerBound(),202GetMinThreads(),310GetNamedDataSlot(),285GetString()method,183GetTypemethod,Objectkeyword,57GetUpperBound(),202globalassemblycache(GAC),92-94globalization,strings,169comparingstrings,180-181Console.
WriteLine(),174-175CultureInfo,169-172formatstrings,173-174ICustomFormatter,177,180IFormattable,169-171Object.
ToString(),169-171stringformattingincustomtypes,175-177String.
Format(),174-175GraphCoordinateclass,20-21groupingandsearchingstrings,187-191Hhaltingthreads,279-280Handleproperty,309handlingexceptions.
Seeexceptionhandlingheaderinformationinassemblies,88-89INDEX429HelloWorld!
program,5hidinginterfacemembers,102-103IIAsyncResultinterface,313ICloneable,58,167referencetypes,320-321valuetypes,362ICollectionsynchronizationarrays,200collections,205versusICollection(OfT),203-205ICollection(OfT),208IComparable,122,125-126,256arrays,200CompareTo(),331-332,368,371System.
Int32and,105IComparer,180,256,266IConvertible,266System.
Int32and,105ToType(),330identityequality,344-347IDictionary(OfTKey,TValue)interface,208IDisposable,63-65,158,162,215,334destructorcodeand,337Disposablepatternand,336implementing,335valuetypes,362WaitHandletype,309IEnumerablecollectiontypes,203iteration,211-215System.
Array,198IEnumerable(OfT),242definingcollectiontypes,209-210iteration,211-215collectiontypes,203IEnumeratoriteration,211-215typesafetyand,354,356IEnumerator(OfT)definingcollectiontypes,209-210iteration,211-215IEquatable(OfT),350,365If.
.
.
Then.
.
.
Else,29-30IFormatProvider,170-171GetFormat(),177replacementstringsand,175IFormattable,169-171,175,177,327System.
Int32and,105ToStringmethod,175ToString(),328IL(intermediatelanguage),1-2asassemblylanguage,86-87JITcompiling,87-88VBcompilerand,85-87ILDisassembler(ILDASM),85-86,88boxingand,56-57viewingassemblyheaderinformation,88-89assemblymanifests,89-90,92assemblymetadata,90-91IListinterface,200,206-207IList(OfT)interface,206-207,239immediateevaluation,LINQqueries,388-389immutablereferencetypes,358-360implementingcontractsclasses,107-109classesvs.
interfaces,110-113interfaces,109-110ICloneableinterface,321IDisposableinterface,335interfacesinstructures,103-105multipleinterfaces,101-102referencetypes,97-98valuetypes,105Implements,39,100IMPLEMENTSrelationships,modeling,113implicitlytypedlocalvariables,6Importsstatement,27Increment(),286Index(),200indexers,46-48IndexOf()method,185IndexOutOfRangeException,198inheritance,39-42interfaces,101MustInheritclasses,42-43NotInheritableclasses,42overriddenmethods,77initializationoffields,82-84initializerexpressions,61inlinefunctions(LINQ),8,378-379innerexceptions,138-142Insert()method,184instanceconstructors,36,61-62instancefields,80instancemethods,70-71IntelliSense,9interfaces,38-39,51,97ClassLibraryprojecttypeand,421componentsof,100contracts,253DateTimeFormatInfo,170,174defining,98-100hidingmembers,102-103generic,242usinggenericinterfaces,105-106usinggenericmethodsininterfaces,106-107IAsyncResult,313INDEX430ICloneable,58,167,362referencetypes,320-321ICollectionsynchronization,200,205versusICollection(OfT),203-205IComparable,122,125-126,256arrays,200CompareTo(),331-332,368,371System.
Int32and,105IComparer,256,266IConvertibleSystem.
Int32and,105ToType(),330ICustomFormatter,177,180IDictionary(OfTKey,TValue),208IDisposable,63-65,158,162,215,334destructorcodeand,337Disposablepatternand,336implementing,335valuetypes,362IEnumerablecollectiontypes,203iteration,211-215System.
Array,198IEnumerable(OfT),242collectiontypes,203definingcollectiontypes,209-210iteration,211-215IEnumeratoriteration,211-215typesafetyand,354-356IEnumerator(OfT)definingcollectiontypes,209-210iteration,211-215IEquatable(OfT),350,365IFormatProvider,170-171GetFormat(),177replacementstringsand,175IFormattable,175,177,327System.
Int32and,105ToStringmethod,175,328IList,200,206-207IList(OfT),206-207,239implementingcontracts,109-113multipleinterfaces,101-102referencetypes,97-98Strategypattern,228instructures,103-105valuetypes,105inheritance,101IShape,253methodsand,100NumberFormatInfo,170-171,174polymorphism,114-115type-safeformsofinterfacemembers,368,371Interlockedclass,148methodsof,285synchronization,286-290intermediatelanguage(IL),1-2asassemblylanguage,86-87JITcompiling,87-88VBcompilerand,85-87internpool,168Interrupt(),275,279IntToLongConvertermethod,244,246InvalidCastException,239-240,330InvalidOperationException,200,204invocationlists,217GetInvocationListmethod,222,224removingdelegates,220Invokemethod,311IOException,159IOUpattern,310,312IsoperatorIsNotand,25TypeOfkeywordand,23-24is-arelationships,modeling,113IsBackgroundproperty,315IShapeinterface,253IsInvalidproperty,154IsNotoperator,25ISomeInterface,238-239IsReadOnlyproperty,204iteration,211-215Continue,33DoWhileandDoUntil,32-33For.
.
.
Next,32ForEach.
.
.
Next,31-32ForEachstatement,211-215modifyingorpassingiteratorvariablestomethods,31multidimensionalarrays,201-202multidimensionaljaggedarrays,202-203throughdelegatechains,222-224Iteratorclass,45Jjaggedarrays(multidimensional),202-203JIT(just-in-time)compiler,1-2,87-88Join(),275,280LINQ,375,402-403Kkernelkernelmodeobjects,306transitionstokernelmode,avoidingviaThreading.
Interlockedclass,286KeyNotFoundException,208keywordsAs,254ByRef,72Class,17,35INDEX431Const,82Delegate,218DirectCast,22Event,231Implements,39Me,50-51instancemethodsand,71lockingobjects,294-295unboxing,57MustInherit,42-43MyBase,39-40MyClass,40-42Narrowing,131New,58-59,245NotInheritable,42Object,12,57-58Of,237ParamArray,73Partial,48Structure,15,35SyncLock,200,205-206,293,296TryCast,22TypeOf,21,23-24Using,65,67,336exceptionhandlingand,161-162value,233Widening,131LLambdaexpressions,8,378-379Count,382Language-IntegratedQuery.
SeeLINQLastIndexOf()method,185,200LastIndexOfAny()method,185latebinding,2-3LDML(LocaleDataMarkupLanguage)file,171Letqueries(LINQtoObjects),383linetermination,29LINQ(Language-IntegratedQuery),373-379extensionmethods,376-377Contains,384creating,377Min,Max,andCount,381-382Lambdaexpressions,378-379Count,382querycomprehensions,373-374syntax,374-375typeinference,375-376LINQtoObjects,8,379-389findingdocuments,385-386queries,379-385Contains,384From,379Let,383Min,Max,andCount,381-382OrderBy,380-381subqueries,384-385Where,380queryevaluation,386-389LINQtoSQL,405-416Create,Read,Update,andDelete(CRUD)Create,411-412Delete,414-415Read,413Update,413-414creatingdatabases/tables,406-408datacontext,411databaseoperations,411-416addingdatatotables,411-412deletingtablerecords,414-415readingtables,413reviewinggeneratedSQL,415-416updatingtablerecords,413-414mappingtablestomapping/entityclassesGenreclass,408-409Musicianclass,410-411LINQtoXML,7,389-405creatingExcelspreadsheets,403-405genredata,389-392addingelementstodocuments,390-391creatingdocuments,389-390savingdocuments,392musiciandata,393addingelementstodocuments,394-395addingelementstospecificlocations,395-397creatingdocuments,393savingdocuments,398-399queries,399-403Distinct,401From,399-400Join,402-403Select,400-401Where,401-402List(OfT),242lists,206-207ListSwap()method,147-148,150loadingassemblies(probing),94-95LocaleDataMarkupLanguage(LDML)file,171locks.
Seealsosynchronizingthreadslockingobjects,300-306Mutex,305-306ReaderWriterLock,301-303ReaderWriterLockSlim,303-305Mekeyword,294-295spinlocks,288-290SpinLockManager,290,293SynchronizationLockExceptionexceptions,296SyncLockkeyword,293,296INDEX432loopingContinue,33DoWhileandDoUntil,32-33For.
.
.
Next,32ForEach.
.
.
Next,31-32MMain()method,5,71,244-245MakeGenericType(),269-270managedapplications,85managedassemblies,91managedcode,1managedthreads,271,275-277manifests,assemblies,89-90,92ManualResetEvent,306-307mappingmultidimensionalarraystomathematicalconcepts,202Match()method,187,194MatchEvaluatordelegate,192-193Maxqueries(LINQtoObjects),381-382Me,50-51instancemethodsand,71lockingobjects,294-295unboxing,57Me.
New(),36-37MemberwiseClone(),321Objectkeyword,57metadata,95assemblies,90-91reflection,95methodoverloading,74methods,69.
SeealsospecificmethodsAdd,parameterarrays,74baseclassversionof,calling,76Clone,324-325Console.
WriteLine(),177Dispose(),63-65Usingkeyword,65-67EncodingGetByteCount(),183extensionmethods,9,376-377Contains,384creating,377Min,Max,andCount,381-382fieldinitialization,84Finalize(),62-63generic,243-245usingininterfaces,106-107GetString(),183instance,70-71interfacesand,100Main,71MustOverride,74-77naming,98NonGeneric,240Objectkeyword,57-58overloading,74Overridable,74-77cautionswhenusing,77NotInheritableclasses,317NotInheritablemodifier,77OverridesandShadowsmodifiers,75-77parameters,71-74ByRefarguments,71-73ByValarguments,71ParamArraykeyword,73-74PassByRef,72-73PassByValue,72PublicSharedOperator,118shared,69-70SomeFunction,70SomeOperation,71String.
Compare(),180String.
Intern(),169StringComparer.
Create(),181ToString(),169-170type-safeformsofderivemethods,368,371versusindexers,46MicrosoftIntermediateLanguage(MSIL)Assembler,2Minqueries(LINQtoObjects),381-382mirroroverloads,120modifyingiteratorvariables,31Moduleconstruct,422Module1.
vbfile,421modules,95,422Monitorclass,285synchronizingthreads,291-295boxing,295-296Pulse()andWait(),296-300versusMutex,291Wait(),275MoveNext(),215MulticastDelegateclass,217-218multidimensionalarrays,200-203declaring,200-201jagged,202-203mappingtomathematicalconcepts,202multithreading.
Seethreadingmusiciandata(LINQtoXML),393addingelementstodocuments,394-395addingelementstospecificlocations,395-397creatingdocuments,393savingdocuments,398-399MustInheritclasses,42-43MustOverridemethod,74-77mutatingoperands,119Mutexclass,285lockobjects,305-306transitiontokernelmode,286versusMonitor,291INDEX433Mynamespace,5My.
Application.
UnhandledException,136MyBaseidentifier,76MyBasekeyword,39-40MyBase.
New(),36-37MyClasskeyword,40-42MyCollection(OfInteger),238MyCollection(OfLong),238MyCollection(OfT),237MyContainer(OfInteger),244MyContainer(OfT),244Nnamespaces,25-28CompilerServices,148defining,26-27My,5ObjectBrowser,28System,13-14System.
Activator,270System.
Collection.
ObjectModel,208-211System.
Collections,239,255System.
Globalization,171System.
Object,57-58System.
Threading,148System.
Type,269using,27-28namingassemblies,91cultures,171forexceptions,155generictypeplaceholders,240methods,98narrowingconversions,13,128-131nestedclasses,43-46.
NET3.
5,unhandledexceptions,136.
NETFramework,threading,271-272.
NETruntime,1-2.
SeealsoCLR(commonlanguageruntime)Newconstraint,254Newconstructor,17newfeaturesinVB2008,5-10anonymoustypes,9arrayinitializers,7extensionmethods,9implicitlytypedlocalvariables,6IntelliSense,9lambdaexpressions(inlinefunctions),8LINQtoObjects,8LINQtoXML,7nullabletypesenhancement,9objectinitializers,6OptionInfer,10querycomprehensions,6relaxeddelegatesenhancement,10New,58-59,245non-nestedclasses,43-45Non-VirtualInterface(NVI)pattern,109,318-320Collection(OfT),208nondeterministicdestruction,65NonGenericmethod,240Nothing,defaultfieldvalues,84NotInheritableclasses,42defaultingto,317-318NotInheritablemethods,77NotOverridablemodifier,77NotSupportedException,211nullabletypes,249-250enhancementinVB2008,9generics,249-250NullReferenceException,136,232NumberFormatInfo,170-171,174NVI(Non-VirtualInterface)pattern,109,318-320Collection(OfT),208OObject,12,57-58ObjectBrowser,28objectinitializers,6Object.
Equals(),344,350-353identityequality,344-347overriding,347-350overridingObject.
Equals(),347-350Object.
ToString(),169-171formatstrings,173ObjectDisposedException,335objects.
Seealsoreferencetypesboxingobjects,52cloning,reference-typebestpractices,320-326.
SeealsoICloneableconvertible,329-331creating,58-62instanceconstructors,61-62Newkeyword,58-59Sharedconstructor,60-61CultureInfo,327destroying,62-63disposable,63-67bestpractices,334-336IDisposableinterface,63-65Usingkeyword,65-67equality,344identityequality,344-347overridingGetHashCode(),350-353overridingObject.
Equals(),347-350fields.
SeefieldsFinalizedestructor,3finalizers,337-344formattable,reference-typebestpractices,326-329kernelmodeobjects,306LINQtoObjects,8INDEX434locking,300-306Mutex,305-306ReaderWriterLock,301-303ReaderWriterLockSlim,303-305locking.
Seelockingobjectsordering,bestpractices,331-334properties.
SeepropertiesSystem.
Objectnamespace,57-58System.
Thread,272thread-hot,338Timer,315-316versusvalues,18Win32synchronization,307-309Ofkeyword,237OnOPENBRACKETeventCLOSEBRACKETmethod,232OnPlay()method,232opentypes,240-241open-instancedelegates,224-227operands,mutating,119operations,creatingexception-neutralcode,147operatoroverloading,117addition(+)operator,121-122comparisonoperators,122,125-126Boolean,126-129conversionoperators,129-130CType,130-131CTypeconversionoperator,130-131disadvantages,117mirroroverloads,120mutatingoperands,119operatorsthatcanbeoverloaded,117-118parameterorder,120typesandformatsofoverloadedoperators,118-119unary,binary,andconversionoperators,117-118operatorsAddressOf,220equality,350generictypes,257-268overloading.
Seeoperatoroverloadingreferencetypes,23-25OptionExplicit,12-13OptionInfer,10OptionStrict,13OptionStrictOff,126-128OrderByLINQ,375LINQtoObjects,380-381orderofexecutioninmultithreadedprograms,283orderingobjects,331-334OutOfMemoryException,148CERs(constrainedexecutionregions),150overloadedinstanceconstructors,36overloadedtypes,241,244overloadingmethods,74overloadingoperators.
SeeoperatoroverloadingOverloadsmodifier,102-103Overridablemethod,74-77,317cautionswhenusing,77NotInheritablemodifier,77OverridesandShadowsmodifiers,75-77Overridesmodifier,75-77overridingEquals(),363-367GetHashCode(),350-353Object.
Equals(),347-350PP/Invokelayer,307-308ParamArray,73-74parameterorder,overloadedoperators,120parametersofmethods,71-74ByRefarguments,71-73ByValarguments,71ParamArray,73-74partialclasses,48Partialkeyword,48partiallynamedassemblies,91PassByRefmethod,72-73PassByValuemethod,72passingvariablesbyreference(ByRef),71-73variablenumbersofparameters(ParamArray),73-74patternsBeginInvoke()/EndInvoke(),315BeginProcessData()/EndProcessData(),310Collection(OfT),208Disposable,336IOU,310,312Non-VirtualInterface(NVI),208orderingobjectsbestpractices,331-334placeholdersinstrings,175PlayerUIclass,232-233PlayEventidentifier,231PlayEventArgsclass,231pointers,344polymorphism,interfaces,114-115PrepareConstrainedRegions()method,148primaryconstraints,254PrintCoordinatesfunction,20-21Private,37privateassemblies,92probing,94-95ProcessResultstype,219properties,77-80accessors,78declaring,78-80indexers,46,48INDEX435read-only,write-only,andread-write,79-80valuevariable,78Protected,37-38ProtectedFriend,37-38ProtectedOverridablemethod,232Public,37-38Publicaccessmodifier,36PublicSharedOperatormethods,118-119.
Seealsooperatoroverloadingpublish-subscribedesignpattern,233publish-subscribeusagepattern,230Pulse(),296-300QqueriesLINQtoObjects,379-385Contains,384From,379Let,383Min,Max,andCount,381-382OrderBy,380-381queryevaluation,386-389subqueries,384-385Where,380LINQtoSQL,Create,Read,Update,andDelete(CRUD),411-415LINQtoXML,399-403Distinct,401From,399-400Join,402-403Select,400-401Where,401-402querycomprehensions,6,373-374queryexpressions,6queryoperators,6Queue.
Clear(),204QueueProcessorclass,274QueueUserWorkItem(),310RRidentifier,242RaiseEventstatement,233raisingevents,232RankException,200read-onlyfields,81-82read-onlyproperties,79-80read-writeproperties,79-80ReaderWriterLock,301-303ReaderWriterLockSlim,303,305ReadOnlyCollection(OfT),211realarraysversusindexers,48referencetypes,4-5,17-18arrays.
Seearraysinterfaces,97-98Newkeyword,59operators,23-25versusvaluetypes,18reference-typebestpractices,317checklist,361-362cloneableobjects,320-326defaultingtoNotInheritableclasses,317-318disposableobjects,334-336finalizers,337-344formattableobjects,326-331immutablereferencetypes,358-360NVIpattern,using,318-320objectequality,344identityequality,344-347overridingObject.
Equals(),347-350orderingobjects,331-334overridingGetHashCode(),350-353typesafety,353-357reflection,95Regexclass,186Regex.
Replacemethod,191-194RegexOptionstype,194-195RegionInfo,171Register()method,172registeringcustomCultureInfotypes,171-172regularexpressionssearchingstrings,185groupingand,187-191Regexclass,186-187Regex.
Replacemethod,191-194RegexOptionstype,194-195substitutions,193relaxeddelegatesenhancementinVB2008,10events,233-235ReleaseHandle()method,154ReleaseMutex(),305ReleaseReaderLock(),302ReliabilityContractAttribute(ListSwap()method),150Remove()method,221-222,233RemoveAll()method,221-222RemoveHandlerstatement,232-233Replace()method,187,194replacingtextforsearchingstrings,191-194Reset(),215ResetAbort(),277,279resourcesallocated,exceptions,158-161directlyheld,cleaningup,337unmanaged,341VBarticles,418books,417-418websites,418-419Resume(),280,286rethrowingexceptions,137-139RndThreadFuncmethod,287INDEX436rollbackbehavior,162-165Rollback()method,162rudethreadaborts,277runningconsoleapplications,422Runningstate,threads,275runtimecommonlanguageruntime.
SeeCLR(commonlanguageruntime).
NETruntime,1-2RuntimeHelpersclass,148Ssafepoints,280SafeHandle,150-154SafeHandle-derivedtypes,309safety,typesreference-types,353-357value-types,368,371savingLINQtoXMLdocuments,392,398-399sealingclasses,NotInheritablemethods,77searchingarrays,200searchingstringswithregularexpressions,185groupingand,187-191Regexclass,186-187Regex.
Replacemethod,191-194RegexOptionstype,194-195Select(LINQ),374Select.
.
.
Case,30Selectqueries,LINQtoXML,400-401semantics,operatoroverloadingand,117Semaphore,transitiontokernelmode,286SerializableAttribute,155Setaccessors,78Set(),multidimensionalarrays,202SetMinThreads(),310Shadowsmodifier,75-77shallowcopies,320-321sharedassemblies,92-94Sharedconstructor,60-61sharedconstructors,exceptionsthrownin,141-142sharedfields,80-81sharedmethods,69-70sharingassembliesacrossmultiplelanguages,95Shutdownmethod,300shuttingdownthreads,300rudethreadaborts,277Singletonpattern,109,242Sleep(),275,279,286,288SomeFunctionmethod,70SomeOperationmethod,71sortingarrays,200objects,331-334SortStrategydelegatesignature,229spinlocks,288-290SpinLockManager,290,293SQL.
SeeLINQtoSQLStack.
Clear(),204StackOverflowException,148startingthreads,272-274StartsWith()method,185state,threads,275-277statements,29StaticComputemethod,222Strategypatterndelegatesand,228-229generics,249StreamWriter,290stringliterals,declaring,168-169String.
Clone()implementation,324String.
Compare()method,180String.
Format(),174-177String.
Intern()method,169StringBuilderclass,184-185StringBuilder.
AppendFormat(),177StringComparerclass,180StringComparer.
Create()method,181StringComparisonenumeration,180strings,167-168comparing,180-181composite,184convertingfloating-pointvaluesto,171DateTimeFormatInfo,170,174DBG,173,177formatspecifiersandglobalization,169comparingstrings,180-181Console.
WriteLine(),174-175CultureInfo,169-172customtypes,175-177formatstrings,173-174ICustomFormatter,177,180IFormattable,169-171Object.
ToString(),169-171String.
Format(),174-175ICustomFormatter,177,180IFormatProvider,170-171NumberFormatInfo,171NumberFormatInfointerface,170,174fromoutsidesources,workingwith,181-183placeholders,175searchingwithregularexpressions,185groupingand,187-191Regexclass,186-187Regex.
Replacemethod,191-194RegexOptionstype,194-195ToString()method,169-170strongtyping,11-13strongly(fully)namedassemblies,91structureconstraints,254Structurekeyword,15,35INDEX437structuresClassLibraryprojecttypeand,421generic,241-242implementinginterfaces,103-105SubmitWorkItem(),300subqueries(LINQtoObjects),384-385Suspend(),277,280,286Suspendedstate,threads,277SuspendRequestedstate,threads,277syncevents,306synchronizationarrays,200collections,205-206Synchronized(),206synchronizingthreads,285-286events,306-307Interlockedclass,286-290kernelmodeobjects,306lockingobjects,300-306Mutex,305-306ReaderWriterLock,301-303ReaderWriterLockSlim,303-305Monitorclass,291-295boxing,295-296Pulse()andWait(),296-300transitionstokernelmode,286Win32synchronizationobjectsandWaitHandleclass,307-309SyncLockkeyword,200,205-206,293,296syntaxclassdefinition.
SeeclassdefinitioncontrolflowconstructsIf.
.
.
Then.
.
.
Else,29-30Select.
.
.
Case,30enumerations,16-17iterationandloopingContinue,33DoWhileandDoUntil,32-33For.
.
.
Next,32ForEach.
.
.
Next,31-32namespaces,25-28defining,26-27ObjectBrowser,28using,27-28referencetypes,18statements,29types,11converting,19-25referencetypes,17-18strongtyping,11-13typecategories,13-14valuetypes,14-17valuetypedefinition.
Seevaluetypedefinitionsysglobl.
dllassembly,172System,built-intypes,13-14system-generatedexceptions,136System.
Activator,270System.
Array,197,202System.
Attribute,95System.
Char,167System.
Collections,239,255System.
Collections.
ObjectModel,208-211System.
Delegate,220System.
Exceptionconstructors,155-158exceptionhandling,135innerexceptions,138,141System.
Globalization,171System.
Int32valuetype,105System.
Int32.
MaxValue,184System.
Monitor,200System.
Object,12,57-58,197System.
Reflection,95System.
String,167ICloneable.
Clonemethod,324System.
Text.
Encoding,168,181-183System.
Thread,272-273System.
Threading,148System.
Type,269System.
TypeInitializationException,141-142TTidentifier,241tables,LINQtoSQL.
SeeLINQtoSQLterminatingthreads,277-279TestForEquality(),345-346threadpool,306-310asynchronousmethodcalls,311-315IOUpattern,310-312timers,315-316thread-hotobjects,338thread-localstorage,281-285Thread.
Abort(),277-279Thread.
AllocateDataSlot(),283Thread.
AllocateNamedDataSlotmethod,283Thread.
Interrupt(),275,279Thread.
Join(),275,280Thread.
Priorityproperty,274Thread.
ResetAbort(),277,279Thread.
Resume(),280,286Thread.
Sleep(),275,279,286,288Thread.
Suspend(),277,280,286ThreadAbortException,136,148,277-279ThreadFuncmethod,273threading,271managedthreads,271.
NETFramework,271-272orderofexecutioninmultithreadedprograms,283primarythreads,271workerthreads,271Threading.
Interlockedclass,286ThreadInterruptedException,275,279INDEX438ThreadPoolclass.
Seethreadpoolthreadsbackground,280-281,315foreground,280-281haltingandwaking,279-280rudethreadaborts,277safepoints,280shuttingdown,300starting,272-274states,275-277synchronizing,285-286events,306-307Interlockedclass,286-290kernelmodeobjects,306lockingobjects,300-306Monitorclass,291,293-300transitionstokernelmode,286Win32synchronizationobjectsandWaitHandleclass,307-309terminating,277-279ThreadPoolclass.
Seethreadpoolwaitingforthreadstoexit,280ThreadStartdelegate,272-273ThreadStateenumeration,275ThreadStaticAttributeattribute,281Throwstatements,136exception-neutralcodeand,143rethrowingexceptions,137-139throwingexceptions,136throwingexceptions,136exceptionsthrowninFinallyblocks,139-140rethrowing,137-139Throwstatements,136timers,315-316TInputplaceholderidentifier,245TLSClass,282TLSFieldClass,282ToString(),169-170,326-329Objectkeyword,58String.
Format(),175ToType(),330TOutputplaceholderidentifier,245transitionstokernelmode,avoidingviaThreading.
Interlockedclass,286translatingexceptions,137-139Trystatementsexceptionhandling,134-136,159-161exception-neutralcodeand,143-146Try/Finallyblocksdisposableobjects,65iteration,215Usingstatements,67TryCast,22typearguments,105-106typeconversion,248-249,257-268typeinference(LINQ),375-376typeparameters,105-106,237typesafetyreference-types,353-357value-types,368,371TypeConverter,331TypeInitializationException,141-142,155TypeOf,21,23-24types,11anonymoustypes,9arrays.
Seearrayscategories,13-14closed,240-241collections.
Seecollectionscommontypesystem(CTS),3constructed,generics,240,251,268-270converting,19-20boxingconversions,22-23Convertclass,20CType,20-21DirectCastandTryCast,22explicitconversion,19-20referencetypeoperators,23-25wideningconversions,13,19customCultureInfotypes,171-172customtypes,stringformatting,175,177enclosingtype,119Func(LINQ),378genericaccessibilityoftypes,251classesandstructures,241-242collections,255-257constraints,251-255creatingconstructedtypesdynamically,268-270declaring,237-240delegates,244-248interfaces,242methods,243-245nullabletypes,249-250typeconversion,248-249,257-268typedefinitionsandconstructedtypes,240typeplaceholdernamingconventions,240typesafety,238-240ISomeInterface,238-239nullable,249-250enhancementinVB2008,9open,240-241overloaded,241,244ProcessResults,219referencetypes,1-5,17-18Newkeyword,59versusvaluetypes,18reference-typebestpractices,317checklist,361-362cloneableobjects,320-322,324-326INDEX439convertibleobjects,329-331defaultingtoNotInheritableclasses,317-318disposableobjects,334-336finalizers,337-344formattableobjects,326-329immutablereferencetypes,358-360NVIpattern,using,318-320objectequality,344-350orderingobjects,331-334overridingGetHashCode(),350-353typesafety,353-357SafeHandle-derivedtypes,309strongtyping,11-13valuetypes,1-5,14-16enumerations,16-17Newkeyword,58versusreferencetypes,18value-typebestpractices,362-372checklist,371-372implementingtype-safeforms,368,371overridingEquals(),363,365,367Uunaryoperators,overloading,117-118unboxing,52-57efficiencyof,56-57generics,239undeclaredvariables,12unhandledexceptionsin.
NET3.
5,136UnhandledExceptionEventArgs,136Unicodecharacterarrays,181-183UnicodeUTF-16characterarrays,181unmanagedresources,341unsafecodeinC#3.
0,2Unstartedstate,threads,275untypedvariables,12updatingtablerecords(LINQtoSQL),413-414UpgradeToWriterLock(),302user-definedvaluetypes,15Usingkeyword,65,67,336exceptionhandling,161-162utilitiesgacutil.
exe,94ILDisassembler.
SeeILDisassembler(ILDASM)Vvaluekeyword,233valuetypedefinitions,48-51constructors,49-50definitions.
Seevaluetypedefinitionsfinalizers,51interfaces,51Me,50-51valuetypes,4-5,14-16boxing/unboxing,52-57designchecklist,372enumerations,16-17implementinginterfaces,105Newkeyword,58versusreferencetypes,18valuevariable,78value-typebestpractices,362-372checklist,371-372implementingtype-safeforms,368,371overridingEquals(),363-367valuesconvertingfloating-pointvaluestostrings,171versusobjects,18variables.
Seealsotypesimplicitlytypedlocalvariables,6iteratorvariables,31OptionExplicit,12-13OptionStrict,13passingbyreference(ByRef),71-73variablenumbersofparameters(ParamArray),73-74reference,equalitybetween,344-345strongtyping,11-13undeclared,12untyped,12VB2008CLRgarbagecollection,3commontypesystem,3-5HelloWorld!
program,5newfeatures,5-10anonymoustypes,9arrayinitializers,7extensionmethods,9implicitlytypedlocalvariables,6IntelliSense,9lambdaexpressions(inlinefunctions),8LINQtoObjects,8LINQtoXML,7nullabletypesenhancement,9objectinitializers,6OptionInfer,10querycomprehensions,6relaxeddelegatesenhancement,10versusC#3.
0,2-3VB6,3VB2008.
NETruntime,1-2VBcompiler,85-87versioningassemblies,95INDEX440WWaitAll(),307WaitAny(),307WaitHandleclass,306-309waiting(threads),280,306.
SeealsoMonitorclassavoidingraceconditions,285EventWaitHandle,286Monitor.
Wait(),275,296-298,300reentrantwaitmechanisms,290Thread.
Join(),275,277,280transitiontokernelmode,286WaitHandleclass,306-309waitingforexit,280WaitSleepJoinstate,275-277WaitOne(),305-306WaitSleepJoinstate,threads,275wakingthreads,279-280Where(LINQ),375WherequeriesLINQtoObjects,380LINQtoXML,401-402wideningconversions,13,19,129-131Win32functions,153Win32Synchronizationobjects,307-309Win32Heapexamplemodified,341,343withfinalizer,338-340write-onlyproperties,79-80WriteLine(),174-175writingexception-neutralcode,143constrainedexecutionregions(CERs),148-150criticalfinalizersandSafeHandle,150-154rollbackbehavior,162-165structureof,143-148writingexception-safecode,133XXCopydeployment,92XMLaxisproperties,390LINQtoXML.
SeeLINQtoXMLINDEX441

触碰云高性价20.8元/月,香港云服务器,美国cn2/香港cn2线路,4核4G15M仅115.2元/月起

触碰云怎么样?触碰云是一家成立于2019年的商家。触碰云主营香港/美国 VPS服务器、独立服务器以及免备案CDN。采用的是kvm虚拟构架,硬盘Raid10,Cn2线路,去程电信CN2、移动联通直连,回程三网CN2。最低1核1G带宽1M仅20.8元/月,不过这里推荐香港4核4G15M,香港cn2 gia线路云服务器,仅115.2元/月起,性价比还是不错的。点击进入:触碰云官方网站地址触碰云优惠码:优...

Tudcloud(月付7.2美元),香港VPS,可选大带宽或不限流量

Tudcloud是一家新开的主机商,提供VPS和独立服务器租用,数据中心在中国香港(VPS和独立服务器)和美国洛杉矶(独立服务器),商家VPS基于KVM架构,开设在香港机房,可以选择限制流量大带宽或者限制带宽不限流量套餐。目前提供8折优惠码,优惠后最低每月7.2美元起。虽然主机商网站为英文界面,但是支付方式仅支付宝和Stripe,可能是国人商家。下面列出部分VPS主机套餐配置信息。CPU:1cor...

Megalayer(159元 )年付CN2优化带宽VPS

Megalayer 商家我们还算是比较熟悉的,商家主要业务方向是CN2优化带宽、国际BGP和全向带宽的独立服务器和站群服务器,且后来也有增加云服务器(VPS主机)业务。这次中秋节促销活动期间,有发布促销活动,这次活动力度认为还是比较大的,有提供香港、美国、菲律宾的年付VPS主机,CN2优化方案线路的低至年付159元。这次活动截止到10月30日,如果我们有需要的话可以选择。第一、特价限量年付VPS主...

queueuserworkitem为你推荐
万维读者网用QQ邮箱向《读者》投稿具体格式刷网站权重提升百度权重的几个方法暴风影音怎么截图暴风影音怎么截屏啊?伪静态什么是伪静态网站?伪静态网站有什么优势1433端口如何打开1433端口今日热点怎么删除如何彻底删除今日热点iphone越狱后怎么恢复已经越狱的iphone怎么恢复到原来的系统如何建立自己的网站怎么创建自己的网站直播加速有没有软件使已经下载好了的视频播放加速,例如30分钟的视频15分钟或者20分钟播放完xv播放器下载迅雷看看下载的XV格式的电影用什么播放器可以播放?(没有互联网的情况下)
传奇服务器租用 cdn服务器 12306抢票攻略 搜狗抢票助手 美国十次啦服务器 炎黄盛世 韩国名字大全 asp免费空间申请 qq对话框 百度云1t 美国堪萨斯 如何建立邮箱 最漂亮的qq空间 空间购买 免费asp空间 永久免费空间 杭州电信宽带 phpinfo 建站技术 更多