C#技术内幕:英文本

C#技术内幕:英文本
作 者: Tom Archer
出版社: 北京大学出版社
丛编项: 微软最权威的Inside系列
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: C#
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

暂缺《C#技术内幕:英文本》作者简介

内容简介

本书是一本极具技术深度的编程书,通过学习本书,读者将全面了解C#语言的内在体系结构。书中深入介绍了最新的面向对象编程语言及其设计参数和结构,从而使读者彻底理解其运作方式及原理。同时,本书充分揭示了C#语言的功能,以便于读者为Microsoft.NET编写应用程序。本书由微软专家编写,介绍了当前最新的面向对象语言,集权威性和技术性为一体,是程序开发员的一本极有价值的参考书。

图书目录

Foreword

Introduction

PartILayingthe8roundwork

1FundamentalsofObject-OrientedProgramming

EverythingIsanObject

Objectsvs.Classes

Instantiation

TheThreeTenetsofObject-OrientedProgrammingLanguages

Encapsulation

Inheritance

Polymorphism

2IntroducingMicrosoft.NET

TheMicrosoft.NETPlatform

The.NETFramework

WindowsDNAand.NET

TheCommonLanguageRuntime

The.NETFrameworkGlassLibraries

MicrosoftintermediateLanguageandtheJITters

UnifiedTypeSystem

MetadataandReflection

Security

Deployment

InteroperabilitywithUnmanagedCode

3Hello,C#

WritingYourFirstC#Application

ChoosinganEditor

"Hello,World"

UsingtheCommand-LineCompiler

RunningtheApplication

TableofContents

GodeWalk-Through

One-StopProgramming

ClassesandMembers

TheMainMethod

TheSystem.Console.WriteLineMethod

NamespacesandtheusingDirective

SkeletonCode

SomethingWentWrong!

Compile-TimeErrors

SpelunkingwithILDASM

"Hello,World"inMSIL

CtProgrammingGuidelines

WhentoDefineYourOwnNamespaces

NamingGuidelines

NamingConventionStandards

PanUC#ClassFundamentals

4TheTypeSystem

EverythingIsanObject

ValueTypesandReferenceTypes

ValueTypes

ReferenceTypes

BoxingandUnboxing

TheRootofAllTypes:System.Object

TypesandAliases

CastingBetweenTypes

Namespaces

TheusingKeyword

CTSBenefits

LanguageInteroperability

SinglyRootedObjectHierarchy

TypeSafety

5Classes

DefiningClasses

ClassMembers

AccessModifiers

TheMainMethod

Command-LineArguments

ReturnValues

MultipleMainMethods

Constructors

StaticMembersandInstanceMembers

ConstructorInitializers

Constantsvs.Read-OnlyFields

Constants

Read-OnlyFields

ObjectCleanupandResourceManagement

ABitofHistory

DeterministicFinalization

Performance

ThePerfectSolution

The(Almost)PerfectSolution

TheDisposeDesignPattern

Inheritance

MultipleInterfaces

SealedClasses

6Methods

refandoutMethodParameters

MethodOverloading

VariableMethodParameters

VirtualMethods

MethodOverriding

Polymorphism

StaticMethods

AccesstoClassMembers

TableofContents

7Properties,Arrays,andIndexers

PropertiesasSmartFields

DefiningandUsingProperties

WhattheCompilerIsReallyDoing

Read-OnlyProperties

InheritingProperties

AdvancedUseofProperties

Arrays

DeclaringArrays

Single-DimensionalArrayExample

MultidimensionalArrays

QueryingforRank

JaggedArrays

TreatingObjectsLikeArraysbyUsingIndexers

DefiningIndexers

IndexerExample

DesignGuidelines

8Attributes

IntroducingAttributes

DefiningAttributes

QueryingAboutAttributes

ClassAttributes

MethodAttributes

FieldAttributes

AttributeParameters

PositionalParametersandNamedParameters

CommonMistakeswithNamedParameters

ValidAttributeParameterTypes

TheAttributeUsageAttribute

DefininganAttributeTarget

Single-UseandMultiuseAttributes

SpecifyingInheritanceAttributeRules

AttributeIdentifiers

9Interfaces

