您好,欢迎访问三七文档
C#ProgrammingfortheBeginnerWelcometoC#andtheworldofWindows,InternetandWorld-Wide-WebprogrammingwithVisualStudioandthe.NETplatform!Thisbookisthesecondinournew.NETHowtoProgramseries,whichpresentsvariousleading-edgecomputingtechnologiesinthecon-textofthe.NETplatform.C#isthenextphaseintheevolutionofCandC++andwasdevelopedexpresslyforMicrosoft’s.NETplatform.C#providesthefeaturesthataremostimportanttoprogram-mers,suchasobject-orientedprogramming,strings,graphics,graphical-user-interface(GUI)components,exceptionhandling,multithreading,multimedia(audio,images,ani-mationandvideo),fileprocessing,prepackageddatastructures,databaseprocessing,InternetandWorld-Wide-Web-basedclient/servernetworkinganddistributedcomputing.ThelanguageisappropriateforimplementingInternet-andWorld-Wide-Web-basedappli-cationsthatseamlesslyintegratewithPC-basedapplications.The.NETplatformofferspowerfulcapabilitiesforsoftwaredevelopmentanddeploy-ment,includingindependencefromaspecificlanguageorplatform.Ratherthanrequiringdeveloperstolearnanewprogramminglanguage,programmerscancontributetothesamesoftwareproject,butwritecodeusingany(orseveral)ofthe.NETlanguages(suchasC#,VisualBasic.NET,VisualC++.NETandothers)withwhichtheyaremostcompetent.Inadditiontoprovidinglanguageindependence,.NETextendsprogramportabilitybyenabling.NETapplicationstoresideon,andcommunicateacross,multipleplatforms—thusfacilitatingthedeliveryofWebservicesovertheInternet.The.NETplatformenablesWeb-basedapplicationstobedistributedtoconsumer-electronicdevices,suchascellPrefaceXXXIXphonesandpersonaldigitalassistants,aswellastodesktopcomputers.ThecapabilitiesthatMicrosofthasincorporatedintothe.NETplatformcreateanewsoftware-developmentpar-adigmthatwillincreaseprogrammerproductivityanddecreasedevelopmenttime.NewFeaturesinC#HowtoProgramThiseditioncontainsmanynewfeaturesandenhancements,including:Full-ColorPresentation.Thisbookisnowinfullcolor.Fullcolorenablesreaderstoseesampleoutputsastheywouldappearonacolormonitor.Also,wenowsyn-taxcolortheC#code,similartothewayVisualStudio.NETcolorsthecodeinitseditorwindow.Oursyntax-coloringconventionsareasfollows:commentsappearingreenkeywordsappearindarkblueliteralvaluesappearinlightbluetext,class,methodandvariablenamesappearinblackerrorsandASP.NETdirectivesappearinred“CodeWashing.”Thisisourtermfortheprocessweusetoformattheprogramsinthebooksothattheyhaveacarefullycommented,openlayout.Thecodeap-pearsinfullcolorandisgroupedintosmall,well-documentedpieces.Thisgreatlyimprovescodereadability—anespeciallyimportantgoalforus,consideringthatthisbookcontainsapproximately23,500linesofcode.WebServicesandASP.NET.Microsoft’s.NETstrategyembracestheInternetandWebasintegraltothesoftwaredevelopmentanddeploymentprocesses.Webservices—akeytechnologyinthisstrategy—enablesinformationsharing,com-merceandotherinteractionsusingstandardInternetprotocolsandtechnologies,suchasHypertextTransferProtocol(HTTP),SimpleObjectAccessProtocol(SOAP)andExtensibleMarkupLanguage(XML).Webservicesenableprogram-merstopackageapplicationfunctionalityinaformthatturnstheWebintoali-braryofreusablesoftwarecomponents.InChapter21,ASP.NETandWebServices,wepresentaWebservicethatallowsuserstomakeairlineseatreserva-tions.Inthisexample,auseraccessesaWebpage,choosesaseatingoptionandsubmitsthepagetotheWebserver.ThepagethencallsaWebservicethatchecksseatavailability.WealsopresentinformationrelatedtoWebservicesinAppendixP,CrystalReports®forVisualStudio®.NET,whichdiscussespopularreportingsoftwarefordatabase-intensiveapplications.CrystalReports,whichisintegratedintoVisualStudio.NET,providestheabilitytoexposeareportasaWebservice.Theappendixprovidesintroductoryinformationanddirectsreaderstoawalk-throughofthisprocessontheCrystalDecisionsWebsiteWebForms,WebControlsandASP.NET.Applicationdevelopersmustbeabletocreaterobust,scalableWeb-basedapplications.The.NETplatformarchitecturesupportssuchapplications.Microsoft’s.NETserver-sidetechnology,ActiveServerPages(ASP).NET,allowsprogrammerstobuildWebdocumentsthatre-spondtoclientrequests.ToenableinteractiveWebpages,server-sideprogramsprocessinformationusersinputintoHTMLforms.ASP.NETisasignificantde-XLPrefaceparturefrompreviousversionsofASP,allowingdeveloperstoprogramWeb-basedapplicationsusingthepowerfulobject-orientedlanguagesof.NET.ASP.NETalsoprovidesenhancedvisualprogrammingcapabilities,similartothoseusedinbuildingWindowsformsfordesktopprograms.ProgrammerscancreateWebpagesvisually,bydragginganddroppingWebcontrolsontoWebforms.Chapter20,ASP.NET,WebFormsandWebControls,introducesthesepowerfultechnologies.Object-OrientedProgramming.Object-orientedprogrammingisthemostwidelyemployedtechniquefordevelopingrobust,reusablesoftware,andC#offersen-hancedobject-orientedprogrammingfeatures.Thistextoffersarichpresentationofobject-orientedprogramming.Chapter8,Object-BasedProgramming,intro-duceshowtocreateclassesandobjects.TheseconceptsareextendedinChapter9,Object-OrientedProgramming:Inheritance,whichdiscusseshowprogrammerscancreatenewclassesthat“absorb”thecapabilitiesofexistingclasses.Chapter10,Object-
本文标题:C#外文翻译
链接地址:https://www.777doc.com/doc-5717896 .html