C# 简介毕业论文外文翻译.docx

上传人:wj 文档编号:345539 上传时间:2023-04-29 格式:DOCX 页数:9 大小:17.77KB
下载 相关 举报
C# 简介毕业论文外文翻译.docx_第1页
第1页 / 共9页
C# 简介毕业论文外文翻译.docx_第2页
第2页 / 共9页
C# 简介毕业论文外文翻译.docx_第3页
第3页 / 共9页
C# 简介毕业论文外文翻译.docx_第4页
第4页 / 共9页
C# 简介毕业论文外文翻译.docx_第5页
第5页 / 共9页
C# 简介毕业论文外文翻译.docx_第6页
第6页 / 共9页
C# 简介毕业论文外文翻译.docx_第7页
第7页 / 共9页
C# 简介毕业论文外文翻译.docx_第8页
第8页 / 共9页
C# 简介毕业论文外文翻译.docx_第9页
第9页 / 共9页
亲,该文档总共9页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

C# 简介毕业论文外文翻译.docx

《C# 简介毕业论文外文翻译.docx》由会员分享,可在线阅读,更多相关《C# 简介毕业论文外文翻译.docx(9页珍藏版)》请在冰点文库上搜索。

C# 简介毕业论文外文翻译.docx

附录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

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2