.NET // vs /// Comments convention


Question

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?

1
17
1/12/2009 2:57:39 PM

Accepted Answer

Using three slashes (///) is a C# convention for XML Documentation Comments that is adopted by F# as well.

36
10/8/2008 1:05:23 AM

/// is for documentation comments. VS will use it when generating intellisense information.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon