计算机外文翻译C#设计模式.docx
- 文档编号:8232961
- 上传时间:2023-01-30
- 格式:DOCX
- 页数:11
- 大小:26.36KB
计算机外文翻译C#设计模式.docx
《计算机外文翻译C#设计模式.docx》由会员分享,可在线阅读,更多相关《计算机外文翻译C#设计模式.docx(11页珍藏版)》请在冰豆网上搜索。
计算机外文翻译C#设计模式
外文科技资料翻译
英文原文
DesignPatternsinC#设计模式C#
Amodelisaprogramusingsuchaprogram,wecancompletecertaintasks.Amodelisawaythroughthisway,wecanachieveacertainpurpose.Meanwhile,amodelisatechnology.Inordertocompleteaparticularjob,weneedtoaccessandusethetechnologyeffectively.Thiskindofthinkingcanbeappliedtomanytypesofwork,suchas:
cooking,pyrotechnic,softwaredevelopmentandotherwork.IftheworkTownshiprespectivefieldsisnotofsound,thenthepractitionersinthefieldwillbetofindsomecommon,effectivesolutions,usingtheseprograms,notinthecircumstancestoresolvetherelevantissues,completetheworksoastoachievethepurpose.CertainareasofregularemployeesinthefieldwillhaveahabitofterminologyThesehabitscontributetothetermsoftheworkrelatedpersonnelexchanges.Somemodelscustomaryterms.Theso-calledmodelisabletocompletesomespecifictaskandreachthegoalofthemissionoff-the-shelftechnology.Withahabitoftechnologyandrelatedterms,someofthistechnologyandmodesdocumented,Theserecordsdocumentfromthecustomarytermstobestandardizedandmadesomeeffectivetechnologyhasbeenwidelydisseminated.
ChristopherAlexanderisthatsomeofthebestskillsfactsoldroadprogrammodeledontheoneofthepioneers.Hisresearchareaisthearchitecture,notthesoftware.Inhisnewbook,"APatternLanguage:
Towns,Buildings,Constructionbook,"Alexandertheconstructionofhousingandurbanbuildingthesuccessfulmodel.Alexander'sworkshavefar-reachingeffects,italsoaffectssoftwarefields.ThisDepartmenthasbeenabletomakeanimpactinotherareas,partlybecausetheauthorhasauniquepurposeoftheobservation.
Youmightthinkthattheconstructionapproachisaimedat"buildingdesign."ButAlexandermadeclear,Applicationarchitecturemodel,whichaimstoservethefuturetothoselivinginthesebuildingsorlivinginthesecitiespeople,makethemfeelcomfortableandhappy.Alexander'sworkshowedthatthemodelisacertainaccessandtheexchangeoftechnicalknowledgeinthefieldexcellentway.Healsopointedoutthatareasonableunderstandingofaparticularrecordandtheobjectoftheexerciseisverycrucial,thisrequiresphilosophicalthinking,alsofacedwithunpredictablechallenges.
Softwaredevelopmentgroupshavetohaveamodelresonates,andpublishedalargenumberofbookstorecordthesoftwaredevelopmentmodel.Thesebooksrecordthesoftwareprocessthebesttime,seniorarchitectureandsoftwaredesigncategorylevel,andandthepatternbooksarestillpublished.Ifyouneedtochoosethemodeoftranslationofthebooks,Youshouldfirsttakesometimetoreadthosetothesecretaryofthepublishedcomments,andthenfromthetranslationofchoiceforyourhelpgreatestbooks,andasyour2020.
Abstract,akindofinterfaceisthekindofcertainmethodsandfieldsconsistingofapool.Otherexamplesoftheobjectcanbesetrightthroughthisclassforavisit.Excusetheexpressionusuallyimplementationofthemethodofoperationforthefunctionalresponsibility,whichoftenmeansusingthename,codeNotesandotherdocumentsfordescriptive.Category1referstotherealizationofthetypeofmethodtoachievecode.
C#languagetoimprovetheinterfaceconcept,sothatitcanbeaseparatestructure,therebyinterface(namely:
anobjectmustdowhat)andtherealization(thatis:
atargethowtomeettheirfunctionalresponsibilities)toeffectivelyseparateareas.C#languageinterfacetoallowformorethanonecategorywithafunctional,andtheC#interfacecanachievemorethanonetypeinterface.
ThereareseveraldesignpatternscanbeusedfortheC#features.Forexample:
wecanuseaninterfacetofitacertaintypeofinterface,Inreality,thisisthroughtheapplicationadaptermodetomeetacustomer'sneeds.TodiscusssomelanguageC#unabletocompletethework,weshouldunderstandhowtheC#languageistheworkperformed,Therefore,wefirstdiscusstheC#languageinterface.
Ifyoudonotuseinterface,thenyoucanusetheabstractclass(C++languageabstract).However,thenlayer(n-tier)softwaredevelopmentanddefinitionofstructureandotherobjects,theinterfacehasacriticalroletoplay.Similarly,ifyoudonotusecommissioned,thenyoucanusetheinterface.Ifapublicmandaterequiredtoberegisteredforacallbackmethod,thenthecommissioncouldimprovethesemandates,andthereforeC#Entrustedlanguageisaveryusefulcontent.
1.Interfaceandabstractcategory
PleaseindicatetheC#languageandabstractcategoryofthethreeinterfacesbetweendifferent.
Inuse,failedtoprovideamethodofnon-abstractcategorywithanabstractinterfaceissimilar.However,weneedtopayattentiontothefollowingpoints:
Aclasscanachieveanynumberofinterfaces,butonlyuptoanabstractcategoryofsub-categories.
Anabstractclasscanincludeabstract,andaninterfaceallmethodsineffectareabstract.
Anabstractclasscandeclareandusevariables,andnotaninterface.
AnabstractcategoryofthevisitXiuchifucanbepublic,internal,protected,protectedinternalorprivate,andmembersoftheinterfacevisitXiuchifuindefaultunderarepublic,but,inastatementInterfacemembers,allowedtousethevisitXiuchifu(evenallowedtousepublicvisitXiuchifu).
AnabstractclasscanbedefinedConstructors,andnotaninterface.
2.Interfacewiththecommissioning
Interfacewiththecommissioningofcomparison:
Interfacewiththecommissioningofthesimilaritiesisthattheycanhavethedesireddefinitionofthefunction.Welearnintheprocessofcommissioningoftencreatesomeconfusionandthereasonwaspartlydueto"trust"thewordItcanexpressmeaningisnuanceddifferentconcepts.Therighttocommissionandcompareinterface,wehavetotakealookattheC#languagecommissionishowtowork.
C#languagekeyworddelegateintroductionofanewtypeofcommission,Thisnewtypecommissioneddeterminewhattypeofmethodcanbeusedonlyexampleofthistypeofcommission.Commissionednostandardtypeofname,butitstandardizedthemethodparametertypesandreturntypes.
Weconsiderthefollowingstatement:
PublicdelegateobjectBorrowReader(IDataReaderreader);
ThisstatementoftheDeclarationofanewtypeofcommission.CommissionedbythenameofthetypeBorrowReader.Thestatementsaidthecommissioncanuseanytypeoftechniqueis,aslongasthemethodofreceivingaIDataReaderobjectasamethodparameters,andreturntypesofmethodstoobject.Ifacertaincategoryisthefollowing:
PricatestaticobjectGetNames(IDataReaderreader)
{
//…
}
GetNames()methodparametertypesandreturntypestomeetBorrowReadercommissionedbythetypesofstandardizeddefinition,thismethodcanbeusedtonamethetypescommissionedexample,Examplesofthestatementisasfollows:
IsavariablebBorrowReadercommissionedbythetypesofexamples.AnyvisittothecommissionexamplesofcodecanbecalledObjectb,thencommissionedexampleofthecallingobjectbinclusiveapproach.Thereasonwhytheuseofobjectexampleb,asthisprogramhasthefollowingadvantages:
otherwaysintherighttimecallingobjectbandaninclusiveapproach.Forexample:
acategoryofdataservicesavailabletoreadonadatabase,calledaBorrowReadercommissionedexample(thatis,theabovereadertransmittedtothecommissionexamples),thenreadthisdatabaseasaresourcefortherelease.
C#interfacecanbeaninclusive,C#attributes(property),andindexer.Interfacecanbeatolerant,inclusivebutnotcommissioned.Why?
Wecansimplygivesthefollowingexplanation:
Delegatekeywordintroductionofanewtype,andtheeventkeywordintroductionofanewmember.Astatementstandardizedinterfacesmembers,andnotthetype,timecanbeclassifiedinterface,whichcannotbeclassifiedascommissionedinterface.
Anddetailedexplanation:
Eventkeywordstatementofaspecifictypeoffield(an"incident")standardizethetypes(mustbeacommissionedtype)andtheirnames.C#restrictionsonthevisit,thecustomercannotusetheincidenttype(commissionedbythetype)ofallacts.Customerscanonlyusecommissionedbythe+=and-=acts.Suchrestrictionsaretheresultof:
Onlystatementclassescancall(orexcited)anincident.However,aslongasinclusivesothatacertaincategoryofapublicmemberoftheincident,aclientinterfacetypescanbecomposedoftheaboveexamplesthatcategory.Theincidentisakindofinterfacestandardcomponent,wehaveamplereasonfortheinterface,includingtheincident.
Whenentrustedtoasinglecallbackmethod,onebasedoninterfacedesignisequallyeffective.However,ifthedesignneedstoholdthecommissioningofTogoandcalledmethod,thenentrustedclearer.Whenaparticulartargetfortheuseofacommissionedforanumberofclients(forexample,"hits"ontheincident)fortheregistration,thisadvantageisparticularlyprominent.Isaonetimemember,themembercanmakeanobjectorclasstogivenoticetothenews.
UnderstandthelanguageC#commissionedmaybedifficult,especiallybecausewerepeatthedefinitionof"trust"themeaningoftheterm.Forexample,wecanusethe"commission"ofthetermcommissionstatementsaidacommissiontypes,andevencommissionedanexample.Particularly,peoplealwayssay,"Callacommission,"butanobjectcanonlycallacommissionedexample,notcallingacommissionedtype.Ifyoufeelthisispartofsomeconfusionhard,donotworry,alotofpeopleare.ButweshouldreallyseriouslystudycommissionedbytheC#ishowtowork.whichis
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 外文 翻译 C# 设计 模式