.NET // vs ///注释约定 [英] .NET // vs /// Comments convention
本文介绍了.NET // vs ///注释约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是检查F#,所以道歉,如果这是一个愚蠢的问题,但是在VS2008 F#CTP 1.9.6.2'Tutorial'项目中,//和///都用于注释代码。
I am just checking out F#, so apologies if this is a silly question, but in the VS2008 F# CTP 1.9.6.2 'Tutorial' project, both // and /// are used for commenting code.
两个斜杠和三个斜杠之间是否存在功能上的区别,还是约定(如教程代码中所示)使用///注释函数并使用//
Is there a functional difference between the two slash vs three slash commenting, or is it convention (as it appears in the tutorial code) to comment a function with /// and use // for everything else?
推荐答案
使用三个斜杠(///)是 XML文档注释也被F#所采用。
Using three slashes (///) is a C# convention for XML Documentation Comments that is adopted by F# as well.
这篇关于.NET // vs ///注释约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文