Chapter1Introductionto.NETandC#
1.1Introduction
1.2HistoryoftheIntemetandWorldWideWeb
1.3WorldWideWebConsortium(W3C)
1.4ExtensibleMarkupLanguage(XML)
1.5KeySoftwareTrend:ObjectTechnology
1.6IntroductiontoMicrosoft.NET
1.7C#
1.8.NETFrameworkandtheCommonLanguageRuntime
1.9TouroftheBook
1.10Summary
1.11InternetandWorldWideWebResources
Chapter2IntroductiontotheVisualStudio.NETIDEandC#Programming
2.1Introduction
2.2VisualStudio.NETIntegratedDevelopmentEnvironment(IDE)Overview
2.3MenuBarandToolbar
2.4VisualStudio.NETWindows
2.5UsingHelp
2.6SimpleProgram:DisplayingTextandanImage
2.7SimpleProgram:PrintingaLineofText
2.8Arithmetic
2.9DecisionMaking:EqualityandRelationalOperators
2.10Summary
Chapter3ControlStructures
3.1Introduction
3.2ControlStructures
3.3ifSelectionStructure
3.4if/elseSelectionStructure
3.5whileRepetitionStructure
3.6AssigmnentOperators
3.7IncrementandDecrementOperators
3.8forRepetitionStructure
3.9Example:UsingtheforStructuretoComputeCompoundInterest
3.10switchMultiple-SelectionStructure
3.11do/whileRepetitionStructure
3.12Statementsbreakandcontinue
3.13LogicalandConditionalOperators
3.14IntroductiontoWindowsApplicationProgramming
3.15Summary
Chapter4MethodsandArrays
4.1Introduction
4.2MethodsinC#
4.3MethodDefinitions
4.4ArgumentPromotion
4.5C#Namespaces
4.6ValueTypesandReferenceTypes
4.7PassingArguments:Pass-by-Valuevs.Pass-by-ReferenCe
4.8ScopeRules
4.9Recursion
4.10MethodOverloading
4.11Arrays
4.12DeclaringandAllocatingArrays
4.13PassingArraystoMethods
4.14PassingArraysbyValueandbyReference
4.15Multiple-SubscriptedArrays
4.16foreachRepetitionStructure
4.17Summary
Chapter5Object-BasedProgramming
5.1Introduction
5.2ImplementingaTimeAbstractDataTypewithaClass
5.3ClassScope
5.4ControllingAccesstoMembers
5.5InitializingClassObjects:Constructors
5.6UsingOverloadedConstructors
5.7Properties
5.8Composition:ObjectsReferencesasInstanceVariablesofOtherClasses
5.9UsingthethisReference
5.10GarbageCollection
5.11staticClassMembers
5.12constandreadonlyMembers
5.13Indexers
5.14DataAbstractionandInformationHiding
5.15SoftwareReusability
5.16NamespacesandAssemblies
5.17ClassViewandObjectBrowser
5.18Summary
Chapter6Object-OrientedProgramming:Inheritance
6.1Introduction
6.2BaseClassesandDerivedClasses
6.3protectedandinternalMembers
6.4RelationshipbetweenBaseClassesandDerivedClasses
6.5CaseStudy:Three-LevelInheritanceHierarchy
6.6ConstructorsandDestructorsinDerivedClasses
6.7SoftwareEngineeringwithInheritance
6.8Summary
Chapter7Object-OrientedProgramming:Polymorphism
7.1Introduction
7.2Derived-Class-ObjecttoBase-Class-ObjectConversion
7.3TypeFieldsandswitchStatements
7.4PolymorphismExamples
7.5AbstractClassesandMethods
7.6Example:InheritingInterfaceandImplementation
7.7sealedClassesandMethods
7.8Example:PayrollSystemUsingPolymorphism
7.9Example:CreatingandUsingInterfaces
7.10Delegates
7.11OperatorOverloading
7.12Summary
Chapter8ExceptionHandling
8.1Introduction
8.2ExceptionHandlingOverview
8.3Example:DivideByZeroException
8.4.NETExceptionHierarchy
8.5finallyBlock
8.6ExceptionProperties
8.7Programmer-Del'reedExceptionClasses
8.8HandlingOverflowswithOperatorscheckedandunchecked
8.9Summary
Chapter9GraphicalUserInterfaceConcepts:Part1
9.1Introduction
9.2WindowsForms
9.3Event-HandlingModel
9.4ControlPropertiesandLayout
9.5Labels,TextBoxesandButtons
9.6GroupBoxesandPanels
9.7CheckBoxesandRadioButtons
9.8PictureBoxes
9.9MouseEventHandling
9.10KeyboardEventHandling
9.11Summary
Chapter10GraphicalUserInterfaceConcepts:Part2
10.1Introduction
10.2Menus
10.3LinkLabels
10.4ListBoxesandCheckedListBoxes
10.5ComboBoxes
10.6TreeViews
10.7ListViews
10.8TabControl
10.9Multiple-Document-Interface(MDI)Windows
10.10VisualInheritance
10.11User-DefinedControls
10.12Summary
Chapter11Multithreading
11.1Introduction
11.2ThreadStates:LifeCycleofaThread
11.3ThreadPrioritiesandThreadScheduling
11.4ThreadSynchronizationandClassMonitor
11.5Producer/ConsumerRelationshipwithoutThreadSynchronization
11.6Producer/ConsumerRelationshipwithThreadSynchronization
11.7Producer/ConsumerRelationship:CircularBuffer
11.8Summary
Chapter12Strings,CharactersandRegularExpressions
12.1Introduction
12.2FundamentalsofCharactersandStrings
12.3StringConstructors
12.4StringIndexer,LengthPropertyandCopyTo
12.5ComparingStrings
12.6StringMethodGetHashCode
12.7LocatingCharactersandSubstringsinStrings
12.8ExtractingSubstringsfromStrings
12.9ConcatenatingStrings
12.10MiscellaneousStringMethods
12.11ClassStringBuilder
12.12StringBuilderIndexer,LengthandCapacityProperties,andEnsureCapacityMethod
12.13StringBuilderAppendandAppendFormatMethods
12.14StringBuilderInsert,RemoveandReplaceMethods
12.15CharMethods
12.16CardShufflingandDealingSimulation
12.17RegularExpressionsandClassRegex
12.18Summary
Chapter13GraphicsandMultimedia
13.1Introduction
13.2GraphicsContextsandGraphicsObjects
13.3ColorControl
13.4FontControl
13.5DrawingLines,RectanglesandOvals
13.6DrawingArcs
13.7DrawingPolygonsandPolylines
13.8AdvancedGraphicsCapabilities.
13.9IntroductiontoMultimedia
13.10Loading,DisplayingandScalingImages
13.11AnimatingaSeriesofImages
13.12WindowsMediaPlayer
13.13MicrosoftAgent
13.14Summary
Chapter14FilesandStreams
14.1Introduction
14.2DataHierarchy
14.3FilesandStreams
14.4ClassesFileandDirectory
14.5CreatingaSequential-AccessFile
14.6ReadingDatafromaSequential-AccessFile
14.7Random-AccessFiles
14.8CreatingaRandom-AccessFile
14.9WritingDataRandomlytoaRandom-AccessFile
14.10ReadingDataSequentiallyfromaRandom-AccessFile
14.11CaseStudy:ATransaction-ProcessingProgram
14.12Summary
Chapter15ExtensibleMarkupLanguage(XML)
15.1Introduction
15.2XMLDocuments
15.3XMLNamespaces
15.4DocumentObjectModel(DOM)
15.5DocumentTypeDefinitions(DTDs),SchemasandValidation
15.6ExtensibleStylesheetLanguageandXslTransform
15.7MicrosoftBizTalkTM
15.8Summary
15.9IntemetandWorldWideWebResources
Chapter16Database,SQLandADO.NET
16.1Introduction
16.2RelationalDatabaseModel
16.3RelationalDatabaseOverview:BooksDatabase
16.4StructuredQueryLanguage(SQL)
16.5ADO.NETObjectModel
16.6ProgrammingwithADO.NET:ExtractingInformationfromaDatabase
16.7ProgrammingwithADO.NET:ModifyingaDatabase
16.8ReadingandWritingXMLFiles
16.9Summary
Chapter17ASP.NET,WebFormsandWebControls
17.1Introduction
17.2SimpleHTtPTransaction
17.3SystemArchitecture
17.4CreatingandRunningaSimpleWebFormExample
17.5WebControls
17.6SessionTracking
17.7CaseStudy:OnlineGuestBook
17.8CaseStudy:ConnectingtoaDatabaseinASP.NET
17.9Tracing
17.10Summary
17.11IntemetandWebResources
Chapter18ASP.NETandWebServices
18.1Introduction
18.2WebServices
18.3SimpleObjectAccessProtocol(SOAP)andWebServices
18.4PublishingandConsumingWebServices
18.5SessionTrackinginWebServices
18.6UsingWebFormsandWebServices
18.7CaseStudy:TemperatureInformationApplication
18.8User-DefinedTypesinWebServices
18.9Summary
Chapter19Networking:Streams-BasedSocketsandDatagrams
19.1Introduction
19.2EstablishingaSimpleServer(UsingStreamSockets)
19.3EstablishingaSimpleClient(UsingStreamSockets)
19.4Client/ServerInteractionwithStream-SocketConnections
19.5ConnectionlessClient/ServerInteractionwithDatagrams
19.6Client/ServerTic-Tac-ToeUsingaMnltithreadedServer
19.7Summary
Chapter20DataStructuresandCollections
20.1Introduction
20.2Self-ReferentialClasses
20.3LinkedLists
20.4Stacks
20.5Queues
20.6Trees
20.7CollectionClasses
20.8Summary
Chapter21Accessibility
21.1Introduction
21.2RegulationsandResources
21.3WebAccessibilityInitiative
21.4ProvidingAlternativesforImages
21.5MaximizingReadabilitybyFocusingonStructure
21.6AccessibilityinVisualStudio.NET
21.7AccessibilityinC#
21.8AccessibilityinXHTMLTables
21.9AccessibilityinXHTMLFrames
21.10AccessibilityinXML
21.11UsingVoiceSynthesisandRecognitionwithVoiceXMLTM
21.12CallXMLTM
21.13JAWSforWindows
21.14OtherAccessibilityTools
21.15AccessibilityinMicrosoftWindows2000
21.16Summary
21.17InternetandWebResources
Chapter22MobileInternetToolkit
22.1Introduction
22.2MobileIntemetToolkitClientDevices
22.3IntroductiontotheMobileIntemetToolkitandMobileWebForms
22.4AdvancedMobileWebFormsControls
22.5Example:DeitelWirelessPortal
22.6Device-IndependentWebDesignUsingStyleSheetsandTemplates
22.7ConsumingaWebServicefromaMobileApplication
22.8Summary
22.9InternetandWorldWideWebResources
AppendixAOperatorPrecedenceChart
AppendixBNumberSystems
AppendixCCareerOpportunities
AppendixDVisualStudio.NETDebugger
AppendixEGeneratingDocumentationinVisualStudio.NET
AppendixFASCIICharacterSet
AppendixGUnicode
AppendixHCOMIntegration
AppendixIIntroductiontoHyperTextMarkupLanguage4:Part1
AppendixJIntroductiontoHyperTextMarkupLanguage4:Part2
AppendixKIntroductiontoXHTML:Part1
AppendixLIntroductiontoXHTML:Part2
AppendixMHTML/XHTMLSpecialCharacters
AppendixNHTML/XHTMLColors
AppendixOBitManipulation
AppendixPCrystalReportsforVisualStudio.NET
Bibliography