资料下载网
首页 计算机 考试教辅
Visual Studio NET Tips andTricks pdf电子书免费下载,百度云
首页 > 计算机 > 计算机F > Visual Studio NET Tips andTricks pdf电子书免费下载,百度云

《Visual Studio NET Tips andTricks》pdf电子书免费下载


下载方式一:

百度网盘下载地址:https://pan.baidu.com/s/1z1k1IudgEs2cm9zdJ0LpYw
百度网盘密码:1111

下载方式二:

http://ziliaoshare.cn/Download/af_124357_pd_VisualStudioNETTipsandTricks.zip

 


Visual Studio NET Tips andTricks

作者:empty

页数:124

出版社:empty

《Visual Studio NET Tips andTricks》介绍

VS.NET2012and2003donor support XML commenting for VB.NET.However,VS.NET2005docs.All you nced to do is type three apostrophes to generate the XMLcomment fragment for fi lng out(see Figure 2) .Alternatively, you can tight-click theconstruct you want to comment and choose Insert Comment from the popupmenu.Certainly on c of the reasons w by the NET Framework is so in tu ie is the massivedescriptions presented through IntelliSense I highly recommended that you use thisfc ature for your own projects,Figure 1-Adding XML comments to C#pac aaea a a get print Cove x hhr int a a cove x page befockChttexttianupacxitCommenting WebPages

The XML e omments that you plce in your code nut only show up through Intel i Sensebut also can be used to generate quickly a web document that describes all your classesand their fields.Do this by selecting Tools>Build Comment WebPages.Choose tooutput the comments of only one projector the entire solution.The produced Code Comment Web Report ist salle lasses sorted by their namespaceand projects, along with descriptions of class members and inheritance informati in.If you do not ike the layout of the predefined template, you can export the commentsinto an XML fle and then create your own XSLT transformation to for mar it for yourown needs.Just right-click your project in the Sulu tions Explore t and choose PropertiesBulfumtepapupmenuEntan XML.lm pen the XM.Doe un eatonFile field.Upon building the pro jeet, VS.NET outputs the complete code commentsi tots XML flc.Because tsXMLflcisicompl test of comment, al XMLcomments must be present.In other words, each undocumented me thud, property,enum e raton, and soon will produce a warning message during compilation.The a bty to generate code comments web reports no longer appears in VS.NET 2005.Using IntelliSense Across ProjectsIfyouuseXML.commenting.you might notice that e ode comments do not appear inIn tell Sense across projects in the same solution.You can fix this problem by giving the XML.fle the same name as the assembly(My Assembly Name xml Doing this ensures tha rot ber projects in the same solutionFigure 2-XML Commenting for VB_NET in VS.NET 2005VisualStudio NET Tips and Tricks 13

automaticaly pickup this XMLfile whenever you add a refere ace to the project anddisplay the comments through IntelliSense.This trick works only if you set the CopyLocal property of the reference to True.Because VS.NET just copies the XML andassembly from the referenced project into the working projec'bin directory, anychanges you make to the comments in the referenced project are not reflected inIn tell Sense until you update this XML fe again.Unfortunately, the only way to do thisquit list osetCopyLociltoFasewata few sec ends, and then set it back to TrueVS.NET wll actually delete the referenced cop is of the XML fles and then copy themback from the referenced project,Fortunately, in VS.NET 2005 there is no need to generate XML files in order to enjoyIntelliSense support across muliple proje ets.Projects within the same su lution simplyhave full IntelliSense support automatically.You don't even have to recompile whenyou change commen ss.Inserting Comment TokensDo you often write a comment to fe mind yourself of a task you sll need to do, andthen forget where its s?You can in sett comment fo tens to help you.These are keywordsthat VS.NET recognizes and can compile in al is.For instance, place a TO DOcomment anywhere in your code, as shown in Figure 3.Wihout re compli g, scee tV iw>Show Tasks>All to see alito fall reminders youplaced in your code(see Figure 4) .InC#, VS.NET only shows you the TODOs of anycurrently opened documents, whereas in VB.NET it shows you all TODOs in the entiresolution-


《Visual Studio NET Tips andTricks》目录

计算机


python
AI人工智能
javascript
计算机网络/服务器
数据库技术
计算机F

考试教辅


考研考博
英语四六级

沪ICP备18046276号-5