c# how to program43_2

c# how to program43_2

ID:34448975

大小:4.01 MB

页数:11页

时间:2019-03-06

c# how to program43_2_第1页
c# how to program43_2_第2页
c# how to program43_2_第3页
c# how to program43_2_第4页
c# how to program43_2_第5页
资源描述:

《c# how to program43_2》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、csphtp1.bookPage1346Wednesday,November21,200112:48PM1346GeneratingDocumentationinVisualStudioAppendixE219

220Entrypointofapplication.221222223Inthisapplicationallcommand-linearguments224areignored.2252262

2、27OptionalargumentstoMain.228229230231232Fig.E.8XMLdocumentationgeneratedbyVisualStudio.NET.(Part6of6.)NoticethatonlyclassmembersareincludedinthegeneratedXMLfile.EachclassmemberhasamemberelementwhichincludesallXMLcommentsforth

3、atmember.Forexample,lines50–69defineamemberelementthatcontainsinformationonthetwo-argu-mentPointconstructor.Thenameattributeofamembertagisastringthatcontainsinformationaboutthenameandtypeofthemember.Thetypeisspecifiedbyacapitalletter:Mstandsformethod,Pforprop

4、erty(orindexer),EforeventandTfortype(i.e,class).Foracompletelistingoftheseabbreviations,selectHelp>Index,thenlocatethetopicprocessingXMLfilesinC#.InFig.E.8,line51containsthevalueofthenameattributeandcontainsanMasthefirstletter,indicatingthatline51declaresamet

5、hod(recallthataconstructorisaspecializedmethod).Acolonfollows,afterwhichthefullnameofthemethodisshown.Forthisexample,itisCir-cleTest.Point.#ctor(System.Int32,System.Int32).Becausethisisaconstructor,thestring#ctorisusedinthefullyqualifiedname.Thisconstructorta

6、kestwointarguments—theparenthesesafterthenameofeachmemberspecifythatmember’stype.TERMINOLOGY///(documentationcomment)nameattributeofmemberelementBuildCommentWebPagesparaelementcelementparamelementclassdefinitionparametersconstructorpropertycreatingXMLdocument

7、ationreferencedirectoryremarkselementdocumentationreturnvalueDocumentationcolumnreturnselementHTMLseeelementinstancevariablesourcecodeinterfacedefinitionstylesheetmembersummaryelementmemberelementtagMemberscolumnvalueelementmethoddeclarationXMLdocumentationco

8、mmentcsphtp1.bookPage1347Wednesday,November21,200112:48PMAppendixEGeneratingDocumentationinVisualStudio1347SUMMARY•Programmersshoulddocumentspecificinformationonaclass,suchastheclass’srol

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。