C# 简介毕业论文外文翻译文档格式.docx
《C# 简介毕业论文外文翻译文档格式.docx》由会员分享,可在线阅读,更多相关《C# 简介毕业论文外文翻译文档格式.docx(9页珍藏版)》请在冰豆网上搜索。
![C# 简介毕业论文外文翻译文档格式.docx](https://file1.bdocx.com/fileroot1/2022-10/5/46d0bfaf-9e69-4ad4-8a12-8e2cc7afafab/46d0bfaf-9e69-4ad4-8a12-8e2cc7afafab1.gif)
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,youmayhaveaninventorysys