C# 简介毕业论文外文翻译.docx
- 文档编号:345539
- 上传时间:2023-04-29
- 格式:DOCX
- 页数:9
- 大小:17.77KB
C# 简介毕业论文外文翻译.docx
《C# 简介毕业论文外文翻译.docx》由会员分享,可在线阅读,更多相关《C# 简介毕业论文外文翻译.docx(9页珍藏版)》请在冰点文库上搜索。
附录1英文文献翻译
1.英文
1.1 INTROUCTIONTOC#
1.1.1 TheBirthofC#
Asarecentbirthintheprogramminglanguagefamily#hastwoprogramminglanguageparents++andJava#containsmanyC++featuresbutalsoaddstheobject-orientedfeaturesfromJava.
C#containsmanydifferentcomponents,including:
• Versioningsupport,sothatyourbaseandderivedclasses-templatesthatdefinehowanobjectperforms一remaincompatibleasyoudevelopthem
• Events,sothatyourprogramcannotifyclientsofaclassaboutsomethingthathashappenedtoanobject
• Typesafetyandverificationthatincreasesreliabilityandensurescodesecurity
• Garbagecollection,sothatyourprogramcanidentityobjectsthatyourprogramcannolongerreach
• Unsafemode,whereyoucanusepointerstomanipulatememoryoutsidethegarbagecollector'scontrol,includingmethodsandproperties
1.1.2 CloseRelationswithCandC++
C#isbuiltontheC++language,soitbehavesmuchlikethelanguage.LikeC++,C#letsyouwriteenterpriseapplications,andC#containsmanyC++features,includingstatementsandoperators.C#alsoprovidesaccesstocommonApplicationProgramInterface(API)stylesincludingComponentObjectModel(COM)andC-styleAPIs.
1.1.3 Security
ComputernetworksletprogrammersshareVisualStudio.NETcodeincludingC#programsacrossthenetwork.ThiscollaborativeeffortletsyouandyourprogrammingteamcreateC#programsmuchmorequicklythanonepersonalone.TheproblemwithcollaboratingoveranetworkisthatunauthorizedusersfromwithinoroutsideyournetworkmaytrytogainaccesstoyourC#programcode.
VisualStudio.NETprovidesbuilt-insecurityfeaturessoyouortheleaderofyourprogrammingteamcandeterminewhoonyournetworkgetsaccesstoyourC#programcodeandresources.Youcanalsosetdifferentlevelsofsecurityfordifferentpeopleincaseyouwantonlycertainpeopletohaveaccesstocertainprogramcode.
1.1.4 Integration
TheprimaryadvantageofusingVisualStudio.NETisthatalloftheprogramminglanguageshavebeendesignedtoworktogetherfromthestart.WhenyouwriteanewC#program,VisualStudio.NETgivesyoutoolsthatyoucanusetoprogramlinksfromyourC#programintoanotherprogramwritteninanotherVisualStudio.NETlanguage.
Forexample,youcancreateadatabaseinVisualFoxProandthencreateaC#programthatlinksintotheVisualFoxProdatabase.IfyouhavewrittenoracquiredcompletedprogramsinaVisualStudiolanguagesuchasVisualC++orVisualBasic,youcanincludelinksfromyourC#programintothoseprograms.Theendresultisseamlessintegratedfunctionalitybetweenprograms.
1.1.5 DifferencesBetweenC#andC++
MicrosoftincludesVisualC++andC#inVisualStudio.NET.Onthesurface#hasfewdifferencesfromVisualC++.Whenyoulookcarefullyandstartprogramming,youwillnoticethatC#differsinseveralimportantrespectsfromVisualC++:
• C#hasanalternatemethodofaccessingtheC++initializationlistwhenconstructingthebaseclass.
• Aclasscaninheritimplementationfromonlyonebaseclass.
• Youcancalloverriddenbaseclassmembersfromderivedclasses.
• C#hasadifferentsyntaxfordeclaringC#arrays.
• Therearedifferencesinseveraldifferenttypesincludingbool,struct,anddelegate.
• TheMainmethodisdeclareddifferently.
• Supportofthenewrefandoutmethodparametersthatareusedinsteadofpointersforpassingparametersbyreference.
• Newstatementsincludingswitchandfinally.
• Newoperatorsincludingisandtypeof.
• Differentfunctionalityforsomeoperatorsandforoverloadingoperators.
1.1.6 DLLs
TheadventofWindowsbroughtdynamiclinklibraries(DLLs)toprogrammers.DLLsaresmall,independentprogramsthatcontainexecutableroutinesthatprogramscanusetoproduceacertainresultinWindows.Forexample,ifaprogramneedstoopenafile,youcanwriteyourC#programthatusesthecodeintheDLLtoopenthefile.UsingDLLsfreesupyourtimetoworkonyourprogramwithouthavingtoreprogramthesamecodeinyourC#programoverandoveragain.
YoucanaccessDLLsfromyourC#program,andcreateDLLsinC#foryourC#foryourC#programtorefertowhennecessary.C#hasfullCOM/Platformsupport,soyoucanintegrateC#codewithanyprogramminglanguagethatcanproduceCOMDLLssuchasVisualC++.
1.1.7 XML
ExtensibleMarkupLanguage(XML)isamorepowerfulversionofHyperTextMarkupLanguage(HTML),thestandardWebpagelanguage.VisualStudio.NETandC#letyoudocumentyourprogramusingXMLandthenextracttheXMLcodeintoaseparatefile.
VisualStudio.NETsupportsXMLsothatyoucanintegrateyourC#programswiththeWorldWideWeb.YoucandocumentyourC#codeusingXMLandthenuseXMLforcreatingWebServicesandWebcontrolsthatletyouandyourcodeinteractwithaWebsite.Forexample,youmayhaveaninventorysystemwritteninC#thatinteractswiththeorder-takingpageonyourcompany'sWebSite.
1.2 STARTVISUALSTUDIO.NET
VisualStudio.NETcontainsagraphicalprogrammingenvironmentcalledtheMicrosoftDevelopmentEnvironment(MDE).TheMDEenablesyoutocreateprogramsinVisualC#andotherVisualStudio.NETlanguages.
WhenyoustartVisualStudo.Net,theMDEwindowappearswithseveralwindowswithintheMDEwindows.InthelargestareaoftheMDEwindow,whichiscalledtheparentwindow,theVisualStudioStartpageappears.TheStartpagelistsanyrecentprojectsandprovidestwobuttonssothatyoucanopenaprojectfileorcreateanewproject.
TheStartpageletsyoulogintotheMicrosoftDevelopersNetwork(MSDN)WebsitedirectlyfromtheMDE,soyoucanreceivethelatestinformationfromMicrosoftaboutVisualStudio,gettechnicalhelpfromfellowVisualStudiousersatMicrosoft'sonlineforum,andsearchforinformationonline.
VisualStudio.NETalsoletsyoucreateandchangeyourprofilesothatcanviewwindows,enterkeyboardcommands,andreceivehelpfortheprogramminglanguageinwhichyouareworking.Forexample,ifyouhaveusedanolderversionofVisualStudiointhepastandyouprefertousetheoldwindowsandkeyboardcommands,VisualStudioletsyouuseVisualBasicandC++windowsandmenus.
1.3 OPENANEWC#PROJECT
AfteryoustarttheMDEwindows,youcanopenanewproject.AprojectcontainsallthefilesrelatedtoyourC#program.AfteryoudeterminethetypeofC#programyouwanttowrite,VisualStudiocreatesalloftheprojectfilesyouneedtostartprogramming.VisualStudiocontainsprograms.TheMDEwindowletsyoucreateeightdifferentprojectssoyoucantailoryourC#programtotheneedsofyourprogramusers.
Youcancreatethreedifferentapplicationtypes,eachwithadifferentuserinterface.First,youcancreateaWindowsapplicationthathasagraphical,form-basedinterface.Youcancreateaconsoleapplicationwithacharacter-basedinterface.Finally,youcancreateaWebapplicationthatresidesonaWebserverandusesWebpagesforitsinterface.
Youcancreatethreetypesofprogramsthatarenotfull-fledgedbutprovidecomponentsthatotherprogramscanuse.First,youcancreateaclasslibraryprogramsoyoucanprovideclassforotherprograms.Second,youcancreateaWindowscontrollibraryforcreatingformcontrolssuchasbuttons.Third,youcancreateaWebcontrollibraryprogramthatprovidesWebcontrolsforyourWeb-basedC#programs.
WhentheOpenProjectwindowappears,itshowsalltheprojectsinthedefaultprojectfolder,MyProjects.ByclickingoneoftheiconsontheleftsideoftheProjectLocationwindow,youcanchoosethefolderfromwhichaprojectisopened.
IntheProjectLocationwindows,youcanalsoselectanyfolderonyourharddrivebyclickingtheDownArrownexttotheLookinfieldandthenselectingyourdrive.Thefoldersontheselecteddriveappearinthewindow.
1.4 EXPLORINGTHEC#INTERFACE
WhenyoustartanewC#project,C#createsdefaultclassesthatdefineandcategorizetheelementsinyournewprogram.Forexample,ifyoustartanewprogram.Forexample,ifyoustartanewWindowsapplicationthathasobjects.TheClassViewwindowletsyouviewallyourclassesandtheirrelatedcomponentssoyouknewexactlywhatisinyourclasscodewithouthavingtosearchthroughthecode.
TheClassViewwindowgivesyouaconvenientwaytoseewithwhichclassanobjectinyourprogramisassociatedwithouthavingtocloseorminimizeyourprogramcodeorform.TheClassViewwindowappearsinthesamespaceintheMicrosoftDevelopmentEnvironmentwindowastheSolutionExplorerwindow.
Theclassinformationappearsinatreeformatthatyoucanexpandtoviewallclassesassociatedwithaparticularprogramcomponent,suchasaform.Ifyouhavemorethanoneprograminaproject,theClassViewwindowtreeletsyouaccessclassesforalltheprogramsintheproject.
Ifyouwanttoseeclassesthatmeetcertaincriteria,youcansortclassesinthetreealphabetically,bytypeforviewingrelatedclassesinyourprogram,orbyaccess.
IftheClassViewwindowisnotavailableasatabatthebottomoftheSolutionExplorerwindow,youcanaccesstheClassViewwindowfromthemenubar.
YoucanopentheClassViewwindowbyclickingViewandthenClassViewonthemenu.YoucanalsoopentheClassViewwindowbypressingCtrl+Shift+C.NomatterifyouaccesstheClassViewwindowusingthemenuorthekeyboard,afteryouopentheClassViewwindow,itreplacestheSolutionExplorerintheupper-rightcorneroftheparentwindow.
Whenyouclickaclass,thepropertiesforthatclassappearinthePropertieswindow;thePropertieswindowappearsbelowtheClassViewwindow.
IfyoudonothavethePropertieswindowopen,youcanright-clicktheclassandthenclickPropert
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- C# 简介 毕业论文外文翻译 毕业论文 外文 翻译