InterfaceUse

DeclaringInterfaces

ImplementingInterfaces

QueryingforImplementationbyUsingis

QueryingforImplementationbyUsingas

ExplicitInterfaceMemberNameQualification

NameHidingwithInterfaces

AvoidingNameAmbiguity

InterfacesandInheritance

CombiningInterfaces

PartIIIWritingCode

10ExpressionsandOperators

OperatorsDefined

OperatorPrecedence

HowG#DeterminesPrecedence

LeftandRightAssociativity

PracticalUsage

C#Operators

PrimaryExpressionOperators

MathematicalOperators

RelationalOperators

SimpleAssignmentOperators

11ProgramFlowControl

SelectionStatements

TheifStatement

TheswitchStatement

IterationStatements

ThewhileStatement

Thedo/whileStatement

TheforStatement

TheforeachStatement

BranchingwithJumpStatements

ThebreakStatement

ThecontinueStatement

TheInfamousgotoStatement

ThereturnStatement

12ErrorHandlingwithExceptions

OverviewofExceptionHandling

BasicException-HandlingSyntax

ThrowinganException

CatchinganException

RethrowinganException

CleaningUpwithfinally

ComparingError-HandlingTechniques

TheBenefitsofExceptionHandlingOverReturnCodes

HandlingErrorsintheCorrectContext

ImprovingCodeReadability

ThrowingExceptionsFromConstructors

UsingtheSystem.ExceptionClass

ConstructinganExceptionObject

UsingtheStackTraceProperty

CatchingMultipleExceptionTypes

DerivingYourOwnExceptionClasses

DesigningYourCodewithExceptionHandling

DesignIssueswiththetryBlock

DesignIssueswiththecatchBlock

13OperatorOverloadingandUser-DefinedConversions

OperatorOverloading

SyntaxandExample

OverloadableOperators

RestrictionsonOperatorOverloading

DesignGuidelines

User-DefinedConversions

SyntaxandExample

14DelegatesandEventHand1ers

UsingDelegatesasCallbackMethods

DefiningDelegatesasStaticMembers

CreatingDelegatesOnlyWhenNeeded

DelegateComposition

DefiningEventswithDelegates

PartIVAdvancedC#

15Ilultithrea4edProgramming

ThreadingBasics

ThreadsandMultitasking

ContextSwitching

AMultithreadedApplicationinC#

WorkingwithThreads

AppDomain

TheThreadGlass

SchedulingThreads

ThreadSafetyandSynchronization

ProtectingCodebyUsingtheMonitorClass

UsingMonitorLockswiththeC#lockStatement

SynchronizingCodebyUsingtheMutexClass

ThreadSafetyandthe.NETClasses

ThreadingGuidelines

WhentoUseThreads

WhenNottoUseThreads

16QueryingMetadatawithReflection

TheReflectionAPIHierarchy

TheTypeClass

RetrievingtheTypeofanInstance

RetrievingtheTypesfromaName

interrogatingTypes

WorkingwithAssembliesandModules

IteratingThroughtheTypesofanAssembly

ListinganAssembly'sModules

LateBindingwithReflection

CreatingandExecutingCodeatRunTime

17InteroperatingwithUnmanagedCode

PlatformInvocationServices

DeclaringtheExportedDLLFunction

UsingCallbackFunctionswithC#

MarshallingandPlnvoke

WritingUnsafeCode

UsingPointersinC#

ThefixedStatement

COMInteroperability

ABraveNewWorld

GettingStarted

GeneratingMetadatafromaCOMtypelib

EarlyBindingtoCOMComponents

UsingDynamicTypeDiscoverytoSelectCOMInterfaces

LateBindingtoCOMComponents

COMThreadingModels

18WorkingwithAssemblies

AssemblyOverview

ManifestData

BenefitsofAssemblies

AssemblyPackaging

AssemblyDeployment

AssemblyVersioning

BuildingAssemblies

CreatingAssembliesthatHaveMultipleModules

CreatingSharedAssemblies

WorkingwiththeGlobalAssemblyCache

ViewingtheCache

VersioningAssemblies

QFEsandtheDefaultVersionPolicy

CreatingaSafeModeconfigurationFile

Index